|
PLaSK library
|
Allow to support reading some sections from other files. More...
#include <plask/manager.hpp>
Public Member Functions | |
| bool | hasCircularRef (boost::filesystem::path &fileName, const std::string §ion) |
| ExternalSourcesFromFile () | |
| Create ExternalSourcesFromFile which doesn't support relative file names (original file name is not known). | |
| ExternalSourcesFromFile (const boost::filesystem::path &originalFileName, const std::string ¤tSection=std::string(), ExternalSourcesFromFile *prev=nullptr) | |
| Create ExternalSourcesFromFile which support relative file names. | |
| void | operator() (Manager &manager, const std::string &url, const std::string §ion) |
Public Attributes | |
| boost::filesystem::path | originalFileName |
| Current file name. | |
| std::string | currentSection |
| Name of section which is just read. | |
| ExternalSourcesFromFile * | prev |
| Names of files from which current section is read (detect circular reference). | |
Allow to support reading some sections from other files.
Definition at line 73 of file manager.hpp.
|
inline |
Create ExternalSourcesFromFile which doesn't support relative file names (original file name is not known).
Definition at line 94 of file manager.hpp.
|
inline |
Create ExternalSourcesFromFile which support relative file names.
| originalFileName | name of file from which XML is read now |
| currentSection | name of current section |
| prev | previous source (needed to cycle detection) |
Definition at line 102 of file manager.hpp.
|
inline |
Definition at line 84 of file manager.hpp.
| void plask::Manager::ExternalSourcesFromFile::operator() | ( | Manager & | manager, |
| const std::string & | url, | ||
| const std::string & | section | ||
| ) |
Definition at line 31 of file manager.cpp.
| std::string plask::Manager::ExternalSourcesFromFile::currentSection |
Name of section which is just read.
Definition at line 79 of file manager.hpp.
| boost::filesystem::path plask::Manager::ExternalSourcesFromFile::originalFileName |
Current file name.
Definition at line 76 of file manager.hpp.
| ExternalSourcesFromFile* plask::Manager::ExternalSourcesFromFile::prev |
Names of files from which current section is read (detect circular reference).
Definition at line 82 of file manager.hpp.