|
context Class Reference
[Parser]
#include <context.hpp>
Collaboration diagram for context:
[legend]List of all members.
Detailed Description
This class contain all information about reding and write XML. Entity and parameter entity are saved in this class.
- Author:
- Tournois Florent.
- Todo:
- this class must be commented.
Definition at line 78 of file context.hpp.
|
Public Types |
typedef XIMOL_EXPORT::std::map<
xstring, xstring > | map_type |
typedef XIMOL_EXPORT::std::map<
xstring, entity_def_type > | entity_def_map_type |
typedef XIMOL_EXPORT::std::map<
xstring, pe_def_type > | pe_def_map_type |
typedef XIMOL_EXPORT::std::map<
xstring, notation_decl_type > | notation_decl_map_type |
typedef XIMOL_EXPORT::std::list<
level > | levels_type |
typedef XIMOL_EXPORT::std::map<
xstring, void * > | key_map_type |
Public Member Functions |
| context () |
|
bool | add_entity (const xstring &entity_name, const xstring &entity_value, const xstring &system_literal=L"", const xstring &pubid_literal=L"", const xstring &ndata_name=L"") |
bool | add_paramter_entity (const xstring &entity_name, const xstring &entity_value, const xstring &system_literal=L"", const xstring &pubid_literal=L"") |
bool | add_notation_decl (const xstring &name, const xstring &system_literal, const xstring &pubid_literal) |
bool | add_processing_instruction (const xstring &pi_target, const xstring &value) |
|
const xstring & | get_entity (const xstring &entity_name) const |
const xstring & | get_parameter_entity (const xstring &entity_name) const |
const notation_decl_type & | get_notation_decl (const xstring &name) const |
const xstring & | get_processing_instruction (const xstring &pi_target) const |
const xstring & | get_version_num () const |
bool | get_sd_decl () const |
const xstring & | get_encoding_decl () const |
|
void | set_version_num (const xstring &ver) |
void | set_sd_decl (bool sddecl) |
void | set_encoding_decl (const xstring &encoding_name) |
|
context & | add_new_level (const xstring &uri, const xstring &tag, const XIMOL_XML_NAMESPACE_PATH::attributes &att, bool open_start=false, bool open_end=false) |
context & | destroy_level () |
bool | is_open_stag () const |
bool | is_open_etag () const |
context & | close_open_stag () |
context & | close_open_etag () |
context & | set_open_stag () |
context & | set_open_etag () |
const xstring & | get_level_tag () const |
const xstring & | get_level_ns_tag () const |
const xstring & | get_level_short_ns_tag () const |
const XIMOL_XML_NAMESPACE_PATH::attributes & | get_level_attributes () const |
XIMOL_XML_NAMESPACE_PATH::attributes | get_attributes () const |
int | get_depth () const |
context & | add_level_attributes (const XIMOL_XML_NAMESPACE_PATH::attributes &att) |
const xstring & | get_namespace (const xstring &short_ns) const |
const xstring & | get_short_namespace (const xstring &uri) const |
const xstring & | get_default_namespace () const |
|
const xstring & | get_doc_type_name () const |
void | set_doc_type_name (const xstring &name) |
const notation_decl_type & | get_doctype_external_id () const |
void | set_doctype_external_id (const xstring &system_literal, const xstring &pubid_literal) |
|
template<class T> bool | set_id (const xstring &key, T *t) |
template<class T> bool | get_id (const xstring &key, T *t) |
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
bool context::add_entity |
( |
const xstring & |
entity_name, |
|
|
const xstring & |
entity_value, |
|
|
const xstring & |
system_literal = L"", |
|
|
const xstring & |
pubid_literal = L"", |
|
|
const xstring & |
ndata_name = L"" |
|
) |
|
|
bool context::add_notation_decl |
( |
const xstring & |
name, |
|
|
const xstring & |
system_literal, |
|
|
const xstring & |
pubid_literal |
|
) |
|
|
bool context::add_paramter_entity |
( |
const xstring & |
entity_name, |
|
|
const xstring & |
entity_value, |
|
|
const xstring & |
system_literal = L"", |
|
|
const xstring & |
pubid_literal = L"" |
|
) |
|
|
bool context::add_processing_instruction |
( |
const xstring & |
pi_target, |
|
|
const xstring & |
value |
|
) |
|
|
context & context::close_open_etag |
( |
|
) |
|
|
context & context::close_open_stag |
( |
|
) |
|
|
context & context::destroy_level |
( |
|
) |
|
|
const xstring & context::get_default_namespace |
( |
|
) |
const |
|
int context::get_depth |
( |
|
) |
const |
|
|
Definition at line 429 of file context.cpp.
Referenced by add_level_attributes(), close_open_etag(), close_open_stag(), destroy_level(), get_level_attributes(), get_level_ns_tag(), get_level_short_ns_tag(), get_level_tag(), is_open_etag(), is_open_stag(), set_open_etag(), and set_open_stag(). |
const xstring & context::get_doc_type_name |
( |
|
) |
const |
|
const xstring & context::get_encoding_decl |
( |
|
) |
const |
|
const xstring & context::get_entity |
( |
const xstring & |
entity_name |
) |
const |
|
template<class T> |
bool context::get_id |
( |
const xstring & |
key, |
|
|
T * |
t |
|
) |
[inline] |
|
const xstring & context::get_level_ns_tag |
( |
|
) |
const |
|
const xstring & context::get_level_short_ns_tag |
( |
|
) |
const |
|
const xstring & context::get_level_tag |
( |
|
) |
const |
|
const xstring & context::get_namespace |
( |
const xstring & |
short_ns |
) |
const |
|
const xstring & context::get_parameter_entity |
( |
const xstring & |
entity_name |
) |
const |
|
const xstring & context::get_processing_instruction |
( |
const xstring & |
pi_target |
) |
const |
|
bool context::get_sd_decl |
( |
|
) |
const |
|
const xstring & context::get_short_namespace |
( |
const xstring & |
uri |
) |
const |
|
const xstring & context::get_version_num |
( |
|
) |
const |
|
bool context::is_open_etag |
( |
|
) |
const |
|
bool context::is_open_stag |
( |
|
) |
const |
|
void context::set_doc_type_name |
( |
const xstring & |
name |
) |
|
|
void context::set_doctype_external_id |
( |
const xstring & |
system_literal, |
|
|
const xstring & |
pubid_literal |
|
) |
|
|
void context::set_encoding_decl |
( |
const xstring & |
encoding_name |
) |
|
|
template<class T> |
bool context::set_id |
( |
const xstring & |
key, |
|
|
T * |
t |
|
) |
[inline] |
|
context & context::set_open_etag |
( |
|
) |
|
|
context & context::set_open_stag |
( |
|
) |
|
|
void context::set_sd_decl |
( |
bool |
sddecl |
) |
|
|
void context::set_version_num |
( |
const xstring & |
ver |
) |
|
|
The documentation for this class was generated from the following files:
|
|