GH_IChunk

References
Base interface for all Archive Chunks.

Properties

Archive

#
Gets a pointer to the archive that owns the Root of the tree this chunk belongs to.
GH_Archive Archive { get; }

ArchiveLocation

#
Gets a string representing the URI with which the archive is associated. The location may be a null string.
string ArchiveLocation { get; }

ChunkCount

#
Gets the number of child chunks contained in this chunk. The set of all child chunks is referred to as a 'litter'.
int ChunkCount { get; }

Chunks

#
Gets a pointer to the internal list of child chunks. Do not access this list unless you know what you are doing.
List<GH_IChunk> Chunks { get; }

Index

#
Gets the index of this chunk. The index is set by the owner of this chunk. Indices smaller than zero imply no index has been set. The combination of name+index is always unique among a set of chunks in the same litter.
int Index { get; }

ItemCount

#
Gets the number of items contained in this chunk.
int ItemCount { get; }

Items

#
Gets a pointer to the internal list of items. Do not access this list unless you know what you are doing.
List<GH_Item> Items { get; }

Name

#
Gets the name of this chunk. The name is set by the owner of this chunk. Names must be at least 1 character long. The combination of name+index is always unique among a set of chunks in a single litter.
string Name { get; }

Methods

AddMessage

#
Log a new message with the top-level archive. Messages are collected during read/write operations, and can be displayed to the user upon completion using GH_Archive.ShowMessageLog().
void AddMessage(
m,
Message text.
t
Message type.
)

Read

Called when an object is required to deserialize itself.
void Read(
reader
Reader object to be used for deserialization.
)
inherited fromGH_IBinarySupport

Read

Called when an object is required to deserialize itself.
void Read(
node
Node object to be used for deserialization.
)
inherited fromGH_IXmlSupport

Write

Called when an object is required to serialize itself.
void Write(
writer
Writer object to be used for serialization.
)
inherited fromGH_IBinarySupport

Write

Called when an object is required to serialize itself.
void Write(
writer
Writer object to be used for serialization.
)
inherited fromGH_IXmlSupport