5 #ifdef GYOTO_USE_XERCES 25 #ifndef __GyotoFactoryMessenger_H_ 26 #define __GyotoFactoryMessenger_H_ 33 #ifndef XERCES_INCLUDE_WCHAR_H 34 #define XERCES_INCLUDE_WCHAR_H 0 36 #include <xercesc/dom/DOMElement.hpp> 44 class FactoryMessenger;
45 namespace Metric {
class Generic; }
46 namespace Astrobj {
class Generic; }
47 namespace Spectrum {
class Generic ; }
169 int getNextParameter(std::string* name,
170 std::string* content,
171 std::string* unit=NULL);
185 std::string getSelfAttribute(std::string attrname)
const ;
197 std::string getAttribute(std::string attrname)
const ;
213 std::string getFullContent()
const ;
250 std::string fullPath(std::string relpath) ;
307 void setParameter(std::string name);
317 void setParameter(std::string name,
double value);
327 void setParameter(std::string name,
long int value);
337 void setParameter(std::string name,
unsigned int value);
347 void setParameter(std::string name,
unsigned long value);
357 void setParameter(std::string name,
int value);
366 void setParameter(std::string name, std::string value);
392 void setParameter(std::string name,
double val[],
size_t n,
396 void setParameter(std::string name, std::vector<double>
const &val,
398 void setParameter(std::string name, std::vector<unsigned long>
const &val,
413 void setSelfAttribute(std::string attrname, std::string value) ;
419 void setSelfAttribute(std::string attrname,
unsigned long value) ;
425 void setSelfAttribute(std::string attrname,
unsigned int value) ;
431 void setSelfAttribute(std::string attrname,
double value) ;
441 void setFullContent(std::string value) ;
473 static size_t parseArray(std::string src,
double dst[],
size_t max_tokens);
481 static std::vector<double> parseArray(std::string src);
489 static std::vector<unsigned long> parseArrayULong(std::string src);
xercesc::DOMElement * element_
The XML element concerned by this transaction.
Definition: GyotoFactoryMessenger.h:96
Reference-counting pointers.
XMLSize_t nodeCount_
The number of children of the XML element concerned by this transaction.
Definition: GyotoFactoryMessenger.h:100
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
xercesc::DOMNodeList * children_
The children of the XML element concerned by this transaction.
Definition: GyotoFactoryMessenger.h:98
Gyoto ubiquitous macros and typedefs.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
XMLSize_t curNodeIndex_
Current child.
Definition: GyotoFactoryMessenger.h:102
XML input/output.
Definition: GyotoFactory.h:114
Gyoto::Factory * employer_
The Factory that sent this messenger.
Definition: GyotoFactoryMessenger.h:94