DocConfigType Class

also looks up settings in document, otherwise delegates to IniConfigType.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public class DocConfigType : IniConfigType
Inheritance
Object    CollectionSimpleIniFileEntry    KeyedCollectionString, SimpleIniFileEntry    SimpleIniFile    IniConfigType    DocConfigType
Derived

Constructors

DocConfigType Initializes a new instance of the DocConfigType class

Properties

Comparer Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Count Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Dictionary Gets the lookup dictionary of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Gravity Gets or sets the gravity acceleration in m/s². The value is always represented in SI system's m/s² irrespective of choice of the UnitsSystem. Values on Earth vary from 9.832 m/s² on the poles, to 9.780 m/s² on the equator. The conventional standard value is 9.80663520001 m/s². Used values are a different story, the value normally used in countries with SI units is just 10 m/s². Whereas in imperial system g needs correspond to 3.174 ft/s² otherwise the conversion from lbm to lbf does not work, therefore 9.80665 m/s² is used.
(Inherited from IniConfigType)
ItemInt32 Gets or sets the element at the specified index.
(Inherited from CollectionSimpleIniFileEntry)
ItemString
(Overrides SimpleIniFileItemString)
Items Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
OccurredErrors
(Inherited from SimpleIniFile)
UnitForce
(Inherited from IniConfigType)
UnitLength Gets or sets the unit of length in the current unit system.
(Inherited from IniConfigType)
UnitLengthUnresolved Gets the unit of length in the current unit system. May return "default" or "auto" i.e. the unresolved unit.
(Inherited from IniConfigType)
UnitMass
(Inherited from IniConfigType)
UnitSystem Gets or sets the unit of length in the current unit system.
(Inherited from IniConfigType)

Methods

Add Adds an object to the end of the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
AddEntries add entries from a (later) file.
(Inherited from SimpleIniFile)
AsText Return ini file data as reparseable text. Normally only changes and stuff from the top returned.
(Inherited from SimpleIniFile)
ChangeItemKey Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Clear Removes all elements from the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
ClearItems Removes all elements from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Color Shortcut for color values.
(Inherited from SimpleIniFile)
Contains(T) Determines whether an element is in the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Contains(TKey) Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
CopyTo Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionSimpleIniFileEntry)
CopyValueToDoc Copy over values from ini config into doc settings. Overwrites existing values.
DefaultGravity
(Inherited from IniConfigType)
DefaultUnits
(Inherited from IniConfigType)
DeleteByKey Delete items with name.
(Inherited from SimpleIniFile)
DeleteValuesFromDoc Delete all entries from doc settings. Then the ini settings are used.
DocValuesAsText  
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FromUserCfg Return items form user config.
(Inherited from SimpleIniFile)
Gamma Safety factor, for material M0 or M1.
(Inherited from IniConfigType)
GetEnumerator Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetKeyForItem Used by underlying KeyedCollection to extract key.
(Inherited from SimpleIniFile)
GetType Gets the Type of the current instance.
(Inherited from Object)
GetTypeStrs
(Inherited from IniConfigType)
GetValueFromIni Get Value from the ini files, ignore super classes.
(Inherited from SimpleIniFile)
GetValuesFromDoc  
IncorporateChangesFrom Take over changes from another read.
(Inherited from SimpleIniFile)
IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
InitializeCachedValues Initializes the caches.
(Inherited from IniConfigType)
InitialValueToDoc Like CopyValueToDoc(), but doesn't overwrite.
Insert Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionSimpleIniFileEntry)
InsertItem Inserts an element into the KeyedCollectionTKey, TItem at the specified index.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
MarkAsChangedBasedOn For use with editors. Write the actual state into a temporary file, open editor with it, wait, parse, and then update changed state based on the original state. Then just write the delta to the user config.
(Inherited from SimpleIniFile)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
NxVyzMxyzColors Read separated color values in on go.
(Inherited from SimpleIniFile)
NxVyzMxyzColorsPerAxis Like NxVyzMxyzColors.
(Inherited from SimpleIniFile)
PrependEntries Like AddEntries(), but new entries are stronger.
(Inherited from SimpleIniFile)
PureComments Returns a list of standalone comments which are spaced away from config values.
(Inherited from SimpleIniFile)
Read Read ini files.
(Inherited from SimpleIniFile)
ReadFromFile Read ini content from file.
(Inherited from SimpleIniFile)
ReadFromText Read ini content from string.
(Inherited from SimpleIniFile)
Remove(T) Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Remove(TKey) Removes the element with the specified key from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
RemoveAt Removes the element at the specified index of the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
RemoveItem Removes the element at the specified index of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
ReRead reset data and reread ini files.
(Inherited from IniConfigType)
ReReadDefaultsOnly
(Inherited from IniConfigType)
ReReadWoUserCfg
(Inherited from IniConfigType)
ReSet Reset to the original values which has be read in, and dismiss all later changes.
(Inherited from SimpleIniFile)
Save Stores the changes in the user config file.
(Inherited from SimpleIniFile)
SaveForEditing Save all not only changes into file.
(Inherited from SimpleIniFile)
SetItem Replaces the item at the specified index with the specified item.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
SetValue(SimpleIniFileEntry, Object, Boolean)
(Inherited from SimpleIniFile)
SetValue(String, Object, Boolean) Set a value into ini config and on request also in the actual document.
(Overrides SimpleIniFileSetValue(String, Object, Boolean))
SetValueToDoc  
ToString
(Inherited from SimpleIniFile)

Fields

TopFile First file read, which is used to write changes into.
(Inherited from SimpleIniFile)

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also