casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
asdmbinaries::SDMDataObjectParser Class Reference

#include <SDMDataObjectParser.h>

Public Member Functions

 SDMDataObjectParser ()
 
virtual ~SDMDataObjectParser ()
 
void parseFileHeader (const std::string &filename, SDMDataObject &sdmDataObject)
 
void parseMemoryHeader (const std::string &buffer, SDMDataObject &sdmDataObject)
 
void parseFileCorrSubsetHeader (const std::string &filename, SDMDataSubset &sdmCorrSubset)
 
void parseMemoryCorrSubsetHeader (const std::string &buffer, SDMDataSubset &sdmCorrSubset)
 
void parseFileTPSubsetHeader (const std::string &filename, SDMDataSubset &sdmCorrDataSubset)
 
void parseMemoryTPSubsetHeader (const std::string &filename, SDMDataSubset &sdmCorrDataSubset)
 

Static Public Member Functions

static void isElement (xmlNode *a_node, const std::string &elementName)
 
static bool testElement (xmlNode *a_node, const std::string &elementName)
 
static void inElements (xmlNode *a_node, const std::vector< std::string > &elementNames)
 
static xmlAttr * hasAttr (xmlNode *a_node, const std::string &attrName)
 
static void tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
 
static void tokenize (const std::string &str, std::set< std::string > &tokens, const std::string &delimiters=" ")
 
static std::string substring (const std::string &s, int a, int b)
 
static std::string trim (const std::string &s)
 
static std::string parseString (xmlNode *a_node)
 
static long long parseLongLong (xmlNode *a_node)
 
static int parseInt (xmlNode *a_node)
 
static bool parseBool (xmlNode *a_node)
 
static float parseFloat (xmlNode *a_node)
 
static int parseIntAttr (xmlNode *a_node, const std::string &attrName)
 
static bool parseBoolAttr (xmlNode *a_node, const std::string &attrName)
 
static float parseFloatAttr (xmlNode *a_node, const std::string &attrName)
 
static std::string parseStringAttr (xmlNode *a_node, const std::string &attrName)
 
static const ByteOrderparseByteOrderAttr (xmlNode *a_node, const std::string &attrName)
 
template<class Enum , class EnumHelper >
static Enum parseStringAttr (xmlNode *a_node, const std::string &attrName)
 
template<class Enum , class EnumHelper >
static Enum parseLiteral (xmlNode *a_node)
 
static std::vector< std::string > parseStringsAttr (xmlNode *a_node, const std::string &attrName)
 
static std::set< std::string > parseStringSetAttr (xmlNode *a_node, const std::string &attrName)
 
template<class Enum , class EnumHelper >
static std::vector< Enum > parseStringsAttr (xmlNode *a_node, const std::string &attrName)
 
static std::vector< unsigned int > parseProjectPath (xmlNode *a_node, unsigned int len)
 
static std::vector< unsigned int > parseProjectPath (xmlNode *a_node)
 

Private Attributes

HeaderParser headerParser
 
CorrSubsetHeaderParser corrSubsetHeaderParser
 
TPSubsetHeaderParser tpSubsetHeaderParser
 

Static Private Attributes

static const boost::regex PROJECTPATH3
 
static const boost::regex PROJECTPATH4
 
static const boost::regex PROJECTPATH5
 
static const boost::regex PROJECTPATH4OR5
 

Friends

class SDMDataObject
 
class SDMDataSubset
 
class HeaderParser
 

Detailed Description

Definition at line 310 of file SDMDataObjectParser.h.

Constructor & Destructor Documentation

asdmbinaries::SDMDataObjectParser::SDMDataObjectParser ( )
virtual asdmbinaries::SDMDataObjectParser::~SDMDataObjectParser ( )
virtual

Member Function Documentation

static xmlAttr* asdmbinaries::SDMDataObjectParser::hasAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
static void asdmbinaries::SDMDataObjectParser::inElements ( xmlNode a_node,
const std::vector< std::string > &  elementNames 
)
static
static void asdmbinaries::SDMDataObjectParser::isElement ( xmlNode a_node,
const std::string &  elementName 
)
static
static bool asdmbinaries::SDMDataObjectParser::parseBool ( xmlNode a_node)
static
static bool asdmbinaries::SDMDataObjectParser::parseBoolAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
static const ByteOrder* asdmbinaries::SDMDataObjectParser::parseByteOrderAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
void asdmbinaries::SDMDataObjectParser::parseFileCorrSubsetHeader ( const std::string &  filename,
SDMDataSubset sdmCorrSubset 
)
void asdmbinaries::SDMDataObjectParser::parseFileHeader ( const std::string &  filename,
SDMDataObject sdmDataObject 
)
void asdmbinaries::SDMDataObjectParser::parseFileTPSubsetHeader ( const std::string &  filename,
SDMDataSubset sdmCorrDataSubset 
)
static float asdmbinaries::SDMDataObjectParser::parseFloat ( xmlNode a_node)
static
static float asdmbinaries::SDMDataObjectParser::parseFloatAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
static int asdmbinaries::SDMDataObjectParser::parseInt ( xmlNode a_node)
static
static int asdmbinaries::SDMDataObjectParser::parseIntAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
template<class Enum , class EnumHelper >
static Enum asdmbinaries::SDMDataObjectParser::parseLiteral ( xmlNode a_node)
inlinestatic

