This is the documentation for Enlighten.
class Geo GeoVariant
class Geo::GeoVariant
Variant class for storing name/value pairs in a map, where the value is a subset of common value types.
The variant is an immutable object, akin to C# style strings.
Classes
Name | Description |
|---|---|
GUID class for representing links. | |
String class for representing URLs (e.g. file paths). |
Functions
Name | Description |
|---|---|
Create a new GeoVariant from the string representation. | |
Copy constructor (we can't use the compiler-generated one as we may need to copy the heap data if this is a Url GeoVariant). | |
Construct a GeoVariant of a given type, with a default value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Construct a GeoVariant of the given type, with the specified value. | |
Convert the value to a string, for use when serialising or presenting in a dialog. | |
Returns the type of this GeoVariant. | |
Binary serialisation functions. | |
Comparison operators. | |
Assignment. | |
Comparison operators. | |
Binary serialisation functions. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. | |
Conversion to the underlying type. |
Enums
Name | Description |
|---|---|
The possible data types that the GeoVariant can hold. |
Variables
Name | Description |
|---|---|
const GeoVariant InvalidStatic | A single const invalid GeoVariant. |
static GeoVariant Geo::GeoVariant::FromStringRepresentation
public: GeoVariant FromStringRepresentation
(
Type type,
const char * value
)
Create a new GeoVariant from the string representation.
The function requires the type it will create and the new value. The conversion functions are not checked, so failure to convert will result in a GeoVariant of the correct type and a default value.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const GeoVariant & rhs
)
Copy constructor (we can't use the compiler-generated one as we may need to copy the heap data if this is a Url GeoVariant).
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
Type t
)
Construct a GeoVariant of a given type, with a default value.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const LinkData & x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const UrlData & x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const Geo::Matrix & x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const v128 & x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const GeoString< char > & x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
const char * x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
bool x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
float x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
u64 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
s64 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
u32 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
s32 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
s16 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
u16 x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
Geo::GeoVariant::GeoVariant
public: GeoVariant
(
GeoGuid x
)
Construct a GeoVariant of the given type, with the specified value.
The various string representations are all internally converted to the utf8 String enum, truncation to 64 characters is silent and will not cause it to fail.
GeoString<char> Geo::GeoVariant::GetStringRepresentation
public: GeoString< char > GetStringRepresentation() const
Convert the value to a string, for use when serialising or presenting in a dialog.
Type Geo::GeoVariant::GetType
public: Type GetType() const
Returns the type of this GeoVariant.
bool Geo::GeoVariant::Load
public: bool Load
(
IGeoInputStream & stream
)
Binary serialisation functions.
bool Geo::GeoVariant::operator!=
public: bool operator!=
(
const GeoVariant & rhs
) const
Comparison operators.
GeoVariant& Geo::GeoVariant::operator=
public: GeoVariant & operator=
(
const GeoVariant & rhs
)
Assignment.
bool Geo::GeoVariant::operator==
public: bool operator==
(
const GeoVariant & rhs
) const
Comparison operators.
bool Geo::GeoVariant::Save
public: bool Save
(
IGeoStream & stream
) const
Binary serialisation functions.
bool Geo::GeoVariant::ToBool
public: bool ToBool() const
Conversion to the underlying type.
Converting a GeoVariant containing type A to a different type will result in a default value. It will not follow C++ conversion rules (so if you ask for an Integer, and it contains a Short, you will get a 0 result).