DABC (Data Acquisition Backbone Core)
2.9.9
|
Namespace dabc::Xml contains number of functions to work with xml files. More...
Functions | |
void | AddChild (XMLNodePointer_t parent, XMLNodePointer_t child) |
void | AddChildFirst (XMLNodePointer_t parent, XMLNodePointer_t child) |
bool | AddComment (XMLNodePointer_t parent, const char *comment) |
bool | AddDocComment (XMLDocPointer_t xmldoc, const char *comment) |
bool | AddDocRawLine (XMLDocPointer_t xmldoc, const char *line) |
bool | AddDocStyleSheet (XMLDocPointer_t xmldoc, const char *href, const char *type="text/css", const char *title=nullptr, int alternate=-1, const char *media=nullptr, const char *charset=nullptr) |
bool | AddRawLine (XMLNodePointer_t parent, const char *line) |
bool | AddStyleSheet (XMLNodePointer_t parent, const char *href, const char *type="text/css", const char *title=nullptr, int alternate=-1, const char *media=nullptr, const char *charset=nullptr) |
XMLAttrPointer_t | AllocateAttr (int namelen, int valuelen, XMLNodePointer_t xmlnode) |
XMLNodePointer_t | AllocateNode (int namelen, XMLNodePointer_t parent) |
void | AssignDtd (XMLDocPointer_t xmldoc, const char *dtdname, const char *rootname) |
void | CleanNode (XMLNodePointer_t xmlnode) |
void | DisplayError (int error, int linenumber) |
XMLNodePointer_t | DocGetRootElement (XMLDocPointer_t xmldoc) |
void | DocSetRootElement (XMLDocPointer_t xmldoc, XMLNodePointer_t xmlnode) |
XMLNsPointer_t | FindNs (XMLNodePointer_t xmlnode, const char *nsname) |
void | FreeAllAttr (XMLNodePointer_t xmlnode) |
void | FreeAttr (XMLNodePointer_t xmlnode, const char *name) |
void | FreeDoc (XMLDocPointer_t xmldoc) |
void | FreeNode (XMLNodePointer_t xmlnode) |
const char * | GetAttr (XMLNodePointer_t xmlnode, const char *name) |
const char * | GetAttrName (XMLAttrPointer_t xmlattr) |
const char * | GetAttrValue (XMLAttrPointer_t xmlattr) |
XMLNodePointer_t | GetChild (XMLNodePointer_t xmlnode) |
XMLAttrPointer_t | GetFirstAttr (XMLNodePointer_t xmlnode) |
int | GetIntAttr (XMLNodePointer_t node, const char *name) |
XMLNodePointer_t | GetNext (XMLNodePointer_t xmlnode) |
XMLAttrPointer_t | GetNextAttr (XMLAttrPointer_t xmlattr) |
const char * | GetNodeContent (XMLNodePointer_t xmlnode) |
const char * | GetNodeName (XMLNodePointer_t xmlnode) |
XMLNsPointer_t | GetNS (XMLNodePointer_t xmlnode) |
const char * | GetNSName (XMLNsPointer_t ns) |
const char * | GetNSReference (XMLNsPointer_t ns) |
XMLNodePointer_t | GetParent (XMLNodePointer_t xmlnode) |
bool | HasAttr (XMLNodePointer_t xmlnode, const char *name) |
bool | IsEmptyNode (XMLNodePointer_t xmlnode) |
char * | Makenstr (const char *start, int len) |
char * | Makestr (const char *str) |
XMLAttrPointer_t | NewAttr (XMLNodePointer_t xmlnode, XMLNsPointer_t, const char *name, const char *value) |
XMLNodePointer_t | NewChild (XMLNodePointer_t parent, XMLNsPointer_t ns, const char *name, const char *content=nullptr) |
XMLDocPointer_t | NewDoc (const char *version="1.0") |
XMLAttrPointer_t | NewIntAttr (XMLNodePointer_t xmlnode, const char *name, int value) |
XMLNsPointer_t | NewNS (XMLNodePointer_t xmlnode, const char *reference, const char *name=nullptr) |
void | OutputValue (char *value, XmlOutputStream *out) |
XMLDocPointer_t | ParseFile (const char *filename, bool showerr=true) |
XMLDocPointer_t | ParseStream (XmlInputStream *input, bool showerr) |
XMLDocPointer_t | ParseString (const char *xmlstring, bool showerr=true) |
XMLNodePointer_t | ReadNode (XMLNodePointer_t xmlparent, XmlInputStream *inp, int &resvalue) |
XMLNodePointer_t | ReadSingleNode (const char *src) |
void | SaveDoc (XMLDocPointer_t xmldoc, const char *filename, int layout=1) |
void | SaveNode (XMLNodePointer_t xmlnode, XmlOutputStream *out, int layout, int level) |
void | SaveSingleNode (XMLNodePointer_t xmlnode, std::string *res, int layout=1) |
void | ShiftToNext (XMLNodePointer_t &xmlnode, bool tonode=true) |
void | SkipEmpty (XMLNodePointer_t &xmlnode) |
void | TruncateNsExtension (XMLNodePointer_t xmlnode) |
void | UnlinkFreeNode (XMLNodePointer_t xmlnode) |
void | UnlinkNode (XMLNodePointer_t node) |
void | UnpackSpecialCharacters (char *target, const char *source, int srclen) |
bool | ValidateVersion (XMLDocPointer_t doc, const char *version=nullptr) |
Namespace dabc::Xml contains number of functions to work with xml files.
bool dabc::Xml::HasAttr | ( | XMLNodePointer_t | xmlnode, |
const char * | name | ||
) |
Definition at line 397 of file XmlEngine.cxx.
const char * dabc::Xml::GetAttr | ( | XMLNodePointer_t | xmlnode, |
const char * | name | ||
) |
Definition at line 411 of file XmlEngine.cxx.
int dabc::Xml::GetIntAttr | ( | XMLNodePointer_t | node, |
const char * | name | ||
) |
Definition at line 426 of file XmlEngine.cxx.
dabc::XMLAttrPointer_t dabc::Xml::NewAttr | ( | XMLNodePointer_t | xmlnode, |
XMLNsPointer_t | , | ||
const char * | name, | ||
const char * | value | ||
) |
Definition at line 438 of file XmlEngine.cxx.
dabc::XMLAttrPointer_t dabc::Xml::NewIntAttr | ( | XMLNodePointer_t | xmlnode, |
const char * | name, | ||
int | value | ||
) |
Definition at line 465 of file XmlEngine.cxx.
void dabc::Xml::FreeAttr | ( | XMLNodePointer_t | xmlnode, |
const char * | name | ||
) |
Definition at line 477 of file XmlEngine.cxx.
void dabc::Xml::FreeAllAttr | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 501 of file XmlEngine.cxx.
dabc::XMLAttrPointer_t dabc::Xml::GetFirstAttr | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 518 of file XmlEngine.cxx.
dabc::XMLAttrPointer_t dabc::Xml::GetNextAttr | ( | XMLAttrPointer_t | xmlattr | ) |
Definition at line 532 of file XmlEngine.cxx.
const char * dabc::Xml::GetAttrName | ( | XMLAttrPointer_t | xmlattr | ) |
Definition at line 542 of file XmlEngine.cxx.
const char * dabc::Xml::GetAttrValue | ( | XMLAttrPointer_t | xmlattr | ) |
Definition at line 553 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::NewChild | ( | XMLNodePointer_t | parent, |
XMLNsPointer_t | ns, | ||
const char * | name, | ||
const char * | content = nullptr |
||
) |
Definition at line 564 of file XmlEngine.cxx.
dabc::XMLNsPointer_t dabc::Xml::NewNS | ( | XMLNodePointer_t | xmlnode, |
const char * | reference, | ||
const char * | name = nullptr |
||
) |
Definition at line 595 of file XmlEngine.cxx.
dabc::XMLNsPointer_t dabc::Xml::GetNS | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 620 of file XmlEngine.cxx.
const char * dabc::Xml::GetNSName | ( | XMLNsPointer_t | ns | ) |
Definition at line 631 of file XmlEngine.cxx.
const char * dabc::Xml::GetNSReference | ( | XMLNsPointer_t | ns | ) |
Definition at line 643 of file XmlEngine.cxx.
void dabc::Xml::AddChild | ( | XMLNodePointer_t | parent, |
XMLNodePointer_t | child | ||
) |
Definition at line 652 of file XmlEngine.cxx.
void dabc::Xml::AddChildFirst | ( | XMLNodePointer_t | parent, |
XMLNodePointer_t | child | ||
) |
Definition at line 672 of file XmlEngine.cxx.
bool dabc::Xml::AddComment | ( | XMLNodePointer_t | parent, |
const char * | comment | ||
) |
Definition at line 689 of file XmlEngine.cxx.
bool dabc::Xml::AddDocComment | ( | XMLDocPointer_t | xmldoc, |
const char * | comment | ||
) |
Definition at line 705 of file XmlEngine.cxx.
bool dabc::Xml::AddRawLine | ( | XMLNodePointer_t | parent, |
const char * | line | ||
) |
Definition at line 722 of file XmlEngine.cxx.
bool dabc::Xml::AddDocRawLine | ( | XMLDocPointer_t | xmldoc, |
const char * | line | ||
) |
Definition at line 739 of file XmlEngine.cxx.
bool dabc::Xml::AddStyleSheet | ( | XMLNodePointer_t | parent, |
const char * | href, | ||
const char * | type = "text/css" , |
||
const char * | title = nullptr , |
||
int | alternate = -1 , |
||
const char * | media = nullptr , |
||
const char * | charset = nullptr |
||
) |
Definition at line 757 of file XmlEngine.cxx.
bool dabc::Xml::AddDocStyleSheet | ( | XMLDocPointer_t | xmldoc, |
const char * | href, | ||
const char * | type = "text/css" , |
||
const char * | title = nullptr , |
||
int | alternate = -1 , |
||
const char * | media = nullptr , |
||
const char * | charset = nullptr |
||
) |
Definition at line 798 of file XmlEngine.cxx.
void dabc::Xml::UnlinkNode | ( | XMLNodePointer_t | node | ) |
Definition at line 822 of file XmlEngine.cxx.
void dabc::Xml::FreeNode | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 847 of file XmlEngine.cxx.
void dabc::Xml::UnlinkFreeNode | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 876 of file XmlEngine.cxx.
const char * dabc::Xml::GetNodeName | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 885 of file XmlEngine.cxx.
const char * dabc::Xml::GetNodeContent | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 893 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::GetChild | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 906 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::GetParent | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 917 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::GetNext | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 925 of file XmlEngine.cxx.
void dabc::Xml::ShiftToNext | ( | XMLNodePointer_t & | xmlnode, |
bool | tonode = true |
||
) |
Definition at line 933 of file XmlEngine.cxx.
bool dabc::Xml::IsEmptyNode | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 945 of file XmlEngine.cxx.
void dabc::Xml::SkipEmpty | ( | XMLNodePointer_t & | xmlnode | ) |
Definition at line 953 of file XmlEngine.cxx.
void dabc::Xml::CleanNode | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 962 of file XmlEngine.cxx.
dabc::XMLDocPointer_t dabc::Xml::NewDoc | ( | const char * | version = "1.0" | ) |
Definition at line 981 of file XmlEngine.cxx.
void dabc::Xml::AssignDtd | ( | XMLDocPointer_t | xmldoc, |
const char * | dtdname, | ||
const char * | rootname | ||
) |
Definition at line 1000 of file XmlEngine.cxx.
void dabc::Xml::FreeDoc | ( | XMLDocPointer_t | xmldoc | ) |
Definition at line 1013 of file XmlEngine.cxx.
void dabc::Xml::SaveDoc | ( | XMLDocPointer_t | xmldoc, |
const char * | filename, | ||
int | layout = 1 |
||
) |
Definition at line 1026 of file XmlEngine.cxx.
void dabc::Xml::DocSetRootElement | ( | XMLDocPointer_t | xmldoc, |
XMLNodePointer_t | xmlnode | ||
) |
Definition at line 1050 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::DocGetRootElement | ( | XMLDocPointer_t | xmldoc | ) |
Definition at line 1062 of file XmlEngine.cxx.
dabc::XMLDocPointer_t dabc::Xml::ParseFile | ( | const char * | filename, |
bool | showerr = true |
||
) |
Definition at line 1078 of file XmlEngine.cxx.
dabc::XMLDocPointer_t dabc::Xml::ParseString | ( | const char * | xmlstring, |
bool | showerr = true |
||
) |
Definition at line 1089 of file XmlEngine.cxx.
bool dabc::Xml::ValidateVersion | ( | XMLDocPointer_t | doc, |
const char * | version = nullptr |
||
) |
Definition at line 1135 of file XmlEngine.cxx.
void dabc::Xml::SaveSingleNode | ( | XMLNodePointer_t | xmlnode, |
std::string * | res, | ||
int | layout = 1 |
||
) |
Definition at line 1155 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::ReadSingleNode | ( | const char * | src | ) |
Definition at line 1171 of file XmlEngine.cxx.
char * dabc::Xml::Makestr | ( | const char * | str | ) |
Definition at line 1193 of file XmlEngine.cxx.
char * dabc::Xml::Makenstr | ( | const char * | start, |
int | len | ||
) |
Definition at line 1206 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::AllocateNode | ( | int | namelen, |
XMLNodePointer_t | parent | ||
) |
Definition at line 1218 of file XmlEngine.cxx.
dabc::XMLAttrPointer_t dabc::Xml::AllocateAttr | ( | int | namelen, |
int | valuelen, | ||
XMLNodePointer_t | xmlnode | ||
) |
Definition at line 1242 of file XmlEngine.cxx.
dabc::XMLNsPointer_t dabc::Xml::FindNs | ( | XMLNodePointer_t | xmlnode, |
const char * | nsname | ||
) |
Definition at line 1267 of file XmlEngine.cxx.
void dabc::Xml::TruncateNsExtension | ( | XMLNodePointer_t | xmlnode | ) |
Definition at line 1283 of file XmlEngine.cxx.
void dabc::Xml::UnpackSpecialCharacters | ( | char * | target, |
const char * | source, | ||
int | srclen | ||
) |
Definition at line 1299 of file XmlEngine.cxx.
void dabc::Xml::OutputValue | ( | char * | value, |
XmlOutputStream * | out | ||
) |
Definition at line 1332 of file XmlEngine.cxx.
void dabc::Xml::SaveNode | ( | XMLNodePointer_t | xmlnode, |
XmlOutputStream * | out, | ||
int | layout, | ||
int | level | ||
) |
Definition at line 1359 of file XmlEngine.cxx.
dabc::XMLNodePointer_t dabc::Xml::ReadNode | ( | XMLNodePointer_t | xmlparent, |
XmlInputStream * | inp, | ||
int & | resvalue | ||
) |
Definition at line 1453 of file XmlEngine.cxx.
void dabc::Xml::DisplayError | ( | int | error, |
int | linenumber | ||
) |
Definition at line 1640 of file XmlEngine.cxx.
dabc::XMLDocPointer_t dabc::Xml::ParseStream | ( | XmlInputStream * | input, |
bool | showerr | ||
) |
Definition at line 1099 of file XmlEngine.cxx.