INMOST
A toolkit for distributed mathematical modeling
INMOST::XMLReader Class Reference

Classes

struct  XMLAttrib
 Structure for xml attribute. More...
 
struct  XMLTag
 Structure for xml tag with attributes. More...
 
struct  XMLTree
 Structure defining entire XML file. More...
 

Public Member Functions

void SetVerbosity (int verbosity)
 2 - lot's of output 1 - output key steps, currently in ReadXML
 
void Report (const char *fmt,...) const
 
 XMLReader (std::string sourcename, std::istream &input)
 
void PushStream (std::string file)
 
void PopStream ()
 
bool ExpectOpenTag ()
 
std::string ReadOpenTag ()
 
int ReadCloseTag ()
 
bool isTagFinish () const
 
bool ReadFinishTag (std::string TagName)
 
std::string AttributeName ()
 
std::string AttributeValue ()
 
bool isTagEnded () const
 
bool ReadOpenContents ()
 
std::string GetContentsWord ()
 
bool ReadCloseContents ()
 
bool isContentsEnded () const
 
bool isFailure () const
 
bool isEof () const
 
INMOST::ElementType atoes (const char *_str)
 
INMOST::ElementType atoe (const char *_str)
 
std::pair< INMOST::ElementType, int > atoh (const char *_str)
 
std::pair< std::string, std::pair< INMOST::ElementType, int > > atorh (const char *_str)
 
INMOST::variable atov (const char *_str)
 
int EvaluateExpression (std::string expression)
 
int ConvertMultiplier (std::string expression, int SetSize)
 
void SplitValueMultiplier (std::string expression, std::string &value, std::string &multiplier)
 
bool ParseBool (std::string word)
 
void ParseCommaSeparated (std::string word, std::vector< std::string > &parsed, char symbol=',')
 
void ParseReal (std::string word, std::vector< INMOST::Storage::real > &Vector, int &Repeat, int SetSize)
 
void ParseVariable (std::string word, std::vector< INMOST::Storage::var > &Vector, int &Repeat, int SetSize)
 
void ParseInteger (std::string word, std::vector< INMOST::Storage::integer > &Vector, int &Repeat, int SetSize)
 
void ParseBulk (std::string word, std::string &Vector, int &Repeat, int SetSize)
 
void ParseReference (std::string word, std::vector< std::pair< INMOST::ElementType, int > > &Vector, int &Repeat, int SetSize)
 
void ParseRemoteReference (std::string word, std::vector< std::pair< std::string, std::pair< INMOST::ElementType, int > > > &Vector, int &Repeat, int SetSize)
 
XMLTag OpenTag ()
 
bool CloseTag (XMLTag &tag)
 
XMLTree ReadXML ()
 Read entire XML file into structure, it may be more efficient to read the file incrementally, depending on the size. More...
 

Detailed Description

Definition at line 18 of file inmost_xml.h.

Member Function Documentation

◆ ReadXML()

XMLTree INMOST::XMLReader::ReadXML ( )

Read entire XML file into structure, it may be more efficient to read the file incrementally, depending on the size.

See mesh_xml_file.cpp for incremential read.


The documentation for this class was generated from the following file: