Click or drag to resize

cBaseShapeManager Class

Base class for a Shape Manager. Provides implementation to make a derived Shape Manager behave like a List (For Each).
Inheritance Hierarchy

Namespace:  EwECore
Assembly:  EwECore (in EwECore.dll) Version: 6.6.15981.0 (6.6.15981.0)
Syntax
public abstract class cBaseShapeManager : IEnumerable, 
	ICoreInterface, IDisposable

The cBaseShapeManager type exposes the following members.

Properties
  NameDescription
Public propertyCore
Public propertyCoreComponent
Public propertyCoreItem
Use a Core one based index to retrieve an item
Public propertyCount
Number of Items(shapes) in this Shape Manager
Public propertyDataType
Public propertyDBID
Public propertyIndex
Public propertyItem
Get a shape from the manager.
Public propertyName
Public propertyNPoints
Number of points in the data for this type of shape. This is specific to a ShapeManger implementation.
Top
Methods
  NameDescription
Protected methodAdd
Add a shape to the manager
Public methodContains
Does this ShapeManager contain this cForcingFunction
Public methodCreateNewShape(String, Single, Int64, Single)
Shapes can not be created outside the Shape Manager; they must be created by a ShapeManager.
Public methodCreateNewShape(String, Single, Single, Single, Single, Single, Int64) Obsolete.
Shapes can not be created outside the Shape Manager; they must be created by a ShapeManager.
Protected methodDispose
Releases all resources used by the cBaseShapeManager
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Implementation of IEnumerable.GetEnumerator provides access to the For Each statment
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetID
Protected methodgetShapeForEcoSimArrayIndex
Convert an array index from the underlying data in EcoSim into the Forcing function that is stored in the list
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load the existing shape with the underlying Ecosim data
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Remove a shape from the Manager and the underlying EcoSim Data
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Populate the underlying EcoSim data structures with the forcing function data
Protected methodUpdateIDs
Top
Fields
  NameDescription
Protected fieldm_core
Reference to the core.
Protected fieldm_DataType
Type of shape this manager operates on.
Protected fieldm_shapes
List of shapes owned by this manager.
Protected fieldm_SimData
underlying EcoSim data
Top
Extension Methods
  NameDescription
Public Extension MethodValue
Extension method; extract a value from an object by property name.
(Defined by Extensions.)
Top
Remarks
This provides For Each functionality to a Shape Manager by implementing the IEnumerable.GetEnumerator() interface. Behaviour specific to a Shape Manager must be implemented in a derived class.
See Also