Karamba.Utilities Namespace

Classes that provide utility functions.

Classes

ColorRange range of colors to be used as legend-colors for numeric results.
CommonObject Base class of all objects that accept user data.
CommUtil helper for communications.
ConfigCachedType Represents cached configuration values.
CroSecProperties calculates the mechanical properties of arbitrary cross sections defined by closed polylines of straight line segments in the global xy-plane If the orientation is positive (counter clockwise with respect to the Z-axis) also the area contribution.
CSVReader Reader for CSV-data.
CSVReaderException Exception thrown by CSVReader.
DataTreeStructure represents the structure of a data tree. A 2D data structure is assumed.
DocConfigType also looks up settings in document, otherwise delegates to IniConfigType.
DrawUtil Utility class for drawing UI widgets.
DynUtil Utility class for dynamic runtime operations.
Element1DResultTypesExtension Extensions class with conversion from and to Element1DOption.
EnumerableExtensions Custom extensions methods for IEnumerableT.
ExceptUtil Utility function related to Exception, mostly to offer usability as expression.
ExtendedListT A list that behaves as if it were infinitely long: when reading an item beyond the last element the last element is returned when writing an item beyond the last element the last element is copied until the new position is reached the copies are shallow copies. The difference to InfiniteList is the handling of default values.
FileLogger class for writing log-information to file; is a singleton.
FuncUtil  
IdGuidList Is a list of Element Ids and Guids that can be checked for equality and used as key of a dictionary.
IdIndexer Relates string identifiers (id) to items one identifier may relate to only one item one item may relate to several identifiers. The first name of the item is the first identifier and so on.
IdMapper Maps an identifier or regular expression to indexes For mappings from regular expression to element the enlisted string has to start with "&".
IdReferenceResolver Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
InfiniteListT A list that behaves as if it were infinitely long: when reading an item beyond the last element the default element is returned when writing an item beyond the last element the default element is copied until the new position is reached the copies are shallow copies the default value is always the last item in the list at initialization.
IniConfigData holds IniConfig[] for static import. This module defines things specific to our ini-file. The more general reader is in SimpleIniReader.cs.
IniConfigType Instance is reachable over SimpleIniReader.IniConfig. Here are defaults added.
IniEdit  
IniGrammar Our Regexes, rules for parsing ini files.
IniReaderExt  
IntArr2EqualityComparer equality comparer for integer arrays with two elements.
LicenseUtil utility container for different function needed for licensing.
MessageLogger log messages and cut them off if too long.
MiniUtil mixed utilities mostly low level, whether (pure) path nor license related. From MacAddrs() over ReadAsmAttributeFromExec() to ToUnsignedBigEndianByteArray().
ModelSerializer serializer for models.
MultiMapK, V Custom implementation of a multi map because C# does not offer one by default.
MultiMapRelatedExt  
OptimumItem Class with misc methods for retrieving optimum items from a list.
PathUtil Holds some path function. Mostly related to plugin directory.
PositionException Exception thrown when the position of a unit-load of a mesh-load is invalid.
SerializationCacheReadT Cache for object references in reading serialized data. Assumes, that the same order for read and write calls. Does not work in concurrent read/write operations.
SerializationCacheWriteT Cache for object references in writing serialized data. Assumes, that the same order for read and write calls. Does not work in concurrent read/write operations.
SerializationUtils Helper routines for serializing objects.
SimpleIniFile Hold ini file data.
SimpleIniFileEntry Component of SimpleIniFile.
SimpleIniReader Offer ReadIniFile() and LicenseDirFromIniFile().
StringUtil Little helper mostly extension methods for strings.
TaskUtil  
ToFeb Extension methods to convert KarambaCommon types into feb types.
ToKarambaCommon Extension methods to convert feb types into KarambaCommon types.
UnitConversion Convert numbers with physical units from given input to output units (i.e. ft to m).
UnitConversionCollection contains a collection of unit conversion objects, based on a scaling factor for geometric input.
UnitsConversionFactory Factory for generating physical units conversion objects.
UserIsoLines Retrieves principal stress lines.
UserStreamLines Retrieves principal stress lines.
Utils Class that contains various utilities as methods.
UtilsMatcher  
UtilsExtensions extends misc types.
UtilsIEnumerable Utility routines for IEnumerable.
UtilsRegularExpression helper functions for dealing with regular expression s and simplified regular expressions.

Structures

CrossSectionProperties cross section properties.
MiniUtilTupleFromEnumT helper class for the .ToTuple() extension method.
SyncContextAwaiter Helper to make await applicable to SynchronizationContext.

Delegates

ExceptUtilTryXxxFuncTr Delegates to represent TryWhatever functions.
ExceptUtilTryXxxFuncTs, Tr  
ExceptUtilTryXxxFuncTs1, Ts2, Tr  
MiniUtilParamsFuncTk, Tv Used by DictionaryAccessor, helper type to incorporate params functionality into lambdas.
SyncContextText  
TryFuncTInput, TOutResult Encapsulates a method that has one parameter and tries to return a value of the type TOutResult as an parameter.

Enumerations

BeamDofs Degrees of freedom of a beam.
ErrorLevel Error level of the message logger.
LicMech how is the license stored? Options are static file, zoo/lan server, zoo cloud.
LicOver Provider for licenses. Way to get the license.
LicType type of license (RTFS).
MessageLevel type of message.
PathUtilBaseBy  
TextAlignment Type of alignment for a text.
UnitSystem supported unit systems.
ValueDistributionT Enum that describes the procedure for calculating nodal values from element values of elements that include the given node.