Basic Image AlgorithmS Library
2.8.0
|
Wrapper class for reading and writing XML files based on the XML library libxml2. More...
#include <Base/Common/XMLIO.hh>
Public Member Functions | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, bool AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, const std::string &AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, const char *AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, int AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, double AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, const std::vector< double > &AttributeValue) |
Add an attribute to a node. More... | |
void | addAttribute (const xmlNodePtr Node, const std::string &AttributeName, const std::vector< int > &AttributeValue) |
Add an attribute to a node. More... | |
xmlNodePtr | addChildNode (const xmlNodePtr ParentNode, const std::string &NewNodeName) |
Add a child node to an incoming node with the given name. More... | |
void | addComment (const xmlNodePtr Node, const std::string &Comment) |
Add comment to a node. More... | |
void | addContent (const xmlNodePtr Node, const std::string &Content) |
Add content to a node. More... | |
void | addContent (const xmlNodePtr Node, const int Content) |
void | addContent (const xmlNodePtr Node, const double Content) |
void | addContent (const xmlNodePtr Node, const std::vector< int > Content) |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | clear () |
xmlNodePtr | create (const std::string &RootNodeName) |
Create the base of a new XML-Tree in memory, already with a one and only root node. More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
xmlAttrPtr | getAttributeByName (const xmlNodePtr Node, const std::string &attribute_name) |
search for a specific attribute More... | |
std::string | getAttributeName (const xmlAttrPtr Attribute) const |
Get the name of a given Attribute. More... | |
void | GetAttributes (const xmlNodePtr Node, std::vector< xmlAttrPtr > &attributes) |
accesor functions for recursive usage More... | |
bool | getAttributeValueBool (const xmlAttrPtr Attribute) const |
Get the value of a given Attribute, with type-cast overloads for different attribute types. More... | |
bool | getAttributeValueBool (const xmlNodePtr Node, const std::string &AttributeName) const |
Get the value of an Attribute stecified by the attributes name, with type-cast overloads for different attribute types. More... | |
double | getAttributeValueDouble (const xmlAttrPtr Attribute) const |
double | getAttributeValueDouble (const xmlNodePtr Node, const std::string &AttributeName) const |
int | getAttributeValueInt (const xmlAttrPtr Attribute) const |
int | getAttributeValueInt (const xmlNodePtr Node, const std::string &AttributeName) const |
std::string | getAttributeValueString (const xmlAttrPtr Attribute) const |
std::string | getAttributeValueString (const xmlNodePtr Node, const std::string &AttributeName) const |
std::vector< double > | getAttributeValueVecDbl (const xmlAttrPtr Attribute) const |
std::vector< double > | getAttributeValueVecDbl (const xmlNodePtr Node, const std::string &AttributeName) const |
std::vector< int > | getAttributeValueVecInt (const xmlAttrPtr Attribute) const |
std::vector< int > | getAttributeValueVecInt (const xmlNodePtr Node, const std::string &AttributeName) const |
xmlNodePtr | getChild (const xmlNodePtr ParentNode, const std::string &ChildName) |
Get a child of a Parent node by specifying the childs name, NULL is returned if the ParentNode has no child of the given name. More... | |
void | GetChildren (const xmlNodePtr ParentNode, const std::string &ChildName, std::vector< xmlNodePtr > &childrenWithSameName) |
Convenience wrapper: returns a vector of pointors to every (direct) child with the specified name. More... | |
void | GetChildren (const xmlNodePtr ParentNode, std::vector< xmlNodePtr > &children) |
accesor functions for recursive usage More... | |
xmlNodePtr | GetChildWithAttributeValueString (const xmlNodePtr ParentNode, const std::string &ChildName, const std::string &AttributeName, const std::string &AttributeValue) |
Finds the 'first' child with name ChildName and an attribute named AttributeName that has the string value AttributeValue, return NULL if unsuccessful. More... | |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
std::string | GetEncoding () |
xmlAttrPtr | getFirstAttribute (const xmlNodePtr Node) |
Get the first attribute of a given parent, or NULL for no attributes. More... | |
xmlNodePtr | getFirstChild (const xmlNodePtr ParentNode) |
Get the first child of a given parent, or NULL for no childs. More... | |
xmlAttrPtr | getNextAttribute () |
Get the next attribute of the parent specified in the last getFirstAttribute() call, the class remembers the last returned attribute. More... | |
xmlNodePtr | getNextChild () |
Get the next child of the parent specified in the last getFirstChild() call, the class remembers the last returned child. More... | |
xmlNodePtr | getNextChild (const xmlNodePtr SiblingNode) |
Get the next sibling of the given node. More... | |
double | getNodeContentDouble (const xmlNodePtr Node) const |
int | getNodeContentInt (const xmlNodePtr Node) const |
std::string | getNodeContentString (const xmlNodePtr Node) const |
Get the content of a given Node. More... | |
std::vector< double > | getNodeContentVectorDouble (const xmlNodePtr Node) const |
std::vector< int > | getNodeContentVectorInt (const xmlNodePtr Node) const |
std::string | getNodeName (const xmlNodePtr Node) const |
Get the name of a given Node. More... | |
xmlNodePtr | getRootNode () |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
xmlNodePtr | read (const std::string &Filename) |
Read and parse an XML file from disk, DtD validation is not yet implemented. More... | |
xmlNodePtr | ReadFromString (const std::string &str) |
construct tree from string More... | |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
int | SetCompression (int level=9) |
set level of compression, needs zlib More... | |
void | setContent (const xmlNodePtr Node, const std::string &Content) |
Set content of a node. More... | |
void | setContent (const xmlNodePtr Node, const int Content) |
void | setContent (const xmlNodePtr Node, const double Content) |
void | setContent (const xmlNodePtr Node, const std::vector< int > Content) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | SetEncoding (const std::string &encoding) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
int | write (const std::string &Filename, bool AutoAddCompressionSuffix=true) const |
Write the whole tree that was constructed in memory to disk. More... | |
int | WriteToString (std::string &str) |
serialize tree to string More... | |
XMLIO () | |
~XMLIO () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static int | IsoLatin1ToUtf8 (const std::string &isoLatin1, std::string &utf8) |
Convert character string from UTF-8 format to ISO 8895-1. More... | |
static void | SetGlobalDebugLevel (long int lev) |
static int | Utf8ToIsoLatin1 (const std::string &utf8, std::string &isoLatin1) |
Convert character string from ISO 8895-1 format to UTF-8. More... | |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
xmlAttrPtr | CurrAttr_ |
xmlNodePtr | CurrNode_ |
std::string | Encoding_ |
bool | isInitialized_ |
xmlNodePtr | RootNode_ |
xmlDocPtr | xmlDoc_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
Wrapper class for reading and writing XML files based on the XML library libxml2.
Implements a tree-oriented reader and writer for XML files
the naming convention for this class is: <rootNode> <childNodeName attributename="AttributeValue"> Content of childNodeName </childNodeName> </rootNode>
The class first creates a tree in memory, this tree is written to a file in one flush using write(). A new tree is created with create(). A tree is read from file and parsed with read().
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
bool | AttributeValue | ||
) |
Add an attribute to a node.
Definition at line 156 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersIO::AddCameraDataToNode(), BIAS::ProjectionParametersIO::AddCameraDataToRig(), BIAS::NurbsSurface::SaveToXML(), BIAS::GenSynthMatchesRig::Write(), BIAS::ProjectionParametersIO::WriteCameraData(), BIAS::Param::WriteParameterXML(), BIAS::ProjectionParametersIO::WriteRigData(), BIAS::XMLBase::XMLAdd(), BIAS::SceneTextScreen::XMLOut(), BIAS::SceneText::XMLOut(), BIAS::ProjectionParametersBufferedRay::XMLOut(), BIAS::NodeInfo::XMLOut(), BIAS::ProjectionParametersOrthographic::XMLOut(), BIAS::ProjectionParametersGreatCircles::XMLOut(), BIAS::ProjectionParametersSphericalSimple::XMLOut(), BIAS::ProjectionParametersCylindric::XMLOut(), BIAS::ProjectionParametersZoom::XMLOut(), BIAS::ProjectionParametersProjective::XMLOut(), BIAS::ProjectionParametersSphericalFast::XMLOut(), BIAS::ProjectionParametersPerspectiveDepth::XMLOut(), BIAS::ProjectionParametersSpherical::XMLOut(), BIAS::PMatrix::XMLOut(), BIAS::Projection::XMLOut(), BIAS::ProjectionParametersPerspective::XMLOut(), BIAS::ProjectionParametersBase::XMLOut(), BIAS::XMLBase::XMLWrite(), and BIAS::XMLBase::XMLWriteToString().
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
const std::string & | AttributeValue | ||
) |
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
const char * | AttributeValue | ||
) |
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
int | AttributeValue | ||
) |
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
double | AttributeValue | ||
) |
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
const std::vector< double > & | AttributeValue | ||
) |
void XMLIO::addAttribute | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName, | ||
const std::vector< int > & | AttributeValue | ||
) |
xmlNodePtr XMLIO::addChildNode | ( | const xmlNodePtr | ParentNode, |
const std::string & | NewNodeName | ||
) |
Add a child node to an incoming node with the given name.
Definition at line 131 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersIO::AddCameraDataToNode(), BIAS::ProjectionParametersIO::AddCameraDataToRig(), BIAS::NurbsSurface::SaveToXML(), BIAS::GenSynthMatchesRig::Write(), BIAS::Param::WriteParameterXML(), BIAS::ProjectionParametersIO::WriteRigData(), BIAS::XMLBase::XMLAdd(), BIAS::SceneTextScreen::XMLOut(), BIAS::SceneText::XMLOut(), BIAS::ProjectionParametersBufferedRay::XMLOut(), BIAS::ProjectionParametersOrthographic::XMLOut(), BIAS::ProjectionParametersGreatCircles::XMLOut(), BIAS::Pose::XMLOut(), BIAS::ProjectionParametersSphericalSimple::XMLOut(), BIAS::ProjectionParametersCylindric::XMLOut(), BIAS::ProjectionParametersZoom::XMLOut(), BIAS::ProjectionParametersProjective::XMLOut(), BIAS::ProjectionParametersSphericalFast::XMLOut(), BIAS::ProjectionParametersPerspectiveDepth::XMLOut(), BIAS::ProjectionParametersSpherical::XMLOut(), BIAS::PMatrix::XMLOut(), BIAS::Projection::XMLOut(), BIAS::ProjectionParametersPerspective::XMLOut(), and BIAS::ProjectionParametersBase::XMLOut().
void XMLIO::addComment | ( | const xmlNodePtr | Node, |
const std::string & | Comment | ||
) |
Add comment to a node.
Definition at line 309 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersIO::AddCameraDataToNode(), BIAS::Param::WriteParameterXML(), and BIAS::ProjectionParametersIO::WriteRigData().
void XMLIO::addContent | ( | const xmlNodePtr | Node, |
const std::string & | Content | ||
) |
Add content to a node.
Definition at line 254 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::SaveToXML(), BIAS::ProjectionParametersIO::WriteRigData(), BIAS::SceneTextScreen::XMLOut(), BIAS::SceneText::XMLOut(), BIAS::Pose::XMLOut(), BIAS::ProjectionParametersProjective::XMLOut(), BIAS::PMatrix::XMLOut(), BIAS::Projection::XMLOut(), and BIAS::ProjectionParametersBase::XMLOut().
void XMLIO::addContent | ( | const xmlNodePtr | Node, |
const int | Content | ||
) |
void XMLIO::addContent | ( | const xmlNodePtr | Node, |
const double | Content | ||
) |
void XMLIO::addContent | ( | const xmlNodePtr | Node, |
const std::vector< int > | Content | ||
) |
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
void XMLIO::clear | ( | ) |
Definition at line 74 of file XMLIO.cpp.
Referenced by BIAS::Param::WriteParameterXML(), BIAS::XMLBase::XMLRead(), BIAS::XMLBase::XMLReadFromString(), BIAS::XMLBase::XMLWrite(), and BIAS::XMLBase::XMLWriteToString().
|
inlineprotectedinherited |
xmlNodePtr XMLIO::create | ( | const std::string & | RootNodeName | ) |
Create the base of a new XML-Tree in memory, already with a one and only root node.
Definition at line 88 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::SaveToXML(), BIAS::GenSynthMatchesRig::Write(), BIAS::ProjectionParametersIO::WriteCameraData(), BIAS::Param::WriteParameterXML(), BIAS::ProjectionParametersIO::WriteRigData(), BIAS::XMLBase::XMLWrite(), and BIAS::XMLBase::XMLWriteToString().
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
xmlAttrPtr XMLIO::getAttributeByName | ( | const xmlNodePtr | Node, |
const std::string & | attribute_name | ||
) |
search for a specific attribute
Definition at line 650 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::Pose::XMLIn(), BIAS::ProjectionParametersSphericalSimple::XMLIn(), BIAS::ProjectionParametersCylindric::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersPerspectiveDepth::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), and BIAS::ProjectionParametersPerspective::XMLIn().
std::string XMLIO::getAttributeName | ( | const xmlAttrPtr | Attribute | ) | const |
Get the name of a given Attribute.
Definition at line 690 of file XMLIO.cpp.
Referenced by BIAS::Param::ReadParameterXML().
void XMLIO::GetAttributes | ( | const xmlNodePtr | Node, |
std::vector< xmlAttrPtr > & | attributes | ||
) |
bool XMLIO::getAttributeValueBool | ( | const xmlAttrPtr | Attribute | ) | const |
Get the value of a given Attribute, with type-cast overloads for different attribute types.
Use getAttributeValueString() for unknown attribute types.
Definition at line 700 of file XMLIO.cpp.
References BIAS::FileHandling::LowerCase().
Referenced by BIAS::Param::ReadParameterXML(), BIAS::NodeInfo::XMLIn(), and BIAS::ProjectionParametersBufferedRay::XMLIn().
bool XMLIO::getAttributeValueBool | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
Get the value of an Attribute stecified by the attributes name, with type-cast overloads for different attribute types.
Use getAttributeValueString() for unknown attribute types.
Definition at line 785 of file XMLIO.cpp.
References BIAS::FileHandling::LowerCase().
double XMLIO::getAttributeValueDouble | ( | const xmlAttrPtr | Attribute | ) | const |
Definition at line 736 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::LoadFromXML(), BIAS::PMDImageIO::LoadXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::Param::ReadParameterXML(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), BIAS::SceneTextScreen::XMLIn(), BIAS::SceneText::XMLIn(), BIAS::ProjectionParametersOrthographic::XMLIn(), BIAS::ProjectionParametersGreatCircles::XMLIn(), BIAS::ProjectionParametersSphericalSimple::XMLIn(), BIAS::ProjectionParametersCylindric::XMLIn(), BIAS::ProjectionParametersZoom::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersPerspectiveDepth::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), BIAS::PMatrix::XMLIn(), BIAS::ProjectionParametersPerspective::XMLIn(), BIAS::ProjectionParametersBase::XMLIn(), BIAS::XMLBase::XMLRead(), and BIAS::XMLBase::XMLReadFromString().
double XMLIO::getAttributeValueDouble | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
int XMLIO::getAttributeValueInt | ( | const xmlAttrPtr | Attribute | ) | const |
Definition at line 728 of file XMLIO.cpp.
Referenced by BIAS::PMDImageIO::LoadXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::Param::ReadParameterXML(), BIAS::ProjectionParametersProjective::XMLIn(), BIAS::ProjectionParametersPerspectiveDepth::XMLIn(), and BIAS::ProjectionParametersBase::XMLIn().
int XMLIO::getAttributeValueInt | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
std::string XMLIO::getAttributeValueString | ( | const xmlAttrPtr | Attribute | ) | const |
Definition at line 716 of file XMLIO.cpp.
Referenced by BIAS::GenSynthMatchesRig::Read(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), BIAS::Param::ReadParameterXML(), BIAS::NodeInfo::XMLIn(), BIAS::Pose::XMLIn(), BIAS::ProjectionParametersPerspectiveDepth::XMLIn(), BIAS::PMatrix::XMLIn(), BIAS::ProjectionParametersPerspective::XMLIn(), and BIAS::ProjectionParametersBase::XMLIn().
std::string XMLIO::getAttributeValueString | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
std::vector< double > XMLIO::getAttributeValueVecDbl | ( | const xmlAttrPtr | Attribute | ) | const |
Definition at line 747 of file XMLIO.cpp.
Referenced by BIAS::Param::ReadParameterXML(), and BIAS::ProjectionParametersCylindric::XMLIn().
std::vector< double > XMLIO::getAttributeValueVecDbl | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
std::vector< int > XMLIO::getAttributeValueVecInt | ( | const xmlAttrPtr | Attribute | ) | const |
Definition at line 761 of file XMLIO.cpp.
Referenced by BIAS::Param::ReadParameterXML().
std::vector< int > XMLIO::getAttributeValueVecInt | ( | const xmlNodePtr | Node, |
const std::string & | AttributeName | ||
) | const |
xmlNodePtr XMLIO::getChild | ( | const xmlNodePtr | ParentNode, |
const std::string & | ChildName | ||
) |
Get a child of a Parent node by specifying the childs name, NULL is returned if the ParentNode has no child of the given name.
Definition at line 489 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::LoadFromXML(), BIAS::PMDImageIO::LoadXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), BIAS::NurbsSurface::SaveToXML(), BIAS::Param::WriteParameterXML(), BIAS::ProjectionParametersBufferedRay::XMLIn(), BIAS::ProjectionParametersOrthographic::XMLIn(), BIAS::ProjectionParametersGreatCircles::XMLIn(), BIAS::ProjectionParametersSphericalSimple::XMLIn(), BIAS::ProjectionParametersCylindric::XMLIn(), BIAS::ProjectionParametersZoom::XMLIn(), BIAS::ProjectionParametersProjective::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersPerspectiveDepth::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), BIAS::PMatrix::XMLIn(), BIAS::ProjectionParametersPerspective::XMLIn(), and BIAS::ProjectionParametersBase::XMLIn().
void XMLIO::GetChildren | ( | const xmlNodePtr | ParentNode, |
const std::string & | ChildName, | ||
std::vector< xmlNodePtr > & | childrenWithSameName | ||
) |
Convenience wrapper: returns a vector of pointors to every (direct) child with the specified name.
&
Definition at line 506 of file XMLIO.cpp.
Referenced by BIAS::GenSynthMatchesRig::Read().
void XMLIO::GetChildren | ( | const xmlNodePtr | ParentNode, |
std::vector< xmlNodePtr > & | children | ||
) |
xmlNodePtr XMLIO::GetChildWithAttributeValueString | ( | const xmlNodePtr | ParentNode, |
const std::string & | ChildName, | ||
const std::string & | AttributeName, | ||
const std::string & | AttributeValue | ||
) |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
xmlAttrPtr XMLIO::getFirstAttribute | ( | const xmlNodePtr | Node | ) |
Get the first attribute of a given parent, or NULL for no attributes.
Definition at line 624 of file XMLIO.cpp.
Referenced by BIAS::GenSynthMatchesRig::Read(), and BIAS::Param::ReadParameterXML().
xmlNodePtr XMLIO::getFirstChild | ( | const xmlNodePtr | ParentNode | ) |
Get the first child of a given parent, or NULL for no childs.
Definition at line 452 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::LoadFromXML(), BIAS::PMDImageIO::LoadFromXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), BIAS::Param::ReadParameterXML(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), BIAS::SceneTextScreen::XMLIn(), BIAS::SceneText::XMLIn(), BIAS::ProjectionParametersBufferedRay::XMLIn(), BIAS::NodeInfoMap::XMLIn(), BIAS::ProjectionParametersZoom::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), and BIAS::Projection::XMLIn().
|
inlinestaticinherited |
xmlAttrPtr XMLIO::getNextAttribute | ( | ) |
Get the next attribute of the parent specified in the last getFirstAttribute() call, the class remembers the last returned attribute.
NULL iis returned if the last attribute was reached.
Definition at line 638 of file XMLIO.cpp.
Referenced by BIAS::Param::ReadParameterXML().
xmlNodePtr XMLIO::getNextChild | ( | ) |
Get the next child of the parent specified in the last getFirstChild() call, the class remembers the last returned child.
NULL is returned the last child was reached.
Definition at line 466 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::LoadFromXML(), BIAS::PMDImageIO::LoadFromXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), BIAS::Param::ReadParameterXML(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), BIAS::SceneTextScreen::XMLIn(), BIAS::SceneText::XMLIn(), BIAS::NodeInfoMap::XMLIn(), BIAS::ProjectionParametersZoom::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), and BIAS::Projection::XMLIn().
xmlNodePtr XMLIO::getNextChild | ( | const xmlNodePtr | SiblingNode | ) |
double XMLIO::getNodeContentDouble | ( | const xmlNodePtr | Node | ) | const |
Definition at line 613 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), and BIAS::ProjectionParametersIO::ReadRigData().
int XMLIO::getNodeContentInt | ( | const xmlNodePtr | Node | ) | const |
Definition at line 579 of file XMLIO.cpp.
Referenced by BIAS::NurbsSurface::LoadFromXML(), and BIAS::ProjectionParametersIO::ReadCameraDataV1_0().
std::string XMLIO::getNodeContentString | ( | const xmlNodePtr | Node | ) | const |
Get the content of a given Node.
Definition at line 554 of file XMLIO.cpp.
Referenced by BIAS::SceneTextScreen::XMLIn(), BIAS::SceneText::XMLIn(), BIAS::ProjectionParametersProjective::XMLIn(), BIAS::PMatrix::XMLIn(), BIAS::Projection::XMLIn(), and BIAS::ProjectionParametersBase::XMLIn().
vector< double > XMLIO::getNodeContentVectorDouble | ( | const xmlNodePtr | Node | ) | const |
vector< int > XMLIO::getNodeContentVectorInt | ( | const xmlNodePtr | Node | ) | const |
Definition at line 587 of file XMLIO.cpp.
Referenced by BIAS::PMDImageIO::LoadXML().
std::string XMLIO::getNodeName | ( | const xmlNodePtr | Node | ) | const |
Get the name of a given Node.
Definition at line 543 of file XMLIO.cpp.
Referenced by BIAS::ProjectionParametersFactory::Load(), BIAS::PMDImageIO::LoadFromXML(), BIAS::PMDImageIO::LoadXML(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::ProjectionParametersIO::ReadCameraDataV0_8(), BIAS::ProjectionParametersIO::ReadCameraDataV1_0(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), BIAS::SceneTextScreen::XMLIn(), BIAS::SceneText::XMLIn(), BIAS::ProjectionParametersBufferedRay::XMLIn(), BIAS::ProjectionParametersZoom::XMLIn(), BIAS::ProjectionParametersSphericalFast::XMLIn(), BIAS::ProjectionParametersSpherical::XMLIn(), BIAS::Projection::XMLIn(), BIAS::XMLBase::XMLRead(), and BIAS::XMLBase::XMLReadFromString().
|
inline |
Definition at line 306 of file XMLIO.hh.
Referenced by BIAS::NurbsSurface::SaveToXML().
|
static |
Convert character string from UTF-8 format to ISO 8895-1.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
xmlNodePtr XMLIO::read | ( | const std::string & | Filename | ) |
Read and parse an XML file from disk, DtD validation is not yet implemented.
Returns pointer to the RootNode or NULL if parse errors occurred.
Definition at line 416 of file XMLIO.cpp.
References BIAS::FileHandling::FilenameExpansion().
Referenced by BIAS::ProjectionParametersFactory::Load(), BIAS::NurbsSurface::LoadFromXML(), BIAS::PMDImageIO::LoadFromXML(), BIAS::PMDImageIO::LoadXML(), BIAS::GenSynthMatchesRig::Read(), BIAS::ProjectionParametersIO::ReadCameraData(), BIAS::Param::ReadParameterXML(), BIAS::ProjectionParametersIO::ReadRigData(), BIAS::ProjectionParametersIO::ReadRigDataV0_8(), and BIAS::XMLBase::XMLRead().
xmlNodePtr XMLIO::ReadFromString | ( | const std::string & | str | ) |
construct tree from string
Definition at line 905 of file XMLIO.cpp.
Referenced by BIAS::XMLBase::XMLReadFromString().
|
inlineinherited |
|
inlineinherited |
int XMLIO::SetCompression | ( | int | level = 9 | ) |
set level of compression, needs zlib
level | 0=compression off, ... , 9 means highest |
Definition at line 871 of file XMLIO.cpp.
Referenced by BIAS::XMLBase::XMLWrite().
void XMLIO::setContent | ( | const xmlNodePtr | Node, |
const std::string & | Content | ||
) |
void XMLIO::setContent | ( | const xmlNodePtr | Node, |
const int | Content | ||
) |
void XMLIO::setContent | ( | const xmlNodePtr | Node, |
const double | Content | ||
) |
void XMLIO::setContent | ( | const xmlNodePtr | Node, |
const std::vector< int > | Content | ||
) |
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 308 of file XMLIO.hh.
Referenced by BIAS::XMLBase::XMLWrite(), and BIAS::XMLBase::XMLWriteToString().
|
inlinestaticinherited |
|
inlineinherited |
|
static |
int XMLIO::write | ( | const std::string & | Filename, |
bool | AutoAddCompressionSuffix = true |
||
) | const |
Write the whole tree that was constructed in memory to disk.
AutoAddCompressionSuffix | relevant only if compression is active true means .z is attached, false means filename is used as is |
Definition at line 379 of file XMLIO.cpp.
References BIAS::FileHandling::FilenameExpansion().
Referenced by BIAS::NurbsSurface::SaveToXML(), BIAS::GenSynthMatchesRig::Write(), BIAS::ProjectionParametersIO::WriteCameraData(), BIAS::Param::WriteParameterXML(), BIAS::ProjectionParametersIO::WriteRigData(), and BIAS::XMLBase::XMLWrite().
int XMLIO::WriteToString | ( | std::string & | str | ) |
serialize tree to string
Definition at line 886 of file XMLIO.cpp.
Referenced by BIAS::XMLBase::XMLWriteToString().
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |