Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

Anaphe::Translator Class Reference

#include <Translator.h>

List of all members.

Public Methods

 Translator (void)
 Translator (const Translator &)
 ~Translator (void)
const Translator & operator= (const Translator &)
void noWarnings (const bool &=true)
 Toggle warning messages (default at construction is ON).

bool setInputStream (AIDA_STD::istream &)
 Set the streams for reading and writing XML. Returns false if failed.

bool setOutputStream (AIDA_STD::ostream &)
bool read (HistoParameters1D &)
bool read (HistoParameters2D &)
bool read (HistoParameters3D &)
bool write (const IHistogram1D &)
 Write histo in XML format into the internal buffer. Returns false if failed.

bool write (const IHistogram2D &)
bool write (const IHistogram3D &)
void flush (void)
 Write all of the histos in the internal buffer onto the current stream.


Private Types

typedef AIDA_STD::vector<
DataXML::DataObject >::const_iterator 
ElementCIterator
typedef AIDA_STD::vector<
DataXML::DataObject >::iterator 
ElementIterator

Private Methods

template<class HistoType> bool genericWrite (const HistoType &)
void removeOTree (void)
bool createNewOTree (void)
void appendHistoTypeElement (const ElementIterator &)
bool writeHistoElement (const IHistogram1D &, const ElementIterator &histoElement)
bool writeHistoElement (const IHistogram2D &, const ElementIterator &histoElement)
bool writeHistoElement (const IHistogram3D &, const ElementIterator &histoElement)
template<class HistoType> bool appendHisto (const HistoType &, const ElementIterator &parent)
void setTitle (const IHistogram &, const ElementIterator &histoElement)
bool setAxes (const IHistogram1D &, const ElementIterator &histoElement)
bool setAxes (const IHistogram2D &, const ElementIterator &histoElement)
bool setAxes (const IHistogram3D &, const ElementIterator &histoElement)
bool appendAxis (const ElementIterator &histoElement, const AIDA_STD::string &axisName, const IAxis &axis)
bool variableBins (const IAxis &) const
bool setStats (const IHistogram1D &h, const ElementIterator &histoElement)
bool setStats (const IHistogram2D &h, const ElementIterator &histoElement)
bool setStats (const IHistogram3D &h, const ElementIterator &histoElement)
bool appendStat (const ElementIterator &statisticsElement, const AIDA_STD::string &axisName, const double &mean, const double &rms)
bool setData (const IHistogram1D &h, const ElementIterator &histoElement)
bool setData (const IHistogram2D &h, const ElementIterator &histoElement)
bool setData (const IHistogram3D &h, const ElementIterator &histoElement)
void appendDataPoint (const int &dim, const ElementIterator &parent, const int &xbin, const int &ybin, const int &zbin, const int &entries, const double &height, const double &error)
int binConversion (const int &i, const bool &histoMetric) const
void addBinNumberAttribute (const ElementIterator &, const AIDA_STD::string &attName, const int &bn)
bool significantlyDifferent (const double &, const double &) const
void writeHeader (AIDA_STD::ostream &) const
void writeFooter (AIDA_STD::ostream &) const
void noOutputStreamError (void) const
void removeITree (void)
bool createNewITree (AIDA_STD::istream &s)
void resetIterators (void)
int dimensionality (const ElementCIterator &histoElement) const
bool readHistoElement (const ElementCIterator &histoElement, HistoParameters1D &hp)
bool readHistoElement (const ElementCIterator &histoelement, HistoParameters2D &hp)
bool readHistoElement (const ElementCIterator &histoelement, HistoParameters3D &hp)
void getTitle (const ElementCIterator &histoelement, HistoParameters &hp) const
void getXAxis (const ElementCIterator &histoElement, HistoParameters1D &hp) const
void getXAndYAxes (const ElementCIterator &histoElement, HistoParameters2D &hp) const
void getXYAndZAxes (const ElementCIterator &histoElement, HistoParameters3D &hp) const
void getAxis (const ElementCIterator &histoElement, const AIDA_STD::string &axisName, int &nb, double &lo, double &hi, HistoParameters::VecDouble &edges) const
void getStatistics (const ElementCIterator &histoElement, HistoParameters1D &hp) const
void getStatistics (const ElementCIterator &histoElement, HistoParameters2D &hp) const
void getStatistics (const ElementCIterator &histoElement, HistoParameters3D &hp) const
void getNumberOfEntries (const ElementCIterator &histoElement, int &nev) const
void getStatistic (const ElementCIterator &histoElement, const AIDA_STD::string &axisName, double &mean, double &rms, double &skew) const
void getData (const ElementCIterator &histoElement, HistoParameters1D &hp) const
void getData (const ElementCIterator &histoElement, HistoParameters2D &hp) const
void getData (const ElementCIterator &histoElement, HistoParameters3D &hp) const
void fillBin (const ElementCIterator &binElement, HistoParameters::BinInfo &bin) const
bool goodParameters (const HistoParameters1D &parameters) const
bool goodParameters (const HistoParameters2D &parameters) const
bool goodParameters (const HistoParameters3D &parameters) const
int binNumber (const AIDA_STD::string &s) const
int binNumber (const ElementCIterator &binElement) const
int xBinNumber (const ElementCIterator &binElement) const
int yBinNumber (const ElementCIterator &binElement) const
int zBinNumber (const ElementCIterator &binElement) const
double binHeight (const ElementCIterator &binElement) const
double binError (const ElementCIterator &binElement) const
double binError2 (const ElementCIterator &binElement) const
int binEntries (const ElementCIterator &binElement) const
bool consistentBin (const int &binNumber, const HistoParameters1D &hp) const
bool consistentBin (const int &binNumberX, const int &binNumberY, const HistoParameters2D &hp) const
bool consistentBin (const int &binNumberX, const int &binNumberY, const int &binNumberZ, const HistoParameters3D &hp) const
void resizeMatrix (HistoParameters::VecData &, const int &xdim) const
void resizeMatrix (HistoParameters::VecVecData &, const int &xdim, const int &ydim) const
void resizeMatrix (HistoParameters::VecVecVecData &, const int &xdim, const int &ydim, const int &zdim) const
void convertBinNumber (int &i, const int &nbins) const
ElementCIterator getChild (const ElementCIterator &parent, const AIDA_STD::string &childName) const
void getBinEdges (const ElementCIterator &, HistoParameters::VecDouble &, const double &low, const double &high) const
void badInputStreamError (void) const
void wrongDocTypeError (void) const
void missingElementError (const AIDA_STD::string &elementName) const
void nonsenseBinError (void) const
void badNBError (void) const
template<class FPType> AIDA_STD::string toString (const FPType &) const
AIDA_STD::string toString (const int &) const
int stringToInt (const AIDA_STD::string &str) const
void errorMessage (const AIDA_STD::string &msg) const

Private Attributes

bool silent
DataXML::InputXMLStream * iXmlStream
const DataXML::DataObject * iRootElement
ElementCIterator iHisto1DIt
ElementCIterator iHisto2DIt
ElementCIterator iHisto3DIt
AIDA_STD::ostream * oStream
DataXML::DataObject * oRootElement

Static Private Attributes

const int constant_UNDERFLOW = -1
const int constant_OVERFLOW = -2
const int RUBBISH = -999
const double ROUNDOFF_TOLERANCE = 1.0E-9
const int SCI_PRECISION = 8
const AIDA_STD::string XML_VERSION = "1.0"
const AIDA_STD::string ENCODING_TYPE = "ISO-8859-1"


Member Typedef Documentation

typedef AIDA_STD::vector<DataXML::DataObject>::const_iterator Anaphe::Translator::ElementCIterator [private]
 

Definition at line 88 of file Translator.h.

Referenced by getAxis(), getBinEdges(), getChild(), getData(), getNumberOfEntries(), and getStatistic().

typedef AIDA_STD::vector<DataXML::DataObject>::iterator Anaphe::Translator::ElementIterator [private]
 

Definition at line 89 of file Translator.h.


Constructor & Destructor Documentation

Anaphe::Translator::Translator void   
 

Copying and assignment are possible but input and output streams are unset - user must set them explicitly before the instance will work. The destructor calls flush() automatically so if you just want to write a single XML doc with it then you don't have to call flush() yourself.

Definition at line 70 of file Translator.cpp.

Anaphe::Translator::Translator const Translator &   
 

Definition at line 86 of file Translator.cpp.

Anaphe::Translator::~Translator void   
 

Definition at line 102 of file Translator.cpp.

References flush(), removeITree(), and removeOTree().


Member Function Documentation

void Anaphe::Translator::addBinNumberAttribute const ElementIterator  ,
const AIDA_STD::string &    attName,
const int &    bn
[private]
 

Definition at line 686 of file Translator.cpp.

References constant_OVERFLOW, constant_UNDERFLOW, and toString().

Referenced by appendDataPoint().

bool Anaphe::Translator::appendAxis const ElementIterator   histoElement,
const AIDA_STD::string &    axisName,
const IAxis &    axis
[private]
 

Definition at line 460 of file Translator.cpp.

References toString(), and variableBins().

Referenced by setAxes().

void Anaphe::Translator::appendDataPoint const int &    dim,
const ElementIterator   parent,
const int &    xbin,
const int &    ybin,
const int &    zbin,
const int &    entries,
const double &    height,
const double &    error
[private]
 

Definition at line 666 of file Translator.cpp.

References addBinNumberAttribute(), and toString().

Referenced by setData().

template<class HistoType>
bool Anaphe::Translator::appendHisto const HistoType &   ,
const ElementIterator   parent
[private]
 

Definition at line 259 of file Translator.cpp.

References writeHistoElement().

Referenced by genericWrite().

void Anaphe::Translator::appendHistoTypeElement const ElementIterator   [private]
 

Definition at line 358 of file Translator.cpp.

Referenced by createNewOTree().

bool Anaphe::Translator::appendStat const ElementIterator   statisticsElement,
const AIDA_STD::string &    axisName,
const double &    mean,
const double &    rms
[private]
 

Definition at line 552 of file Translator.cpp.

References toString().

Referenced by setStats().

void Anaphe::Translator::badInputStreamError void    const [private]
 

Definition at line 1370 of file Translator.cpp.

References errorMessage().

Referenced by createNewITree().

void Anaphe::Translator::badNBError void    const [private]
 

Definition at line 1402 of file Translator.cpp.

References errorMessage().

int Anaphe::Translator::binConversion const int &    i,
const bool &    histoMetric
const [private]
 

Definition at line 653 of file Translator.cpp.

References constant_OVERFLOW, and constant_UNDERFLOW.

Referenced by setData().

int Anaphe::Translator::binEntries const ElementCIterator   binElement const [private]
 

Definition at line 1208 of file Translator.cpp.

Referenced by fillBin().

double Anaphe::Translator::binError const ElementCIterator   binElement const [private]
 

Definition at line 1190 of file Translator.cpp.

Referenced by fillBin().

double Anaphe::Translator::binError2 const ElementCIterator   binElement const [private]
 

Definition at line 1199 of file Translator.cpp.

Referenced by fillBin().

double Anaphe::Translator::binHeight const ElementCIterator   binElement const [private]
 

Definition at line 1181 of file Translator.cpp.

Referenced by fillBin().

int Anaphe::Translator::binNumber const ElementCIterator   binElement const [private]
 

Definition at line 1134 of file Translator.cpp.

References binNumber().

int Anaphe::Translator::binNumber const AIDA_STD::string &    s const [private]
 

Definition at line 1171 of file Translator.cpp.

References constant_OVERFLOW, constant_UNDERFLOW, and stringToInt().

Referenced by binNumber(), xBinNumber(), yBinNumber(), and zBinNumber().

bool Anaphe::Translator::consistentBin const int &    binNumberX,
const int &    binNumberY,
const int &    binNumberZ,
const HistoParameters3D &    hp
const [private]
 

Definition at line 1251 of file Translator.cpp.

References constant_OVERFLOW, and constant_UNDERFLOW.

bool Anaphe::Translator::consistentBin const int &    binNumberX,
const int &    binNumberY,
const HistoParameters2D &    hp
const [private]
 

Definition at line 1232 of file Translator.cpp.

References constant_OVERFLOW, and constant_UNDERFLOW.

bool Anaphe::Translator::consistentBin const int &    binNumber,
const HistoParameters1D &    hp
const [private]
 

Definition at line 1217 of file Translator.cpp.

References constant_OVERFLOW, and constant_UNDERFLOW.

Referenced by getData().

void Anaphe::Translator::convertBinNumber int &    i,
const int &    nbins
const [private]
 

Definition at line 1122 of file Translator.cpp.

References constant_OVERFLOW, and constant_UNDERFLOW.

Referenced by getData().

bool Anaphe::Translator::createNewITree AIDA_STD::istream &    s [private]
 

Definition at line 320 of file Translator.cpp.

