32 const XMLCh*
const localname,
33 const XMLCh*
const qname,
51 unsigned int numAtts = attrs.getLength();
52 std::vector<std::string> attrNames, attrValues;
54 for (
unsigned int i = 0; i < numAtts; ++
i)
67 const XMLCh*
const localname,
68 const XMLCh*
const qname )
99 const XMLSize_t length )
103 for (XMLSize_t
i = 0;
i < length; ++
i)
106 inString = inString +
s;
116 const XMLSize_t length )
DDLSAX2FileHandler(DDCompactView &cpv)
virtual const std::string & parent() const
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) override
void appendText(const std::string &inText)
append to the current (i.e. most recently added)
virtual const std::string & self() const
void setParent(const std::string &pename)
Set parent element name to central list of names.
virtual void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv)
Processing the element.
static std::string & ns()
std::vector< std::string > namesMap_
type of data representation of DDCompactView
void loadText(const std::string &inText)
Used to load both text and XML comments into this object.
void setSelf(const std::string &sename)
Set self element name to central list of names.
static value_type & instance()
void loadAttributes(const std::string &elemName, const std::vector< std::string > &names, const std::vector< std::string > &values, const std::string &nmspace, DDCompactView &cpv)
Load the element attributes.
void comment(const XMLCh *const chars, const XMLSize_t length) override
ZStr< char > cStr(XMLCh const *str)
void characters(const XMLCh *const chars, const XMLSize_t length) override
virtual bool gotText(void) const
gotText()? kind of like gotMilk? Yes = text has already been encountered.
std::vector< size_t > names_
static void createConstantsFromEvaluator()
creates all DDConstants from the variables of the ClhepEvaluator
This is a base class for processing XML elements in the DDD.
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) override
XERCES_CPP_NAMESPACE::Attributes Attributes
void createDDConstants() const
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the do...