XML helpers
[XiMoL Users]


Detailed Description

This module contains the user interface functions.


Files

file  context.hpp
 Define the XML context. .


Classes

class  attributes
 A simple class to contain attributes of a tag. More...

class  reader
 You must set all tags and launch the reader on an istream. More...


Functions

template<typename StringT1, typename StringT2, typename T> XIMOL_XML_END_NAMESPACE XIMOL_BEGIN_NAMESPACE
std::pair< xml::attributes::iterator,
bool > 
insert_attribute (xml::attributes &att, StringT1 const &namespace_name, StringT2 const &name, T const &value)
 insert an attribute insert a attribute in the attribute list.

template<typename StringT, typename T> std::pair< xml::attributes::iterator,
bool > 
insert_attribute (xml::attributes &att, StringT const &name, T const &value)
 insert an attribute insert a attribute in the attribute list.

XIMOL_EXPORT xostreamcdata_start (xostream &xos)
XIMOL_EXPORT xistreamcdata_start (xistream &xis)
XIMOL_EXPORT xostreamcdata_end (xostream &xos)
XIMOL_EXPORT xistreamcdata_end (xistream &xis)


Function Documentation

XIMOL_EXPORT xistream& cdata_end xistream xis  ) 
 

XIMOL_EXPORT xostream& cdata_end xostream xos  ) 
 

XIMOL_EXPORT xistream& cdata_start xistream xis  ) 
 

XIMOL_EXPORT xostream& cdata_start xostream xos  ) 
 

template<typename StringT, typename T>
std::pair<xml::attributes::iterator, bool> insert_attribute xml::attributes att,
StringT const &  name,
T const &  value
 

insert an attribute insert a attribute in the attribute list.

if the attribute name already exist, nothing is done.

Definition at line 342 of file attributes.hpp.

template<typename StringT1, typename StringT2, typename T>
XIMOL_XML_END_NAMESPACE XIMOL_BEGIN_NAMESPACE std::pair<xml::attributes::iterator, bool> insert_attribute xml::attributes att,
StringT1 const &  namespace_name,
StringT2 const &  name,
T const &  value
 

insert an attribute insert a attribute in the attribute list.

if the attribute name already exist, nothing is done. If an insertion occurred, the function returns pair(where, true). Otherwise, it returns pair(it, false).

Parameters:
att: the attributes list
namespace_name: the namespace or shortcut for the inserted attribute
name: the name for the inserted attribute
value: the value for the inserted attribute (serialize with str<xstring>::cast(value))
Returns:
If an insertion occurred, the function returns pair(where, true). Otherwise, it returns pair(it, false).
Examples:
tutorial_attribute.cpp.

Definition at line 322 of file attributes.hpp.



Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.