References badInputStreamError(), iRootElement, iXmlStream, removeITree(), resetIterators(), and wrongDocTypeError().

Referenced by setInputStream().

bool Anaphe::Translator::createNewOTree void    [private]
 

Definition at line 345 of file Translator.cpp.

References appendHistoTypeElement(), oRootElement, and removeOTree().

Referenced by genericWrite().

int Anaphe::Translator::dimensionality const ElementCIterator   histoElement const [private]
 

Definition at line 788 of file Translator.cpp.

Referenced by read(), and readHistoElement().

void Anaphe::Translator::errorMessage const AIDA_STD::string &    msg const [private]
 

Definition at line 1418 of file Translator.cpp.

References silent.

Referenced by badInputStreamError(), badNBError(), missingElementError(), nonsenseBinError(), noOutputStreamError(), and wrongDocTypeError().

void Anaphe::Translator::fillBin const ElementCIterator   binElement,
HistoParameters::BinInfo &    bin
const [private]
 

Definition at line 1097 of file Translator.cpp.

References binEntries(), binError(), binError2(), and binHeight().

Referenced by getData().

void Anaphe::Translator::flush void   
 

Definition at line 223 of file Translator.cpp.

References oRootElement, oStream, removeOTree(), writeFooter(), and writeHeader().

Referenced by ~Translator().

template<class HistoType>
bool Anaphe::Translator::genericWrite const HistoType &    [private]
 

Definition at line 243 of file Translator.cpp.

References appendHisto(), createNewOTree(), noOutputStreamError(), oRootElement, and oStream.

Referenced by write().

void Anaphe::Translator::getAxis const ElementCIterator   histoElement,
const AIDA_STD::string &    axisName,
int &    nb,
double &    lo,
double &    hi,
HistoParameters::VecDouble &    edges
const [private]
 

Definition at line 859 of file Translator.cpp.

References ElementCIterator, and getBinEdges().

Referenced by getXAndYAxes(), getXAxis(), and getXYAndZAxes().

void Anaphe::Translator::getBinEdges const ElementCIterator  ,
HistoParameters::VecDouble &   ,
const double &    low,
const double &    high
const [private]
 

Definition at line 889 of file Translator.cpp.

References ElementCIterator.

Referenced by getAxis().

Translator::ElementCIterator Anaphe::Translator::getChild const ElementCIterator   parent,
const AIDA_STD::string &    childName
const [private]
 

Definition at line 1108 of file Translator.cpp.

References ElementCIterator, and missingElementError().

Referenced by getData().

void Anaphe::Translator::getData const ElementCIterator   histoElement,
HistoParameters3D &    hp
const [private]
 

Definition at line 1063 of file Translator.cpp.

References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), xBinNumber(), yBinNumber(), and zBinNumber().

void Anaphe::Translator::getData const ElementCIterator   histoElement,
HistoParameters2D &    hp
const [private]
 

Definition at line 1032 of file Translator.cpp.

References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), xBinNumber(), and yBinNumber().

void Anaphe::Translator::getData const ElementCIterator   histoElement,
HistoParameters1D &    hp
const [private]
 

Definition at line 1004 of file Translator.cpp.

References consistentBin(), convertBinNumber(), ElementCIterator, fillBin(), getChild(), nonsenseBinError(), resizeMatrix(), and xBinNumber().

Referenced by readHistoElement().

void Anaphe::Translator::getNumberOfEntries const ElementCIterator   histoElement,
int &    nev
const [private]
 

Definition at line 966 of file Translator.cpp.

References ElementCIterator, and missingElementError().

Referenced by getStatistics().

void Anaphe::Translator::getStatistic const ElementCIterator   histoElement,
const AIDA_STD::string &    axisName,
double &    mean,
double &    rms,
double &    skew
const [private]
 

Definition at line 980 of file Translator.cpp.

References ElementCIterator, and missingElementError().

Referenced by getStatistics().

void Anaphe::Translator::getStatistics const ElementCIterator   histoElement,
HistoParameters3D &    hp
const [private]
 

Definition at line 946 of file Translator.cpp.

References getNumberOfEntries(), and getStatistic().

void Anaphe::Translator::getStatistics const ElementCIterator   histoElement,
HistoParameters2D &    hp
const [private]
 

Definition at line 928 of file Translator.cpp.

References getNumberOfEntries(), and getStatistic().

void Anaphe::Translator::getStatistics const ElementCIterator   histoElement,
HistoParameters1D &    hp
const [private]
 

Definition at line 912 of file Translator.cpp.

References getNumberOfEntries(), and getStatistic().

Referenced by readHistoElement().

void Anaphe::Translator::getTitle const ElementCIterator   histoelement,
HistoParameters &    hp
const [private]
 

Definition at line 799 of file Translator.cpp.

Referenced by readHistoElement().

void Anaphe::Translator::getXAndYAxes const ElementCIterator   histoElement,
HistoParameters2D &    hp
const [private]
 

Definition at line 824 of file Translator.cpp.

References getAxis().

Referenced by readHistoElement().

void Anaphe::Translator::getXAxis const ElementCIterator   histoElement,
HistoParameters1D &    hp
const [private]
 

Definition at line 808 of file Translator.cpp.

References getAxis().

Referenced by readHistoElement().

void Anaphe::Translator::getXYAndZAxes const ElementCIterator   histoElement,
HistoParameters3D &    hp
const [private]
 

Definition at line 841 of file Translator.cpp.

References getAxis().

Referenced by readHistoElement().

bool Anaphe::Translator::goodParameters const HistoParameters3D &    parameters const [private]
 

Definition at line 1319 of file Translator.cpp.

bool Anaphe::Translator::goodParameters const HistoParameters2D &    parameters const [private]
 

Definition at line 1308 of file Translator.cpp.

bool Anaphe::Translator::goodParameters const HistoParameters1D &    parameters const [private]
 

Definition at line 1294 of file Translator.cpp.

Referenced by read(), and readHistoElement().

void Anaphe::Translator::missingElementError const AIDA_STD::string &    elementName const [private]
 

Definition at line 1386 of file Translator.cpp.

References errorMessage().

Referenced by getChild(), getNumberOfEntries(), and getStatistic().

void Anaphe::Translator::nonsenseBinError void    const [private]
 

Definition at line 1394 of file Translator.cpp.

References errorMessage().

Referenced by getData().

void Anaphe::Translator::noOutputStreamError void    const [private]
 

Definition at line 1410 of file Translator.cpp.

References errorMessage().

Referenced by genericWrite().

void Anaphe::Translator::noWarnings const bool &    = true
 

Definition at line 131 of file Translator.cpp.

References silent.

const Translator & Anaphe::Translator::operator= const Translator &   
 

Definition at line 112 of file Translator.cpp.

References removeITree(), removeOTree(), and silent.

bool Anaphe::Translator::read HistoParameters3D &   
 

Definition at line 185 of file Translator.cpp.

References dimensionality(), goodParameters(), iHisto3DIt, iRootElement, and readHistoElement().

bool Anaphe::Translator::read HistoParameters2D &   
 

Definition at line 171 of file Translator.cpp.

References dimensionality(), goodParameters(), iHisto2DIt, iRootElement, and readHistoElement().

bool Anaphe::Translator::read HistoParameters1D &   
 

Read next histo of the required type and fill the HistoParametersXD object. Returns false if no more histos available on the input stream.

Definition at line 157 of file Translator.cpp.

References dimensionality(), goodParameters(), iHisto1DIt, iRootElement, and readHistoElement().

bool Anaphe::Translator::readHistoElement const ElementCIterator   histoelement,
HistoParameters3D &    hp
[private]
 

Definition at line 743 of file Translator.cpp.

References dimensionality(), getData(), getStatistics(), getTitle(), getXYAndZAxes(), and goodParameters().

bool Anaphe::Translator::readHistoElement const ElementCIterator   histoelement,
HistoParameters2D &    hp
[private]
 

Definition at line 727 of file Translator.cpp.

References dimensionality(), getData(), getStatistics(), getTitle(), getXAndYAxes(), and goodParameters().

bool Anaphe::Translator::readHistoElement const ElementCIterator   histoElement,
HistoParameters1D &    hp
[private]
 

Definition at line 711 of file Translator.cpp.

References dimensionality(), getData(), getStatistics(), getTitle(), getXAxis(), and goodParameters().

Referenced by read().

void Anaphe::Translator::removeITree void    [private]
 

Definition at line 302 of file Translator.cpp.

References iRootElement, iXmlStream, and resetIterators().

Referenced by createNewITree(), operator=(), setInputStream(), and ~Translator().

void Anaphe::Translator::removeOTree void    [private]
 

Definition at line 312 of file Translator.cpp.

