Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
BIAS::NodeInfoMap Class Reference

#include <GLviewer/Scenes/NodeInfo.hh>

+ Inheritance diagram for BIAS::NodeInfoMap:
+ Collaboration diagram for BIAS::NodeInfoMap:

Public Member Functions

bool AreKeyPointersValid ()
 
bool NodeHasNodeInfo (osg::Node *node) const
 
 NodeInfoMap ()
 
xmlNodePtr XMLAdd (const xmlNodePtr Node, XMLIO &XMLObject) const
 call this to add the class to a node of a given xml tree More...
 
virtual int XMLGetClassName (std::string &TopLevelTag, double &Version) const
 derived classes must implement this, so that it returns the name of the class for the top level tag in the XML file More...
 
virtual int XMLIn (const xmlNodePtr Node, BIAS::XMLIO &XMLObject)
 derived classes must implement this to read everything in Node into (*this). More...
 
virtual int XMLOut (const xmlNodePtr Node, BIAS::XMLIO &XMLObject) const
 derived classes must implement this to write the code of (*this) into the XML tree. More...
 
int XMLRead (const std::string &Filename)
 derived classes must implement the function XMLIn which is called by this function XMLRead to read everything with name Filename into (*this). More...
 
int XMLReadFromString (const std::string &str)
 reconstruct xml tree from string More...
 
int XMLWrite (const std::string &Filename, int CompressionLevel=0, bool AutoAddCompressionSuffix=true, std::string encoding="UTF-8") const
 call this to add the class to a new xml tree and write it to the file Filename. More...
 
int XMLWriteToString (std::string &str, std::string encoding="UTF-8") const
 serialize xml tree to string More...
 

Public Attributes

elements
 STL member. More...
 
keys
 STL member. More...
 

Protected Attributes

bool areKeyPointersValid_
 

Detailed Description

Definition at line 160 of file NodeInfo.hh.

Constructor & Destructor Documentation

BIAS::NodeInfoMap::NodeInfoMap ( )
inline

Definition at line 164 of file NodeInfo.hh.

References areKeyPointersValid_.

Member Function Documentation

bool BIAS::NodeInfoMap::AreKeyPointersValid ( )
inline

Definition at line 211 of file NodeInfo.hh.

References areKeyPointersValid_.

bool BIAS::NodeInfoMap::NodeHasNodeInfo ( osg::Node *  node) const
inline

Definition at line 206 of file NodeInfo.hh.

Referenced by BIAS::SceneOpenSceneGraph::IsEditableNode().

xmlNodePtr XMLBase::XMLAdd ( const xmlNodePtr  Node,
XMLIO XMLObject 
) const
inherited

call this to add the class to a node of a given xml tree

Attention
interface changed 3/2008: return value now nodeptr of added node!

Definition at line 26 of file XMLBase.cpp.

References BIAS::XMLIO::addAttribute(), and BIAS::XMLIO::addChildNode().

virtual int BIAS::NodeInfoMap::XMLGetClassName ( std::string &  TopLevelTag,
double &  Version 
) const
inlinevirtual

derived classes must implement this, so that it returns the name of the class for the top level tag in the XML file

Implements BIAS::XMLBase.

Definition at line 168 of file NodeInfo.hh.

virtual int BIAS::NodeInfoMap::XMLIn ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
)
inlinevirtual

derived classes must implement this to read everything in Node into (*this).

Called by XMLRead of XMLBase.

Returns
0 on success, <0 on error

Implements BIAS::XMLBase.

Definition at line 175 of file NodeInfo.hh.

References areKeyPointersValid_, BIAS::XMLIO::getFirstChild(), BIAS::XMLIO::getNextChild(), and BIAS::NodeInfo::XMLIn().

virtual int BIAS::NodeInfoMap::XMLOut ( const xmlNodePtr  Node,
BIAS::XMLIO XMLObject 
) const
inlinevirtual

derived classes must implement this to write the code of (*this) into the XML tree.

Called by XMLRead of XMLBase.

Parameters
nodealways points to a node with a name given by the function XMLGetTopLevelName

Implements BIAS::XMLBase.

Definition at line 195 of file NodeInfo.hh.

int XMLBase::XMLRead ( const std::string &  Filename)
inherited
int XMLBase::XMLReadFromString ( const std::string &  str)
inherited

reconstruct xml tree from string

Author
evers
Examples:
ExampleProjection.cpp.

Definition at line 111 of file XMLBase.cpp.

References BIAS::XMLIO::clear(), BIAS::XMLIO::getAttributeValueDouble(), BIAS::XMLIO::getNodeName(), and BIAS::XMLIO::ReadFromString().

Referenced by BIAS::IOUtils::GetProjection().

int XMLBase::XMLWrite ( const std::string &  Filename,
int  CompressionLevel = 0,
bool  AutoAddCompressionSuffix = true,
std::string  encoding = "UTF-8" 
) const
inherited
int XMLBase::XMLWriteToString ( std::string &  str,
std::string  encoding = "UTF-8" 
) const
inherited

serialize xml tree to string

Author
evers
Examples:
ExampleProjection.cpp.

Definition at line 61 of file XMLBase.cpp.

References BIAS::XMLIO::addAttribute(), BIAS::XMLIO::clear(), BIAS::XMLIO::create(), BIAS::XMLIO::SetEncoding(), and BIAS::XMLIO::WriteToString().

Member Data Documentation

bool BIAS::NodeInfoMap::areKeyPointersValid_
protected

Definition at line 214 of file NodeInfo.hh.

Referenced by AreKeyPointersValid(), NodeInfoMap(), and XMLIn().

T std::map< K, T >::elements
inherited

STL member.

K std::map< K, T >::keys
inherited

STL member.


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