TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ConfigDomain in Tinman.Core.Config

A config domain contains zero or more config scripts and allows them to reference each others members by using qualified names.

sealed class ConfigDomain implements IValidatable
  extends VersionedBase

Remarks

A qualified name for a member is constructed from the script name (see Name) and the member name (see Name).

Public / Attributes

Scripts

The config scripts in this domain.

public property Scripts { get }
type IVectorConst<ConfigScript>
value [not-null] The config script list.

Version

Returns the current version of object.

public property Version { get }
type int32
value The current version number.
inherited VersionedBase.Version

Remarks:

For each modification, the version is incremented by at least one.

Public / Constructors

ConfigDomain

Creates a new instance of ConfigDomain.

public constructor ConfigDomain ()

Public / Methods

Add

Adds a script to this domain.

public method Add (ConfigScript script)
params script [not-null] The script to add.

Get

Returns a config script in this domain.

public method Get (string name)
type ConfigScript
params name [not-null] The config script name (see Name).
returns [not-null] The config script.

Exceptions:

GetNull

Returns a config script in this domain.

public method GetNull (string name)
type ConfigScript
params name [not-null] The config script name (see Name).
returns The config script or null if not found.

Remove

Removes a config script from this domain.

public method Remove (ConfigScript script)
params script [not-null] The script to remove.

Validate

Validates the state of this object.

public method Validate (Validator validator)
params validator [not-null] The validator object.
implements IValidatable.Validate