ximol/xml/content.hpp File Reference


Detailed Description

Define content Interface.

Todo:
make a function boxed_content
Author:
Tournois Florent
Version:
1.0
Id
content.hpp,v 1.7 2004/03/04 18:45:29 tournois Exp
Log
content.hpp,v
Revision 1.7 2004/03/04 18:45:29 tournois Compatibility with gcc.

Revision 1.6 2004/02/25 18:59:13 tournois imporve the gcc compatibility.

Revision 1.5 2004/02/22 10:27:34 tournois Add some doc.

Revision 1.4 2004/02/22 09:54:21 tournois Change years on the copyright.

Revision 1.3 2004/02/15 10:07:03 hfp content-functions (some) needs an ambiguity-buster ("hidden" arg as defaulted param) to compile

Revision 1.2 2004/01/29 20:52:35 tournois doc and tutorial.

Revision 1.1 2004/01/09 18:26:29 tournois Add box and content manipulator.

Definition in file content.hpp.

#include <ximol/stream.hpp>
#include <ximol/assignment.hpp>
#include <ximol/parser/utils.hpp>
#include <ximol/parser/def_signs.hpp>
#include <sstream>

Include dependency graph for content.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

class  manipulator_char_data_content
 Manipulator for the char data content. More...

class  manipulator_char_content
 Manipulator for the char data content. More...

class  manipulator_data_content
 class for the qualified name More...


Defines

#define XIMOL_CONTENT_CHAR_SPECIALIZATION(type)

Functions

XIMOL_EXPORT manipulator_char_data_content char_data_content (xistream &xis)
template<typename T> xostreamoperator<< (xostream &xos, const manipulator_char_content< T > &m)
template<typename T> xistreamoperator>> (xistream &xis, manipulator_char_content< T > m)
template<typename T> xostreamoperator<< (xostream &xos, const manipulator_data_content< T > &m)
template<typename T> xistreamoperator>> (xistream &xis, manipulator_data_content< T > &m)
manipulator_char_content<
std::string > 
content (std::string &t, bool=false)
manipulator_char_content<
const std::string > 
content (const std::string &t, bool=false)
manipulator_char_content<
std::wstring > 
content (std::wstring &t, bool=false)
manipulator_char_content<
const std::wstring > 
content (const std::wstring &t, bool=false)
manipulator_char_content<
char * > 
content (char *&t, bool=false)
manipulator_char_content<
const char * > 
content (const char *&t, bool=false)
manipulator_char_content<
wchar_t * > 
content (wchar_t *&t, bool=false)
manipulator_char_content<
const wchar_t * > 
content (const wchar_t *&t, bool=false)
template<typename T> manipulator_data_content< T > content (T &t)


Define Documentation

#define XIMOL_CONTENT_CHAR_SPECIALIZATION type   ) 
 

Value:

inline manipulator_char_content<type> content(type& t, bool = false) {  \
                return manipulator_char_content<type>(t);                                                       \
        }

Definition at line 245 of file content.hpp.

Referenced by content().


Function Documentation

XIMOL_EXPORT manipulator_char_data_content char_data_content xistream xis  ) 
 

Definition at line 132 of file content.cpp.

References _(), xistream::get(), xistream::putback(), read_cd_sect(), read_comment(), read_pi(), read_reference(), XCHAR_AMPERSAND, XCHAR_EXCLAMATION_MARK, XCHAR_HYPHEN_MINUS, XCHAR_LEFT_SQUARE_BRACKET, XCHAR_LESS_THAN_SIGN, XCHAR_QUESTION_MARK, xchar_t, XIMOL_AS_ERROR, XIMOL_PARSER_USING_NAMESPACE, XIMOL_THROW, and xstring.

Referenced by drop_content(), and operator>>().

template<typename T>
manipulator_data_content<T> content T &  t  ) 
 

Definition at line 263 of file content.hpp.

manipulator_char_content< const wchar_t * > content const wchar_t *&  t,
bool  = false
[inline]
 

Definition at line 257 of file content.hpp.

References XIMOL_CONTENT_CHAR_SPECIALIZATION.

manipulator_char_content< wchar_t * > content wchar_t *&  t,
bool  = false
[inline]
 

Definition at line 256 of file content.hpp.

manipulator_char_content< const char * > content const char *&  t,
bool  = false
[inline]
 

Definition at line 255 of file content.hpp.

manipulator_char_content< char * > content char *&  t,
bool  = false
[inline]
 

Definition at line 254 of file content.hpp.

manipulator_char_content< const std::wstring > content const std::wstring &  t,
bool  = false
[inline]
 

Definition at line 253 of file content.hpp.

manipulator_char_content< std::wstring > content std::wstring &  t,
bool  = false
[inline]
 

Definition at line 252 of file content.hpp.

manipulator_char_content< const std::string > content const std::string &  t,
bool  = false
[inline]
 

Definition at line 251 of file content.hpp.

manipulator_char_content< std::string > content std::string &  t,
bool  = false
[inline]
 

Examples:
quickstart_01.cpp, and tutorial_hello.cpp.

Definition at line 250 of file content.hpp.

template<typename T>
xostream& operator<< xostream xos,
const manipulator_data_content< T > &  m
 

Definition at line 223 of file content.hpp.

References XIMOL_PARSER_USING_NAMESPACE.

template<typename T>
xostream& operator<< xostream xos,
const manipulator_char_content< T > &  m
 

Definition at line 139 of file content.hpp.

References write_char_ref(), write_xchar(), XCHAR_AMPERSAND, XCHAR_LESS_THAN_SIGN, XCHAR_RIGHT_SQUARE_BRACKET, XIMOL_PARSER_USING_NAMESPACE, and xstring.

template<typename T>
xistream& operator>> xistream xis,
manipulator_data_content< T > &  m
 

Definition at line 234 of file content.hpp.

References manipulator_data_content< T >::set_string(), XIMOL_PARSER_USING_NAMESPACE, and xstring.

template<typename T>
xistream& operator>> xistream xis,
manipulator_char_content< T >  m
 

Definition at line 166 of file content.hpp.

References char_data_content(), manipulator_char_content< T >::set(), and XIMOL_PARSER_USING_NAMESPACE.



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