Definition at line 371 of file SDMDataObjectParser.h.

References trim().

static long long asdmbinaries::SDMDataObjectParser::parseLongLong ( xmlNode a_node)
static
void asdmbinaries::SDMDataObjectParser::parseMemoryCorrSubsetHeader ( const std::string &  buffer,
SDMDataSubset sdmCorrSubset 
)
void asdmbinaries::SDMDataObjectParser::parseMemoryHeader ( const std::string &  buffer,
SDMDataObject sdmDataObject 
)
void asdmbinaries::SDMDataObjectParser::parseMemoryTPSubsetHeader ( const std::string &  filename,
SDMDataSubset sdmCorrDataSubset 
)
static std::vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath ( xmlNode a_node,
unsigned int  len 
)
static
static std::vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath ( xmlNode a_node)
static
static std::string asdmbinaries::SDMDataObjectParser::parseString ( xmlNode a_node)
static
static std::string asdmbinaries::SDMDataObjectParser::parseStringAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
template<class Enum , class EnumHelper >
static Enum asdmbinaries::SDMDataObjectParser::parseStringAttr ( xmlNode a_node,
const std::string &  attrName 
)
inlinestatic

Definition at line 354 of file SDMDataObjectParser.h.

References hasAttr(), and trim().

static std::vector<std::string> asdmbinaries::SDMDataObjectParser::parseStringsAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
template<class Enum , class EnumHelper >
static std::vector<Enum> asdmbinaries::SDMDataObjectParser::parseStringsAttr ( xmlNode a_node,
const std::string &  attrName 
)
inlinestatic

Definition at line 389 of file SDMDataObjectParser.h.

References hasAttr(), and tokenize().

static std::set<std::string> asdmbinaries::SDMDataObjectParser::parseStringSetAttr ( xmlNode a_node,
const std::string &  attrName 
)
static
static std::string asdmbinaries::SDMDataObjectParser::substring ( const std::string &  s,
int  a,
int  b 
)
static
static bool asdmbinaries::SDMDataObjectParser::testElement ( xmlNode a_node,
const std::string &  elementName 
)
static
static void asdmbinaries::SDMDataObjectParser::tokenize ( const std::string &  str,
std::vector< std::string > &  tokens,
const std::string &  delimiters = " " 
)
static

Referenced by parseStringsAttr().

static void asdmbinaries::SDMDataObjectParser::tokenize ( const std::string &  str,
std::set< std::string > &  tokens,
const std::string &  delimiters = " " 
)
static
static std::string asdmbinaries::SDMDataObjectParser::trim ( const std::string &  s)
static

Referenced by parseLiteral(), and parseStringAttr().

Friends And Related Function Documentation

friend class HeaderParser
friend

Definition at line 313 of file SDMDataObjectParser.h.

friend class SDMDataObject
friend

Definition at line 311 of file SDMDataObjectParser.h.

friend class SDMDataSubset
friend

Definition at line 312 of file SDMDataObjectParser.h.

Member Data Documentation

CorrSubsetHeaderParser asdmbinaries::SDMDataObjectParser::corrSubsetHeaderParser
private

Definition at line 430 of file SDMDataObjectParser.h.

HeaderParser asdmbinaries::SDMDataObjectParser::headerParser
private

Definition at line 429 of file SDMDataObjectParser.h.

const boost::regex asdmbinaries::SDMDataObjectParser::PROJECTPATH3
staticprivate

Definition at line 418 of file SDMDataObjectParser.h.

const boost::regex asdmbinaries::SDMDataObjectParser::PROJECTPATH4
staticprivate

Definition at line 419 of file SDMDataObjectParser.h.

const boost::regex asdmbinaries::SDMDataObjectParser::PROJECTPATH4OR5
staticprivate

Definition at line 421 of file SDMDataObjectParser.h.

const boost::regex asdmbinaries::SDMDataObjectParser::PROJECTPATH5
staticprivate

Definition at line 420 of file SDMDataObjectParser.h.

TPSubsetHeaderParser asdmbinaries::SDMDataObjectParser::tpSubsetHeaderParser
private

Definition at line 431 of file SDMDataObjectParser.h.


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