ADTF
|
Subclass representing and handling the query subset as part of cUrl. More...
Public Member Functions | |
cQuery (const cString &strQuery=cString::Empty) | |
Constructor for a Query subset of any URL. More... | |
~cQuery () | |
Destructor. | |
tResult | Validate (const cString &strQuery) |
Validation procedure for the query subset. More... | |
cString | GetValue (const cString &strParameter, const cString &strDefault=cString::Empty) const |
Method to read individual values of the query by their parameters. More... | |
cString | AsString () const |
Getter method to retrieve the raw query string. More... | |
tBool | IsValid () const |
Checks for the query's validity. More... | |
Private Attributes | |
tBool | m_bIsValid |
< Boolean flag used to determine if the url subset has already been verified More... | |
cString | m_strQueryFull |
Map to store the the query's value paris in. | |
std::map< cString, cString > | m_mapQuery |
Subclass representing and handling the query subset as part of cUrl.
strQuery | The query part of a particular URL |
cQuery | ( | const cString & | strQuery = cString::Empty | ) |
Constructor for a Query subset of any URL.
strQuery | The query part of a particular URL |
cString AsString | ( | ) | const |
Getter method to retrieve the raw query string.
cString GetValue | ( | const cString & | strParameter, |
const cString & | strDefault = cString::Empty |
||
) | const |
Method to read individual values of the query by their parameters.
strParameter | The parameter to read from |
strDefault | Default return value |
strDefault
is returned. tBool IsValid | ( | ) | const |
Checks for the query's validity.
tFalse | if query subset is invalid or has not yet been validated. |
tTrue | if the query subset is valid and the values could be extracted successfully. |
Validation procedure for the query subset.
strQuery | The query part of a particular URL if not already given through the constructor |
ERR_NOERROR | A valid Query has been given. |
ERR_INVALID_ARG | The query is syntactically invalid |