A single XPath variable.
More...
#include <xpathvariable.h>
A single XPath variable.
This is intended to be used as a single member of an Mezzanine::XML::XPathVariableSet, and for moving data into and out of Mezzanine::XML::XPathQuery.
Definition at line 75 of file xpathvariable.h.
bool Mezzanine::XML::XPathVariable::GetBoolean |
( |
) | |
const |
Get this as a bool.
Get variable Value; Minimal Type conversion is performed, default Value (false, NaN, empty string, empty node set) is returned on Type mismatch error
- Returns
- This as a bool, with any appropriate downcasting.
const XPathNodeSet& Mezzanine::XML::XPathVariable::GetNodeSet |
( |
) | |
const |
Get this as a XPathNodeSet.
Get variable Value; no Type conversion is performed, if type of variable is not a XPathNodeSet then an XPathException is thrown
- Exceptions
-
XPathException | on type mismatch or allocation error |
- Returns
- A This as an XPathNodeSet, without conversion.
double Mezzanine::XML::XPathVariable::GetNumber |
( |
) | |
const |
Get this as a double.
Get variable Value; default Value (false, NaN, empty string, empty node set) is returned on Type mismatch error
- Returns
- This as a double.
const Char8* Mezzanine::XML::XPathVariable::GetString |
( |
) | |
const |
Get this as a c-string.
Get variable Value; default Value (false, NaN, empty string, empty node set) is returned on Type mismatch error
- Returns
- This as a c-string of char_t, without conversion.
const Char8* Mezzanine::XML::XPathVariable::Name |
( |
) | |
const |
Get the variable name.
- Returns
- The name of this variable or a null pointer if this this XPathVariable is of an invalid type/
Protected assignment operator, used to force noncopyable semantics.
- Returns
- Shouldn't be used, not supported.
bool Mezzanine::XML::XPathVariable::Set |
( |
bool |
Value) | |
|
Set variable Value; no Type conversion is performed.
- Returns
- True is returned on Success, false is returned on Type mismatch error.
- Parameters
-
Value | The value to attempt to put into this. |
bool Mezzanine::XML::XPathVariable::Set |
( |
double |
Value) | |
|
Set variable Value; no Type conversion is performed.
- Parameters
-
Value | The value as a double to attempt to put into this. |
- Returns
- True is return, false is returned on Type mismatch error.
bool Mezzanine::XML::XPathVariable::Set |
( |
const Char8 * |
Value) | |
|
Set variable Value; no Type conversion is performed.
- Parameters
-
Value | The value as a char_t array to attempt to put into this. |
- Returns
- True is return, false is returned on Type mismatch error.
bool Mezzanine::XML::XPathVariable::Set |
( |
const XPathNodeSet & |
Value) | |
|
Set variable Value; no Type conversion is performed.
- Parameters
-
Value | The value to attempt to put into this. |
- Returns
- True is return, false is returned on Type mismatch error.
Get variable type.
- Returns
- The current Type of this XPathVariable.
The Next Variable in a linked structure of XPathVariables.
Definition at line 87 of file xpathvariable.h.
What kind of data does this variable store.
Definition at line 83 of file xpathvariable.h.
The documentation for this class was generated from the following file: