casa
$Rev:20696$
|
#include <SDMDataObjectParser.h>
Public Member Functions | |
SDMDataObjectParser () | |
virtual | ~SDMDataObjectParser () |
void | parseFileHeader (const string &filename, SDMDataObject &sdmDataObject) |
void | parseMemoryHeader (const string &buffer, SDMDataObject &sdmDataObject) |
void | parseFileCorrSubsetHeader (const string &filename, SDMDataSubset &sdmCorrSubset) |
void | parseMemoryCorrSubsetHeader (const string &buffer, SDMDataSubset &sdmCorrSubset) |
void | parseFileTPSubsetHeader (const string &filename, SDMDataSubset &sdmCorrDataSubset) |
void | parseMemoryTPSubsetHeader (const string &filename, SDMDataSubset &sdmCorrDataSubset) |
SDMDataObjectParser () | |
virtual | ~SDMDataObjectParser () |
void | parseFileHeader (const string &filename, SDMDataObject &sdmDataObject) |
void | parseMemoryHeader (const string &buffer, SDMDataObject &sdmDataObject) |
void | parseFileCorrSubsetHeader (const string &filename, SDMDataSubset &sdmCorrSubset) |
void | parseMemoryCorrSubsetHeader (const string &buffer, SDMDataSubset &sdmCorrSubset) |
void | parseFileTPSubsetHeader (const string &filename, SDMDataSubset &sdmCorrDataSubset) |
void | parseMemoryTPSubsetHeader (const string &filename, SDMDataSubset &sdmCorrDataSubset) |
Static Public Member Functions | |
static void | isElement (xmlNode *a_node, const string &elementName) |
static bool | testElement (xmlNode *a_node, const string &elementName) |
static void | inElements (xmlNode *a_node, const vector< string > &elementNames) |
static xmlAttr * | hasAttr (xmlNode *a_node, const string &attrName) |
static void | tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ") |
static void | tokenize (const string &str, set< string > &tokens, const string &delimiters=" ") |
static string | substring (const string &s, int a, int b) |
static string | trim (const string &s) |
static 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 string &attrName) |
static bool | parseBoolAttr (xmlNode *a_node, const string &attrName) |
static float | parseFloatAttr (xmlNode *a_node, const string &attrName) |
static string | parseStringAttr (xmlNode *a_node, const string &attrName) |
static const ByteOrder * | parseByteOrderAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static Enum | parseStringAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static Enum | parseLiteral (xmlNode *a_node) |
static vector< string > | parseStringsAttr (xmlNode *a_node, const string &attrName) |
static set< string > | parseStringSetAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static vector< Enum > | parseStringsAttr (xmlNode *a_node, const string &attrName) |
static vector< unsigned int > | parseProjectPath (xmlNode *a_node, unsigned int len) |
static vector< unsigned int > | parseProjectPath (xmlNode *a_node) |
static void | isElement (xmlNode *a_node, const string &elementName) |
static bool | testElement (xmlNode *a_node, const string &elementName) |
static void | inElements (xmlNode *a_node, const vector< string > &elementNames) |
static xmlAttr * | hasAttr (xmlNode *a_node, const string &attrName) |
static void | tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ") |
static void | tokenize (const string &str, set< string > &tokens, const string &delimiters=" ") |
static string | substring (const string &s, int a, int b) |
static string | trim (const string &s) |
static 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 string &attrName) |
static bool | parseBoolAttr (xmlNode *a_node, const string &attrName) |
static float | parseFloatAttr (xmlNode *a_node, const string &attrName) |
static string | parseStringAttr (xmlNode *a_node, const string &attrName) |
static const ByteOrder * | parseByteOrderAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static Enum | parseStringAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static Enum | parseLiteral (xmlNode *a_node) |
static vector< string > | parseStringsAttr (xmlNode *a_node, const string &attrName) |
static set< string > | parseStringSetAttr (xmlNode *a_node, const string &attrName) |
template<class Enum , class EnumHelper > | |
static vector< Enum > | parseStringsAttr (xmlNode *a_node, const string &attrName) |
static vector< unsigned int > | parseProjectPath (xmlNode *a_node, unsigned int len) |
static vector< unsigned int > | parseProjectPath (xmlNode *a_node) |
Private Attributes | |
HeaderParser | headerParser |
CorrSubsetHeaderParser | corrSubsetHeaderParser |
TPSubsetHeaderParser | tpSubsetHeaderParser |
Static Private Attributes | |
static const regex | PROJECTPATH3 |
static const regex | PROJECTPATH4 |
static const regex | PROJECTPATH5 |
static const regex | PROJECTPATH4OR5 |
Friends | |
class | SDMDataObject |
class | SDMDataSubset |
class | HeaderParser |
Definition at line 299 of file SDMDataObjectParser.h.
virtual asdmbinaries::SDMDataObjectParser::~SDMDataObjectParser | ( | ) | [virtual] |
virtual asdmbinaries::SDMDataObjectParser::~SDMDataObjectParser | ( | ) | [virtual] |
static xmlAttr* asdmbinaries::SDMDataObjectParser::hasAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
Referenced by parseStringAttr(), and parseStringsAttr().
static xmlAttr* asdmbinaries::SDMDataObjectParser::hasAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::inElements | ( | xmlNode * | a_node, |
const vector< string > & | elementNames | ||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::inElements | ( | xmlNode * | a_node, |
const vector< string > & | elementNames | ||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::isElement | ( | xmlNode * | a_node, |
const string & | elementName | ||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::isElement | ( | xmlNode * | a_node, |
const string & | elementName | ||
) | [static] |
static bool asdmbinaries::SDMDataObjectParser::parseBool | ( | xmlNode * | a_node | ) | [static] |
static bool asdmbinaries::SDMDataObjectParser::parseBool | ( | xmlNode * | a_node | ) | [static] |
static bool asdmbinaries::SDMDataObjectParser::parseBoolAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static bool asdmbinaries::SDMDataObjectParser::parseBoolAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static const ByteOrder* asdmbinaries::SDMDataObjectParser::parseByteOrderAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static const ByteOrder* asdmbinaries::SDMDataObjectParser::parseByteOrderAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
void asdmbinaries::SDMDataObjectParser::parseFileCorrSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseFileCorrSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseFileHeader | ( | const string & | filename, |
SDMDataObject & | sdmDataObject | ||
) |
void asdmbinaries::SDMDataObjectParser::parseFileHeader | ( | const string & | filename, |
SDMDataObject & | sdmDataObject | ||
) |
void asdmbinaries::SDMDataObjectParser::parseFileTPSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrDataSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseFileTPSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrDataSubset | ||
) |
static float asdmbinaries::SDMDataObjectParser::parseFloat | ( | xmlNode * | a_node | ) | [static] |
static float asdmbinaries::SDMDataObjectParser::parseFloat | ( | xmlNode * | a_node | ) | [static] |
static float asdmbinaries::SDMDataObjectParser::parseFloatAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static float asdmbinaries::SDMDataObjectParser::parseFloatAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static int asdmbinaries::SDMDataObjectParser::parseInt | ( | xmlNode * | a_node | ) | [static] |
static int asdmbinaries::SDMDataObjectParser::parseInt | ( | xmlNode * | a_node | ) | [static] |
static int asdmbinaries::SDMDataObjectParser::parseIntAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static int asdmbinaries::SDMDataObjectParser::parseIntAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static Enum asdmbinaries::SDMDataObjectParser::parseLiteral | ( | xmlNode * | a_node | ) | [inline, static] |
Definition at line 360 of file SDMDataObjectParser.h.
References trim().
static Enum asdmbinaries::SDMDataObjectParser::parseLiteral | ( | xmlNode * | a_node | ) | [inline, static] |
Definition at line 360 of file SDMDataObjectParser.h.
References trim().
static long long asdmbinaries::SDMDataObjectParser::parseLongLong | ( | xmlNode * | a_node | ) | [static] |
static long long asdmbinaries::SDMDataObjectParser::parseLongLong | ( | xmlNode * | a_node | ) | [static] |
void asdmbinaries::SDMDataObjectParser::parseMemoryCorrSubsetHeader | ( | const string & | buffer, |
SDMDataSubset & | sdmCorrSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseMemoryCorrSubsetHeader | ( | const string & | buffer, |
SDMDataSubset & | sdmCorrSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseMemoryHeader | ( | const string & | buffer, |
SDMDataObject & | sdmDataObject | ||
) |
void asdmbinaries::SDMDataObjectParser::parseMemoryHeader | ( | const string & | buffer, |
SDMDataObject & | sdmDataObject | ||
) |
void asdmbinaries::SDMDataObjectParser::parseMemoryTPSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrDataSubset | ||
) |
void asdmbinaries::SDMDataObjectParser::parseMemoryTPSubsetHeader | ( | const string & | filename, |
SDMDataSubset & | sdmCorrDataSubset | ||
) |
static vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath | ( | xmlNode * | a_node, |
unsigned int | len | ||
) | [static] |
static vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath | ( | xmlNode * | a_node, |
unsigned int | len | ||
) | [static] |
static vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath | ( | xmlNode * | a_node | ) | [static] |
static vector<unsigned int> asdmbinaries::SDMDataObjectParser::parseProjectPath | ( | xmlNode * | a_node | ) | [static] |
static string asdmbinaries::SDMDataObjectParser::parseString | ( | xmlNode * | a_node | ) | [static] |
static string asdmbinaries::SDMDataObjectParser::parseString | ( | xmlNode * | a_node | ) | [static] |
static string asdmbinaries::SDMDataObjectParser::parseStringAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static string asdmbinaries::SDMDataObjectParser::parseStringAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static Enum asdmbinaries::SDMDataObjectParser::parseStringAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [inline, static] |
Definition at line 343 of file SDMDataObjectParser.h.
static Enum asdmbinaries::SDMDataObjectParser::parseStringAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [inline, static] |
Definition at line 343 of file SDMDataObjectParser.h.
static vector<string> asdmbinaries::SDMDataObjectParser::parseStringsAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static vector<string> asdmbinaries::SDMDataObjectParser::parseStringsAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static vector<Enum> asdmbinaries::SDMDataObjectParser::parseStringsAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [inline, static] |
Definition at line 378 of file SDMDataObjectParser.h.
References hasAttr(), and tokenize().
static vector<Enum> asdmbinaries::SDMDataObjectParser::parseStringsAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [inline, static] |
Definition at line 378 of file SDMDataObjectParser.h.
References hasAttr(), and tokenize().
static set<string> asdmbinaries::SDMDataObjectParser::parseStringSetAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static set<string> asdmbinaries::SDMDataObjectParser::parseStringSetAttr | ( | xmlNode * | a_node, |
const string & | attrName | ||
) | [static] |
static string asdmbinaries::SDMDataObjectParser::substring | ( | const string & | s, |
int | a, | ||
int | b | ||
) | [static] |
static string asdmbinaries::SDMDataObjectParser::substring | ( | const string & | s, |
int | a, | ||
int | b | ||
) | [static] |
static bool asdmbinaries::SDMDataObjectParser::testElement | ( | xmlNode * | a_node, |
const string & | elementName | ||
) | [static] |
static bool asdmbinaries::SDMDataObjectParser::testElement | ( | xmlNode * | a_node, |
const string & | elementName | ||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::tokenize | ( | const string & | str, |
vector< string > & | tokens, | ||
const string & | delimiters = " " |
||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::tokenize | ( | const string & | str, |
vector< string > & | tokens, | ||
const string & | delimiters = " " |
||
) | [static] |
Referenced by parseStringsAttr().
static void asdmbinaries::SDMDataObjectParser::tokenize | ( | const string & | str, |
set< string > & | tokens, | ||
const string & | delimiters = " " |
||
) | [static] |
static void asdmbinaries::SDMDataObjectParser::tokenize | ( | const string & | str, |
set< string > & | tokens, | ||
const string & | delimiters = " " |
||
) | [static] |
static string asdmbinaries::SDMDataObjectParser::trim | ( | const string & | s | ) | [static] |
Referenced by parseLiteral(), and parseStringAttr().
static string asdmbinaries::SDMDataObjectParser::trim | ( | const string & | s | ) | [static] |
HeaderParser [friend] |
Definition at line 302 of file SDMDataObjectParser.h.
SDMDataObject [friend] |
Definition at line 300 of file SDMDataObjectParser.h.
SDMDataSubset [friend] |
Definition at line 301 of file SDMDataObjectParser.h.
Definition at line 412 of file SDMDataObjectParser.h.
Definition at line 411 of file SDMDataObjectParser.h.
static const regex asdmbinaries::SDMDataObjectParser::PROJECTPATH3 [static, private] |
Definition at line 406 of file SDMDataObjectParser.h.
static const regex asdmbinaries::SDMDataObjectParser::PROJECTPATH4 [static, private] |
Definition at line 407 of file SDMDataObjectParser.h.
static const regex asdmbinaries::SDMDataObjectParser::PROJECTPATH4OR5 [static, private] |
Definition at line 409 of file SDMDataObjectParser.h.
static const regex asdmbinaries::SDMDataObjectParser::PROJECTPATH5 [static, private] |
Definition at line 408 of file SDMDataObjectParser.h.
Definition at line 413 of file SDMDataObjectParser.h.