NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class represents a whole documentation file with its contained documentation articles. More...
#include <docfile.hpp>
Public Member Functions | |
DocumentationFile (const std::string &sFileName) | |
Create a DocumentationFile from the an actual file. More... | |
DocumentationFile (const std::vector< std::string > &vFileContents) | |
Create a DocumentationFile from the passed file contents. More... | |
void | print (const std::string &sFileName) |
Print the documentation file to the specified file. More... | |
std::vector< DocumentationArticle > & | getArticles () |
Get all articles present in the current documentation file. More... | |
Private Member Functions | |
std::vector< std::string > | loadFromFile (const std::string &sFileName) |
Load the documentation file contents from the specified file. More... | |
void | parse (const std::vector< std::string > &vFileContents, const std::string &sFileName) |
Parse the documentation file into single articles. Only complete <article>..</article> sections are parsed. More... | |
Private Attributes | |
std::vector< DocumentationArticle > | m_articles |
This class represents a whole documentation file with its contained documentation articles.
Definition at line 60 of file docfile.hpp.
DocumentationFile::DocumentationFile | ( | const std::string & | sFileName | ) |
Create a DocumentationFile from the an actual file.
sFileName | const std::string& |
Definition at line 248 of file docfile.cpp.
References loadFromFile(), and parse().
DocumentationFile::DocumentationFile | ( | const std::vector< std::string > & | vFileContents | ) |
Create a DocumentationFile from the passed file contents.
vFileContents | const std::vector<std::string>& |
Definition at line 261 of file docfile.cpp.
References parse().
|
inline |
Get all articles present in the current documentation file.
Definition at line 81 of file docfile.hpp.
References m_articles.
Referenced by Documentation::addFileToDocumentationIndex(), and Script::writeDocumentationArticle().
|
private |
Load the documentation file contents from the specified file.
sFileName | const std::string& |
Definition at line 275 of file docfile.cpp.
References SyntaxError::HLP_FILE_MISSING, SyntaxError::invalid_position, and StripSpaces().
Referenced by DocumentationFile().
|
private |
Parse the documentation file into single articles. Only complete <article>..</article> sections are parsed.
vFileContents | const std::vector<std::string>& |
sFileName | const std::string& |
Definition at line 304 of file docfile.cpp.
References m_articles.
Referenced by DocumentationFile().
void DocumentationFile::print | ( | const std::string & | sFileName | ) |
Print the documentation file to the specified file.
sFileName | const std::string& |
Definition at line 336 of file docfile.cpp.
References SyntaxError::CANNOT_READ_FILE, SyntaxError::invalid_position, m_articles, and date::detail::trunc().
Referenced by Script::writeDocumentationArticle().
|
private |
Definition at line 63 of file docfile.hpp.
Referenced by getArticles(), parse(), and print().