References oRootElement.

Referenced by createNewOTree(), flush(), operator=(), and ~Translator().

void Anaphe::Translator::resetIterators void    [private]
 

Definition at line 700 of file Translator.cpp.

References iHisto1DIt, iHisto2DIt, iHisto3DIt, and iRootElement.

Referenced by createNewITree(), and removeITree().

void Anaphe::Translator::resizeMatrix HistoParameters::VecVecVecData &   ,
const int &    xdim,
const int &    ydim,
const int &    zdim
const [private]
 

Definition at line 1354 of file Translator.cpp.

void Anaphe::Translator::resizeMatrix HistoParameters::VecVecData &   ,
const int &    xdim,
const int &    ydim
const [private]
 

Definition at line 1341 of file Translator.cpp.

void Anaphe::Translator::resizeMatrix HistoParameters::VecData &   ,
const int &    xdim
const [private]
 

Definition at line 1331 of file Translator.cpp.

Referenced by getData().

bool Anaphe::Translator::setAxes const IHistogram3D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 445 of file Translator.cpp.

References appendAxis().

bool Anaphe::Translator::setAxes const IHistogram2D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 432 of file Translator.cpp.

References appendAxis().

bool Anaphe::Translator::setAxes const IHistogram1D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 421 of file Translator.cpp.

References appendAxis().

Referenced by writeHistoElement().

bool Anaphe::Translator::setData const IHistogram3D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 620 of file Translator.cpp.

References appendDataPoint(), and binConversion().

bool Anaphe::Translator::setData const IHistogram2D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 592 of file Translator.cpp.

References appendDataPoint(), and binConversion().

bool Anaphe::Translator::setData const IHistogram1D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 569 of file Translator.cpp.

References appendDataPoint(), and binConversion().

Referenced by writeHistoElement().

bool Anaphe::Translator::setInputStream AIDA_STD::istream &   
 

Definition at line 139 of file Translator.cpp.

References createNewITree(), and removeITree().

bool Anaphe::Translator::setOutputStream AIDA_STD::ostream &   
 

Definition at line 148 of file Translator.cpp.

References oStream.

bool Anaphe::Translator::setStats const IHistogram3D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 536 of file Translator.cpp.

References appendStat(), and toString().

bool Anaphe::Translator::setStats const IHistogram2D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 521 of file Translator.cpp.

References appendStat(), and toString().

bool Anaphe::Translator::setStats const IHistogram1D &    h,
const ElementIterator   histoElement
[private]
 

Definition at line 507 of file Translator.cpp.

References appendStat(), and toString().

Referenced by writeHistoElement().

void Anaphe::Translator::setTitle const IHistogram &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 413 of file Translator.cpp.

Referenced by writeHistoElement().

bool Anaphe::Translator::significantlyDifferent const double &   ,
const double &   
const [private]
 

Definition at line 1426 of file Translator.cpp.

References ROUNDOFF_TOLERANCE.

Referenced by variableBins().

int Anaphe::Translator::stringToInt const AIDA_STD::string &    str const [private]
 

Definition at line 1274 of file Translator.cpp.

References RUBBISH.

Referenced by binNumber().

AIDA_STD::string Anaphe::Translator::toString const int &    const [private]
 

Definition at line 289 of file Translator.cpp.

template<class FP>
AIDA_STD::string Anaphe::Translator::toString const FPType &    const [private]
 

Definition at line 274 of file Translator.cpp.

References SCI_PRECISION.

Referenced by addBinNumberAttribute(), appendAxis(), appendDataPoint(), appendStat(), and setStats().

bool Anaphe::Translator::variableBins const IAxis &    const [private]
 

Definition at line 487 of file Translator.cpp.

References significantlyDifferent().

Referenced by appendAxis().

bool Anaphe::Translator::write const IHistogram3D &   
 

Definition at line 215 of file Translator.cpp.

References genericWrite().

bool Anaphe::Translator::write const IHistogram2D &   
 

Definition at line 207 of file Translator.cpp.

References genericWrite().

bool Anaphe::Translator::write const IHistogram1D &   
 

Definition at line 199 of file Translator.cpp.

References genericWrite().

void Anaphe::Translator::writeFooter AIDA_STD::ostream &    const [private]
 

Definition at line 780 of file Translator.cpp.

Referenced by flush().

void Anaphe::Translator::writeHeader AIDA_STD::ostream &    const [private]
 

Definition at line 759 of file Translator.cpp.

References ENCODING_TYPE, and XML_VERSION.

Referenced by flush().

bool Anaphe::Translator::writeHistoElement const IHistogram3D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 399 of file Translator.cpp.

References setAxes(), setData(), setStats(), and setTitle().

bool Anaphe::Translator::writeHistoElement const IHistogram2D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 385 of file Translator.cpp.

References setAxes(), setData(), setStats(), and setTitle().

bool Anaphe::Translator::writeHistoElement const IHistogram1D &   ,
const ElementIterator   histoElement
[private]
 

Definition at line 371 of file Translator.cpp.

References setAxes(), setData(), setStats(), and setTitle().

Referenced by appendHisto().

void Anaphe::Translator::wrongDocTypeError void    const [private]
 

Definition at line 1378 of file Translator.cpp.

References errorMessage().

Referenced by createNewITree().

int Anaphe::Translator::xBinNumber const ElementCIterator   binElement const [private]
 

Definition at line 1143 of file Translator.cpp.

References binNumber().

Referenced by getData().

int Anaphe::Translator::yBinNumber const ElementCIterator   binElement const [private]
 

Definition at line 1153 of file Translator.cpp.

References binNumber().

Referenced by getData().

int Anaphe::Translator::zBinNumber const ElementCIterator   binElement const [private]
 

Definition at line 1162 of file Translator.cpp.

References binNumber().

Referenced by getData().


Member Data Documentation

const int Anaphe::Translator::constant_OVERFLOW = -2 [static, private]
 

Definition at line 54 of file Translator.cpp.

Referenced by addBinNumberAttribute(), binConversion(), binNumber(), consistentBin(), and convertBinNumber().

const int Anaphe::Translator::constant_UNDERFLOW = -1 [static, private]
 

Definition at line 53 of file Translator.cpp.

Referenced by addBinNumberAttribute(), binConversion(), binNumber(), consistentBin(), and convertBinNumber().

const AIDA_STD::string Anaphe::Translator::ENCODING_TYPE = "ISO-8859-1" [static, private]
 

Definition at line 59 of file Translator.cpp.

Referenced by writeHeader().

ElementCIterator Anaphe::Translator::iHisto1DIt [private]
 

Definition at line 211 of file Translator.h.

Referenced by read(), and resetIterators().

ElementCIterator Anaphe::Translator::iHisto2DIt [private]
 

Definition at line 212 of file Translator.h.

Referenced by read(), and resetIterators().

ElementCIterator Anaphe::Translator::iHisto3DIt [private]
 

Definition at line 213 of file Translator.h.

Referenced by read(), and resetIterators().

const DataXML::DataObject* Anaphe::Translator::iRootElement [private]
 

Definition at line 210 of file Translator.h.

Referenced by createNewITree(), read(), removeITree(), and resetIterators().

DataXML::InputXMLStream* Anaphe::Translator::iXmlStream [private]
 

Definition at line 209 of file Translator.h.

Referenced by createNewITree(), and removeITree().

DataXML::DataObject* Anaphe::Translator::oRootElement [private]
 

Definition at line 215 of file Translator.h.

Referenced by createNewOTree(), flush(), genericWrite(), and removeOTree().

AIDA_STD::ostream* Anaphe::Translator::oStream [private]
 

Definition at line 214 of file Translator.h.

Referenced by flush(), genericWrite(), and setOutputStream().

const double Anaphe::Translator::ROUNDOFF_TOLERANCE = 1.0E-9 [static, private]
 

Definition at line 57 of file Translator.cpp.

Referenced by significantlyDifferent().

const int Anaphe::Translator::RUBBISH = -999 [static, private]
 

Definition at line 55 of file Translator.cpp.

Referenced by stringToInt().

const int Anaphe::Translator::SCI_PRECISION = 8 [static, private]
 

Definition at line 56 of file Translator.cpp.

Referenced by toString().

bool Anaphe::Translator::silent [private]
 

Definition at line 208 of file Translator.h.

Referenced by errorMessage(), noWarnings(), and operator=().

const AIDA_STD::string Anaphe::Translator::XML_VERSION = "1.0" [static, private]
 

Definition at line 58 of file Translator.cpp.

Referenced by writeHeader().


The documentation for this class was generated from the following files:

Anaphe documentation generated by Doxygen (www.doxygen.org)