aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
ticpp.h File Reference
#include "ticpprc.h"
#include "tinyxml.h"
#include <exception>
#include <memory>
#include <sstream>
#include <typeinfo>
#include <vector>
+ Include dependency graph for ticpp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ticpp::Exception
 This is a ticpp exception class. More...
 
class  ticpp::Visitor
 Wrapper around TiXmlVisitor. More...
 
class  ticpp::Base
 Wrapper around TiXmlBase. More...
 
class  ticpp::Attribute
 Wrapper around TiXmlAttribute. More...
 
class  ticpp::Node
 Wrapper around TiXmlNode. More...
 
class  ticpp::Iterator< T >
 Iterator for conveniently stepping through Nodes and Attributes. More...
 
class  ticpp::NodeImp< T >
 Implementation of Node wrapper. More...
 
class  ticpp::Comment
 Wrapper around TiXmlComment. More...
 
class  ticpp::Text
 Wrapper around TiXmlText. More...
 
class  ticpp::Document
 Wrapper around TiXmlDocument. More...
 
class  ticpp::Element
 Wrapper around TiXmlElement. More...
 
class  ticpp::Declaration
 Wrapper around TiXmlDeclaration. More...
 
class  ticpp::StylesheetReference
 Wrapper around TiXmlStylesheetReference. More...
 

Namespaces

 ticpp
 

Macros

#define TIXML_USE_TICPP
 
#define TICPP_INCLUDED
 
#define TICPPTHROW(message)
 This allows you to stream your exceptions in. More...
 

Detailed Description

ticpp is a TinyXML wrapper that uses a lot more C++ ideals. It throws exceptions, uses templates, is in its own name space, and requires STL (Standard Template Library). This is done to ease the use of getting values in and out of the xml.

If you don't perfer to use some of the concepts just don't use it. It is just a wrapper that extends TinyXML. It doesn't actually change any of TinyXML.

Author
Ryan Pusztai
Ryan Mulder
Date
04/11/2006
Version
0.04a by edam@.nosp@m.waxw.nosp@m.orlds.nosp@m..org: based Exception based on std::exception; added stream << and >> support; added Document::Parse(); bug fix; improved THROW() macro.
0.04 Added NodeImp class. Also made all the classes inherit from NodeImp.
0.03 Added Declaration class
0.02 Added Element class
0.01 Added Exception class, Document class
Todo:

add UNKNOWN support. See ticpp::NodeFactory.

add TYPECOUNT support. See ticpp::NodeFactory.

Add a quick reference

Definition in file ticpp.h.

Macro Definition Documentation

◆ TICPP_INCLUDED

#define TICPP_INCLUDED

Definition at line 49 of file ticpp.h.

◆ TICPPTHROW

#define TICPPTHROW (   message)
Value:
{ \
std::ostringstream full_message; \
std::string file( __FILE__); \
file = file.substr(file.find_last_of("\\/") + 1); \
full_message << message << " <" << file << "@" << __LINE__ << ">"; \
full_message << BuildDetailedErrorString(); \
throw Exception(full_message.str()); \
}

This allows you to stream your exceptions in.

It will take care of the conversion and throwing the exception.

Definition at line 92 of file ticpp.h.

◆ TIXML_USE_TICPP

#define TIXML_USE_TICPP

Definition at line 45 of file ticpp.h.