MyMediaLite
3.07
|
Class for key-value pair string processing. More...
Public Member Functions | |
bool | CheckForLeftovers () |
Check for parameters that have not been processed yet. | |
bool | GetRemoveBool (string key) |
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair. | |
bool | GetRemoveBool (string key, bool dvalue) |
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair. | |
double | GetRemoveDouble (string key) |
Get a double value from the parameters. | |
double | GetRemoveDouble (string key, double dvalue) |
Get a double value from the parameters. | |
float | GetRemoveFloat (string key) |
Get a float value from the parameters. | |
float | GetRemoveFloat (string key, float dvalue) |
Get a float value from the parameters. | |
int | GetRemoveInt32 (string key) |
Get the value of an integer parameter from the collection and remove the corresponding key-value pair. | |
int | GetRemoveInt32 (string key, int dvalue) |
Get the value of an integer parameter from the collection and remove the corresponding key-value pair. | |
IList< int > | GetRemoveInt32List (string key) |
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair. | |
IList< int > | GetRemoveInt32List (string key, char sep) |
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair. | |
string | GetRemoveString (string key) |
Get a string parameter. | |
string | GetRemoveString (string key, string dvalue) |
Get a string parameter. | |
uint | GetRemoveUInt32 (string key) |
Get and remove an unsigned integer. | |
uint | GetRemoveUInt32 (string key, uint dvalue) |
Get and remove an unsigned integer. | |
RecommenderParameters (string arg_string) | |
Create a CommandLineParameters object. | |
RecommenderParameters (IList< string > args, int start) | |
Create a RecommenderParameters object. |
Class for key-value pair string processing.
RecommenderParameters | ( | string | arg_string | ) | [inline] |
Create a CommandLineParameters object.
arg_string | a string that contains the command line parameters |
RecommenderParameters | ( | IList< string > | args, |
int | start | ||
) | [inline] |
Create a RecommenderParameters object.
args | a list of strings that contains the command line parameters |
start | ignore all parameters before this position |
bool CheckForLeftovers | ( | ) | [inline] |
Check for parameters that have not been processed yet.
bool GetRemoveBool | ( | string | key | ) | [inline] |
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
bool GetRemoveBool | ( | string | key, |
bool | dvalue | ||
) | [inline] |
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
dvalue | the default value of the parameter |
double GetRemoveDouble | ( | string | key | ) | [inline] |
Get a double value from the parameters.
key | the parameter name |
double GetRemoveDouble | ( | string | key, |
double | dvalue | ||
) | [inline] |
Get a double value from the parameters.
key | the parameter name |
dvalue | the default value if parameter of the given name is not found |
float GetRemoveFloat | ( | string | key | ) | [inline] |
Get a float value from the parameters.
key | the parameter name |
float GetRemoveFloat | ( | string | key, |
float | dvalue | ||
) | [inline] |
Get a float value from the parameters.
key | the parameter name |
dvalue | the default value if parameter of the given name is not found |
int GetRemoveInt32 | ( | string | key | ) | [inline] |
Get the value of an integer parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
int GetRemoveInt32 | ( | string | key, |
int | dvalue | ||
) | [inline] |
Get the value of an integer parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
dvalue | the default value of the parameter |
IList<int> GetRemoveInt32List | ( | string | key | ) | [inline] |
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
IList<int> GetRemoveInt32List | ( | string | key, |
char | sep | ||
) | [inline] |
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair.
key | the name of the parameter |
sep | the separator character used to split the string representation of the list |
string GetRemoveString | ( | string | key | ) | [inline] |
Get a string parameter.
key | the name of the parameter |
string GetRemoveString | ( | string | key, |
string | dvalue | ||
) | [inline] |
Get a string parameter.
key | the name of the parameter |
dvalue | the default value |
uint GetRemoveUInt32 | ( | string | key | ) | [inline] |
Get and remove an unsigned integer.
key | the parameter name |
uint GetRemoveUInt32 | ( | string | key, |
uint | dvalue | ||
) | [inline] |
Get and remove an unsigned integer.
key | the parameter name |
dvalue | the default value of the parameter |