Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Data Structures | Public Member Functions | Static Public Member Functions
factory::XmlDataFactory Class Reference

#include <XmlDataFactory.hpp>

Data Structures

class  fromFile
 
class  fromStdin
 
class  fromStream
 
class  fromString
 
class  fromTokens
 

Public Member Functions

template<>
ext::deque< sax::TokentoTokens (const measurements::MeasurementResults &data)
 

Static Public Member Functions

template<class T >
static bool first (const ext::deque< sax::Token > &tokens)
 
template<class T >
static void toFile (const T &data, const std::string &filename)
 
template<class T >
static std::string toString (const T &data)
 
template<class T >
static void toStdout (const T &data)
 
template<class T >
static void toStream (const T &data, ext::ostream &out)
 
template<class T >
static ext::deque< sax::TokentoTokens (const T &data)
 

Detailed Description

Data builder.

Member Function Documentation

◆ first()

template<class T >
static bool factory::XmlDataFactory::first ( const ext::deque< sax::Token > &  tokens)
inlinestatic

Determines whether the input token stream contains given type

Parameters
tokens
Returns
bool
Here is the call graph for this function:

◆ toFile()

template<class T >
static void factory::XmlDataFactory::toFile ( const T &  data,
const std::string &  filename 
)
inlinestatic

Parses the XML in file and returns the String.

Parameters
filenamepath to the file
Returns
String
Here is the call graph for this function:

◆ toStdout()

template<class T >
static void factory::XmlDataFactory::toStdout ( const T &  data)
inlinestatic

Parses the XML from stdin and returns the String.

Returns
String
Here is the call graph for this function:

◆ toStream()

template<class T >
static void factory::XmlDataFactory::toStream ( const T &  data,
ext::ostream out 
)
inlinestatic

Parses the XML from stream and returns the String.

Returns
String
Here is the call graph for this function:

◆ toString()

template<class T >
static std::string factory::XmlDataFactory::toString ( const T &  data)
inlinestatic

Parses the XML and returns the String.

Parameters
strstring containing the XML
Returns
String
Here is the call graph for this function:

◆ toTokens() [1/2]

template<>
ext::deque< sax::Token > factory::XmlDataFactory::toTokens ( const measurements::MeasurementResults data)
inline

◆ toTokens() [2/2]

template<class T >
static ext::deque< sax::Token > factory::XmlDataFactory::toTokens ( const T &  data)
inlinestatic

Parses the String from list of tokens.

Parameters
tokensXML represented as list of tokens
Returns
parsed String
Here is the call graph for this function:
Here is the caller graph for this function:

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