sealed class
|
DatasetInfo
|
implements
|
IDatasetInfo
|
||
IVersioned
|
|||||
extends
|
SerializableBase
|
The configurator object for this type.
public
static
property
|
Config
{
get
}
|
||
type
|
IConfigurator<IDatasetInfo>
|
||
value
|
|
The configurator object. |
Returns the configuration value that describes this object.
public
method
|
ToConfig
()
|
||
type
|
ConfigValue
|
||
returns
|
|
The configuration value. | |
implements
|
IConfigurable.ToConfig
|
Remarks:
All configurable objects need to implement this interface. For simple types, it is preferable to delegate to ToValue.
The returned value may be of type Invalid, which means that this object in its current state cannot be described with the configuration API.
Before returning the resulting configuration value, Cache must be called on it, passing this IConfigurable object as parameter.
Serialization information about this type.
public
static
readonly
field
|
SerialId
|
||
type
|
ISerialTypeInfo
|
public
constant
|
FirstField
=
DatasetInfoField.Name
|
||
type
|
DatasetInfoField
|
public
constant
|
LastField
=
DatasetInfoField.Remarks
|
||
type
|
DatasetInfoField
|
Returns the names of all fields that are present in this dataset info object.
public
property
|
FieldNames
{
get
}
|
||
type
|
IVectorConst<string>
|
||
value
|
|
The list of field names. | |
implements
|
IDatasetInfo.FieldNames
|
Returns the serial type of this object.
public
property
|
SerialType
{
get
}
|
||
type
|
ISerialTypeInfo
|
||
value
|
|
The serial type. | |
inherited
|
SerializableBase.SerialType
|
Returns the serial data version.
public
virtual
property
|
SerialVersion
{
get
}
|
||
type
|
int32
|
||
value
|
|
The serial data version tag. | |
inherited
|
SerializableBase.SerialVersion
|
Remarks:
An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.
See also:
ISerializable.SerializeReturns the current version of object.
public
property
|
Version
{
get
}
|
||
type
|
int32
|
||
value
|
The current version number. | ||
implements
|
IVersioned.Version
|
Remarks:
For each modification, the version is incremented by at least one.
Creates a new instance of DatasetInfo.
public
constructor
|
DatasetInfo
()
|
Creates a new instance of DatasetInfo.
public
constructor
|
DatasetInfo
(IDatasetInfo data)
|
||
params
|
data
|
[not-null]
|
The info object to copy from. |
Returns a modifiable DatasetInfo object from the given object.
[Pure]
|
||||
public
static
method
|
Get
(IDatasetInfo info = null)
|
|||
type
|
DatasetInfo
|
|||
params
|
info
|
The
other
info
object.
Defaults
to
null . |
||
returns
|
|
The modifiable info object. |
Initializes the state of this object from the given data stream.
public
override
method
|
Deserialize
(int32 serialVersion,
ISerializer data)
|
||
type
|
ISerializable
|
||
params
|
serialVersion
|
[>=1]
|
The serial data version. |
data
|
[not-null]
|
The serial data stream. | |
returns
|
|
The
deserialized
object.
This
will
typically
be
this ,
but
in
some
circumstances,
another
instance
may
be
returned
(e.g.
singletons).
|
|
overrides
|
SerializableBase.Deserialize
|
Remarks:
The Deserialize method will be called immediately after the object has been instantiated via its default constructor.
The provided serialVersion number is guaranteed to be equal to or less than the SerialVersion returned by this object (i.e. ISerializable object must provide backwards compatibility).
See also:
ISerializable.SerializeCompares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(IDatasetInfo other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
Returns a heightmap info field.
[Pure]
|
||||
public
method
|
GetField
(string field,
string defaultValue = null)
|
|||
type
|
string
|
|||
params
|
field
|
[not-empty]
|
The field name. | |
defaultValue
|
The value to return if the given field has no data or if no such field exists. | |||
returns
|
The field value. | |||
implements
|
IDatasetInfo.GetField
|
Returns a heightmap info field.
[Pure]
|
||||
public
method
|
GetField
(DatasetInfoField field,
string defaultValue = null)
|
|||
type
|
string
|
|||
params
|
field
|
The field. | ||
defaultValue
|
The value to return if the given field has no data. | |||
returns
|
The field value. | |||
implements
|
IDatasetInfo.GetField
|
Returns the name of a dataset info field.
[Pure]
|
||||
public
static
method
|
GetFieldName
(DatasetInfoField field)
|
|||
type
|
string
|
|||
params
|
field
|
The field. | ||
returns
|
|
The field name. |
Serializes the current state of this object to the given data stream.
public
override
method
|
Serialize
(ISerializer data)
|
||
params
|
data
|
[not-null]
|
The serial data stream. |
overrides
|
SerializableBase.Serialize
|
See also:
ISerializable.DeserializeSets a dataset info field.
public
method
|
SetField
(string field,
string value)
|
||
type
|
DatasetInfo
|
||
params
|
field
|
[not-empty]
|
The field name. |
value
|
The field value. | ||
returns
|
|
this |
Sets a dataset info field.
public
method
|
SetField
(DatasetInfoField field,
string value)
|
||
type
|
DatasetInfo
|
||
params
|
field
|
The field. | |
value
|
The field value. | ||
returns
|
|
this |
Updates the fields in this heightmap metadata object.
public
method
|
Update
(IDatasetInfo info)
|
||
type
|
DatasetInfo
|
||
params
|
info
|
The
other
metadata
to
copy
from
or
null . |
|
returns
|
|
this |