#include <XMLCoreParser.h>
Definition at line 97 of file XMLCoreParser.h.
◆ FactoryMap
◆ down()
void XMLCoreParser::down |
( |
| ) |
|
◆ find_factory()
◆ level()
int XMLCoreParser::level |
( |
| ) |
const |
◆ parse()
Definition at line 276 of file XMLCoreParser.cxx.
280 if (
doc !=
nullptr)
doc->print (
"============ ALL =============");
283 throw std::runtime_error(
"XMLCoreParser: no such file ["+
file_name+
"]");
◆ register_default_factory()
void XMLCoreParser::register_default_factory |
( |
std::unique_ptr< XMLCoreFactory > |
factory | ) |
|
◆ register_external_entity()
void XMLCoreParser::register_external_entity |
( |
const std::string & |
name, |
|
|
const std::string & |
file_name |
|
) |
| |
Definition at line 386 of file XMLCoreParser.cxx.
388 std::cout <<
"XMLCoreParser::register_external_entity> name=" <<
name
389 <<
" file_name=" <<
file_name << std::endl;
◆ register_factory()
void XMLCoreParser::register_factory |
( |
const std::string & |
name, |
|
|
std::unique_ptr< XMLCoreFactory > |
factory |
|
) |
| |
Definition at line 376 of file XMLCoreParser.cxx.
379 std::cout <<
"XMLCoreFactory::register_factory> name=" <<
name
380 <<
" factory=" << factory.get() << std::endl;
◆ register_text_entity()
void XMLCoreParser::register_text_entity |
( |
const std::string & |
name, |
|
|
const std::string & |
text |
|
) |
| |
◆ terminate()
void XMLCoreParser::terminate |
( |
| ) |
|
|
private |
◆ up()
void XMLCoreParser::up |
( |
| ) |
|
◆ visit() [1/2]
void XMLCoreParser::visit |
( |
const std::string & |
file_name | ) |
|
Definition at line 289 of file XMLCoreParser.cxx.
291 std::cout <<
"XMLCoreParser::visit file_name "
298 std::cout <<
"XMLCoreParser::visit node=" << nptr << std::endl;
◆ visit() [2/2]
Definition at line 304 of file XMLCoreParser.cxx.
308 const std::string& nodeName =
node.get_name();
309 const std::string& nodeValue =
node.get_value();
311 std::cout <<
"XMLCoreParser::visit node(" << nptr <<
") " << nodeName << std::endl;
315 std::cout <<
"XMLCoreParser::visit factory " << factory << std::endl;
318 switch (
node.get_type()) {
329 std::cout <<
"XMLCoreParser::visit ELEMENT_NODE "
330 <<
" factory=" << factory
334 factory->
start (*
this, core_node);
336 std::cerr <<
"XMLCoreParser> Cannot find factory for element "
337 << nodeName << std::endl;
345 if (factory != 0) factory->
end (*
this, core_node);
349 if (factory != 0) factory->
comment (*
this, nodeValue);
353 std::cout <<
"ENTITY_NODE " << nodeValue << std::endl;
357 std::cout <<
"ENTITY_REFERENCE_NODE " << nodeValue << std::endl;
361 std::cerr <<
"Unrecognized node type = " << (long)
node.get_type() << std::endl;
366 std::cout <<
"XMLCoreParser::visit-2" << std::endl;
◆ m_default_factory
◆ m_factories
◆ m_level
int XMLCoreParser::m_level = 0 |
|
private |
The documentation for this class was generated from the following files: