Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
BinMDF_ADriverTable Class Reference

A driver table is an object building links between
object types and object drivers. In the
translation process, a driver table is asked to
give a translation driver for each current object
to be translated.

#include <BinMDF_ADriverTable.hxx>

Inheritance diagram for BinMDF_ADriverTable:
Inheritance graph
[legend]

Public Member Functions

 BinMDF_ADriverTable ()
 Constructor

void AddDriver (const Handle< BinMDF_ADriver > &theDriver)
 Adds a translation driver <theDriver>.

void AssignIds (const TColStd_IndexedMapOfTransient &theTypes)
 Assigns the IDs to the drivers of the given Types.
It uses indices in the map as IDs.
Useful in storage procedure.

void AssignIds (const TColStd_SequenceOfAsciiString &theTypeNames)
 Assigns the IDs to the drivers of the given Type Names;
It uses indices in the sequence as IDs.
Useful in retrieval procedure.

Standard_Integer GetDriver (const Handle< Standard_Type > &theType, Handle< BinMDF_ADriver > &theDriver) const
 Gets a driver <theDriver> according to <theType>.
Returns Type ID if the driver was assigned an ID; 0 otherwise.

Handle_BinMDF_ADriver GetDriver (const Standard_Integer theTypeId) const
 Returns a driver according to <theTypeId>.
Returns null handle if a driver is not found


Constructor & Destructor Documentation


Member Function Documentation

Handle_BinMDF_ADriver BinMDF_ADriverTable::GetDriver ( const Standard_Integer  theTypeId) const

The documentation for this class was generated from the following file: