CIDLib Classes
Welcome To CIDCorp
Home of the CIDLib Class Libraries


Core Class Reference

This document lists all of the non-template and non-mixin classes of the CIDLib facility.

See the Developers Reference for a more high level tutorial description of the CIDLib facility and its classes and architecture.
Class Name Header File
TArea CIDLib_Area.Hpp
This class represents a rectangular, 2D area with integral coordinates. It is used by all code that needs a rectangular area, except for those that are graphics related and which use TArea's floating point cousin, TFArea.
TAudio CIDLib_Base.Hpp
This is the default base audio object. It defines (and provides fallback implementations for) all of the sound generating functionality of the system. The CIDLib facility (facCIDLib) uses some derivative of TAudio to make all sounds, so an app or higher level facility can plug in a more sophisticated audio object in order to route standard sounds through more specialized hardware. By default one of these TAudio objects is installed, which just does its work via the system speaker.
TBinaryFile CIDLib_BinaryFile.Hpp
A derivative of TFileBase, this is the most often used file class (and most often derived from.) It provides full read/write access that you would expect on a standard file. It provides this stuff primarily by just providing inline pass-through methods that call protected TFileBase methods.
TBinaryStream CIDLib_BinaryStream.Hpp
This class represents a binary mode stream. Like all streams, it is derived from TStream and uses a stream implementation object for its data sink/source, so it can get data from anywhere a stream implementation is available. Binary streams read/write binary representations of objects and fundamental data values.
TCardinal CIDLib_Numeric.Hpp
This class represents a 32 bit cardinal value. Note that this class (and its breathren, TInteger and TFloat) is not intended to replace the fundamental types. The overhead of that would be far too great. Instead, these are used for formatting, and to allow fundamental values to be passed to APIs that require an object of some sort (i.e. some deriviative of TCIDObject.) This is often the case with formatting code that just formats objects generically.
TCIDClass CIDLib_Class.Hpp
This is the meta-class. It is a class that represents a class in the CIDLib world. These are created for each class via the standard macros that are placed into every class header (see STDMEMBERS and STDVPUBMETHODS for details.) This class also serves as a factory for the class it represents, if the class supports factory instantiation (and all do not because it requires default construction to be supported by the class and it doesn't make sense for some classes.)
TCIDError CIDLib_Error.Hpp
This is the one and only exception class. All CIDLib code will throw an object of this type, as should all user code. It has enough info in it to satisfy everyone and makes exception handling consistent and clean, as well as making it more efficient to log exceptions binarily (which is how it is done most of the time, or will be soon.)
TCIDFac CIDLib_Facility.Hpp
This is the base class from which all facility classes are derived. It defines the functionality that all facilities must provide, and most of it is non- virtual functionality that serves for all derivatives. Facilities are a core concept in the CIDLib architecture.
TCIDObject CIDLib_Object.Hpp
This is the GodFather of all classes (except for mixin classes of course.) CIDLib uses a single rooted system and TCIDObject is that root object. It defines some common functionality that all classes must provide (mainly RTTI support which is provided by a set of macros in each class. See the STDMEMBERS and STDVPUBMETHODS macros.
TDate CIDLib_DateTime.Hpp
TDate represents 12 midnight on some day in time. It is heavily releated to the TTime class. It understands how to format itself in various ways.
TDirIter CIDLib_FileSys2.Hpp
This is the file system directory iterator class. You use them to iterate through all of the files in a directory that match a particular wildcard specification. It returns TFindBuf objects for each match.
TEABuf CIDLib_FileSys2.Hpp
This is a smart derivative of TSysBuf which knows how to handle extended attributes. This class can save you much effort since it knows how to read EAs and format them.
TFacCIDLib CIDLib_ThisFac.Hpp
This is the facility class for the CIDLib facility. As always, a single object facCIDLib, is instantiated from this class and exported. This object represents the overall facility, and is derived from TCIDFac.
TFileBase CIDLib_FileBase.Hpp
The base class of all files. It provides all of the APIs that a file needs to handle, but hides many of them so that only specific derivatives can export them.
TFileStreamImpl CIDLib_FileStreamImpl.Hpp
Streams don't know where their data comes from or goes to. They are implemented in terms of an abstract data sink/source, TStreamImpl. This is a concrete derivative of the stream implementation class, which streams to and from a derivative of the TBinaryFile class.
TFileSys CIDLib_FileSys.Hpp
This class represents the file system. You use these to do all of the file oriented operations that don't operate on the file content (delete, rename, copy, etc...) and all of the directory operations (rename, move, search, etc...) These are very low cost to construct, so just create one any time you need it, don't bother keeping them around for efficiency. Don't delete and recreate one a million times in a tight loop of course, but in general you don't have to worry about any construction overhead.
TFindBuf CIDLib_FileSys2.Hpp
This class represents the information available in the directory structure for each file or directory. You get these by using a TFileSys object to search a directory or by using a TDirIter object to iterate a directory. It contains info like the file create time, basic attributes, file name, etc...
TFloat CIDLib_Numeric.Hpp
TFloat encapsulates an 8 byte floating point value. See the TCardinal class above for details.
TFRGBClr CIDLib_Color.Hpp
This is the floating point cousin of TRGBClr. This version uses floating point color component values from 0.0 to 1.0, and also supports another floating point value for opacity. This kind of color object is used by the ray tracer which needs to deal with very fine gradations of color and to do high precision interpolations between colors.
TGateSem CIDLib_Semaphore.Hpp
This is an event semaphore, called a gate semaphore in the CIDLib world. I think that a gate is a more apt metaphor for its semantics. The owner of the gate opens it to let go any threads that are waiting to get in the gate. Its an edge triggered semaphore so any waiters don't have to wake up before its relocked. Once its opened, any current waiters are allowed in. It supports both named and unnamed semaphores.
THeapBuf CIDLib_Memory.Hpp
This is a derivative of TMemBuf which deals with heap based memory. Use of memory buffer objects is VERY much suggested over raw memory buffers. They are much safer in the presence of exceptions. In general, the less any sort of memory buffer is used out in the open should be minimized as a rule. The buffer referenced by the object is destroyed when the buffer object is deleted. Its not reference counted at this time but will be soon!
TInteger CIDLib_Numeric.Hpp
This class represents a 32 bit integral value. See the TCardinal class above for details of the uses of this class.
TJanitor CIDLib_Janitor.Hpp
A very small but very powerful class. Janitor objects clean up other objects, often obviating the need for try/catch blocks. Perhaps I should call the class TSanitationEngineer in a quest for more political correctness?
TLinkedList CIDLib_LinkedList.Hpp
This is one of the concrete collection classes, upon which most of the other abstract collections are based. Its a doubly linked list.
TLLstNode CIDLib_LinkedList.Hpp
This is the abstract base class that represents a node in a TLinkedlist object. Each abstract collection creates a small derivative of this node class that serves its particular needs. The linked list object just deals with them all via this abstract class.
TLocker CIDLib_Lock.Hpp
This is a specialized janitor class for locks. This object will take a pointer to any class that has mixed in the MCIDLockable class, lock the object, and store the pointer. When the locker object destructs it will unlock the object. This provides an exception safe mechanism for locking things. Very powerful and convenient, mon.
TMemoryStreamImpl CIDLib_MemoryStreamImpl.Hpp
Streams don't know where their data comes from or goes to. They are implemented in terms of an abstract data sink/source, TStreamImpl. This is a concrete derivative of the stream implementation class, which streams to and from a derivative of the TMemBuf class.
TMemBuf CIDLib_Memory.Hpp
This is the base memory buffer class, from which all of the others are derived. It does not know how the buffer gets created or cleaned up. Its just given a pointer and a size and understands how to provide all of the convenient buffer operations to the calling code, to operate on the buffer. See the THeapBuf, TSysBuf, and TSharedBuf classes.
TMetricGroup CIDLib_Metrics.Hpp
This class represents a metrics group. It provides access to the individual metrics in that group, providing convient, self documenting methods for accessing each type of metric.
TMetricSystem CIDLib_Metrics.Hpp
Objects of this class represent the metrics system and allow subsystems to register new metrics groups for the process. Just create these objects when needed, since they have very low overhead. The whole metrics system is thread safe by nature.
TMtxLock CIDLib_SimpleLock_.Hpp
This is mainly for internal use, and provides janitorial services for raw OS/2 mutex semaphores (see the TLocker class above for details.) Its made public in case it is of use, which it might be in some cases where a new encapsulation facility is being created. In the CIDLib world proper though, raw semaphores should not be being used.
TMutexSem CIDLib_Semaphore.Hpp
This class represents a mutual exclusion semaphore. It is counting on the same thread, and supports named and unnamed semaphores.
TPathStr CIDLib_PathStr.Hpp
This is a smart string derivative that understands how to manipulate its content as a path string. This class is very convenient and powerful and will save you massive effort.
TPoint CIDLib_Point.Hpp
This is a point in a 2D space of integral coordinates. Its tightly wed to the TArea class, the two of which are very much used by the windowing system and the 2D graphics system.
TProcessRegistry CIDLib_ProcessRegistry.Hpp
Objects of this type represent the process registry system, which allows CIDLib apps to find each other by name. Its also used by the metrics viewer program to find out what CIDLib applications are running.
TRange CIDLib_Range.Hpp
Objects of this class repesent a value within a range, with an optional 'visible elements' attribute. For instance, a scroll bar is a visual widget that exactly represents this type of concept (and by no accident uses a TRange object to do its dirty work.) It can be the basis for any number of graphical widgets.
TRegProcessInfo CIDLib_ProcessRegistry.Hpp
Objects of this type represent the information available about a running CIDLib application, via the CIDLib process registry. See the TProcessRegistry class above for details.
TRGBClr CIDLib_Color.Hpp
This is a standard, RGB color with integral color values from 0 to 255. This type of color is directly supported by the video hardware that CIDLib uses, i.e. all true color hardware.
TSemaphore CIDLib_Semaphore.Hpp
This is the abstract base class from which the other sempahores are derived. this may go away in a future version because the only thing in common is the name (if named) and the shared state. If this hierarchy is refactored in the future (and it probably will be) then it might not be worth it.
TSharedBuf CIDLib_Memory.Hpp
This is a derivative of the TMemBuf class that handles shared memory buffers. They can be named or unnamed.
TSize CIDLib_Size.Hpp
This class represents an unsigned size in a 2 dimensional coordinate space. It has two TCard4 fields that hold a size in the X and Y directions.
TStatusController CIDLib_StatusController.Hpp
This is an abstract class that encapsulates the protocol between a contolling and controlled thread. Many programs have a relatively simple protocol to control a background thread doing some work. Derivatives of this class handle specific styles of interactions, allowing a canned controller to often be used.
TStatusControllerTTY CIDLib_StatusControllerTTY.Hpp
A derivative of TStatusController. This class is for simple TTY programs that want to kick off a background thread, let it in/output on a given text stream, and wait for it to complete. Some of the demo programs, such as some of the fractal demos, use this technique to very simply work with a background thread.
TStream CIDLib_Stream.Hpp
A very magical class, TStream is the abstract base class for all of the streaming classes. Streams are very abstract data sink/source mechanism that are used extensively in most object oriented systems. CIDLib is not an exception in this respect. TStream is abstract and not used directly. Its job is to manage an object derived from TStreamImpl, which provides the data sink/source for this stream. So the stream has no idea where the data is coming from or going to.
TStreamParser CIDLib_StreamParser.Hpp
One of the many things done with streams is to read in a stream of text and parse it. This class very much assists with stream parsing and is used to very good effect by the ray tracer for instance, to parse scene description files. You just tell it about your keywords and syntax tokens and it will help you in the parsing. Usually a subclass is created for any particular file format, which creates a canned parser class that is very easy to use.
TString CIDLib_String.Hpp
This is the base string class from which all other strings are derived. It has a maximum buffer size that it can grow to and can optionally be told to cause an exception if any operationg would overflow its buffer. It is given an initial buffer size and will grow it as needed to the max size. This is a very full featured string class and provides many operations that will ease your work and make it safer.
TStringStream CIDLib_StringStream.Hpp
Streaming to a string in text mode is done so often that this specialized derivative of TTextStream is provided. It is a text mode stream that uses a TStringStreamImpl object as the data sink/source. It can either create the stream for you or use a string you provide (which can optionally adopt from you.)
TStringStreamImpl CIDLib_StingStreamImpl.Hpp
Streams don't know where their data comes from or goes to. They are implemented in terms of an abstract data sink/source, TStreamImpl. This is a concrete derivative of the stream implementation class, which streams to and from a derivative of the TString class.
TSysbuf CIDLib_Memory.Hpp
This is a derivative of TMemBuf that deals with unshared system memory based buffers. Buffers of this type are always actually allocated in multiples of the underlying system's page size.
TTextStream CIDLib_TextStream.Hpp
This is a text stream. It provide both input and output support for line and character oriented TTY operations. It is a derivative of TStream. Like all streams, it does not know where the data comes from or goes to because it uses a derivative of the TStreamImpl class as a data sink/source. Streamed out object and fundamental values are converted to text and then written to the stream (as apposed to a binary stream that writes their flattened binary form.)
TThread CIDLib_Process.Hpp
Objects of this class represent threads of excecution in the process. Each CIDLib program has a main thread object that it tells CIDLib to kick off as its main thread. This thread can then kick off other threads as needed. In some of the more advanced document frameworks, the main thread creation is often hidden away. This type of thread is not GUI aware.
TTime CIDLib_DateTime.Hpp
Objects of this type reprsent a time within some day. It understands how to format itself in a number of standard ways and to do time arithmetic.


CIDCorp
Dean Roddey
Internet: droddey@ng.netgate.net
CIS: 72170,1614