#include <Serialization.h>
Public Member Functions | |
void | loadHypotheses (const string ­pFileName, vector< BaseLearner * > &weakHypotheses) |
Load the strong hypothesis file. | |
Static Public Member Functions | |
static bool | seekSimpleTag (nor_utils::StreamTokenizer &st, const string &tag) |
Move in the stream until it finds the given tag. | |
static bool | seekParamTag (nor_utils::StreamTokenizer &st, const string &tag) |
Move in the stream until it finds the given parameter tag. | |
static bool | seekAndParseParamTag (nor_utils::StreamTokenizer &st, const string &tag, string &tagParam, string ¶mValue) |
Move in the stream until it finds the given parameter tag, then it returns its components. | |
static void | parseParamTag (const string &str, string &tag, string &tagParam, string ¶mValue) |
Parse the given token that contains a parameter tag. | |
template<typename T> | |
static T | seekAndParseEnclosedValue (nor_utils::StreamTokenizer &st, const string &tag) |
Move in the stream until it finds the given tag, then it returns the value following the tag. | |
template<typename T> | |
static void | seekAndParseVectorTag (nor_utils::StreamTokenizer &st, const string &arrayName, vector< T > &vecToFill) |
Move in the stream until it finds the given tag, then parse the vector which follows the tag. |
Definition at line 178 of file Serialization.h.
|
Load the strong hypothesis file.
Definition at line 87 of file Serialization.cpp. Referenced by Classifier::run(). |
|
Parse the given token that contains a parameter tag. This kind of tag, differs from the simple one because it is formatted this way: <tag param="val">. This method returns the tag, the parameter and the value.
Definition at line 186 of file Serialization.cpp. |
|
Move in the stream until it finds the given tag, then it returns the value following the tag.
Definition at line 254 of file Serialization.h. References nor_utils::cmp_nocase(), StreamTokenizer::has_token(), and StreamTokenizer::next_token(). |
|
Move in the stream until it finds the given parameter tag, then it returns its components. This kind of tag, differs from the simple one because it is formatted this way: <tag param="val">. This method returns both param and value.
Definition at line 245 of file Serialization.cpp. References nor_utils::cmp_nocase(), and StreamTokenizer::next_token(). |
|
Move in the stream until it finds the given tag, then parse the vector which follows the tag.
Definition at line 281 of file Serialization.h. References nor_utils::cmp_nocase(), ClassMappings::getIdxFromClassName(), StreamTokenizer::has_token(), and StreamTokenizer::next_token(). Referenced by StumpLearner::load(), and MultiStumpLearner::load(). |
|
Move in the stream until it finds the given parameter tag. This kind of tag, differs from the simple one because it is formatted this way: <tag param="val">.
Definition at line 157 of file Serialization.cpp. References nor_utils::cmp_nocase(). |
|
Move in the stream until it finds the given tag. For instance if the stream is at the beginning of <aTag>10<\aTag><anotherTag>15<\anotherTag><thirdTag>1<\thirdTag>
Definition at line 145 of file Serialization.cpp. References nor_utils::cmp_nocase(), StreamTokenizer::has_token(), and StreamTokenizer::next_token(). |