// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _BinMDF_ADriverTable_HeaderFile #define _BinMDF_ADriverTable_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_BinMDF_ADriverTable_HeaderFile #include #endif #ifndef _BinMDF_TypeADriverMap_HeaderFile #include #endif #ifndef _BinMDF_TypeIdMap_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Handle_BinMDF_ADriver_HeaderFile #include #endif #ifndef _Handle_Standard_Type_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class BinMDF_ADriver; class Standard_Type; class TColStd_IndexedMapOfTransient; class TColStd_SequenceOfAsciiString; //! 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.
class BinMDF_ADriverTable : public MMgt_TShared { public: //! Constructor
Standard_EXPORT BinMDF_ADriverTable(); //! Adds a translation driver .
Standard_EXPORT void AddDriver(const Handle(BinMDF_ADriver)& theDriver) ; //! Assigns the IDs to the drivers of the given Types.
//! It uses indices in the map as IDs.
//! Useful in storage procedure.
Standard_EXPORT void AssignIds(const TColStd_IndexedMapOfTransient& theTypes) ; //! Assigns the IDs to the drivers of the given Type Names;
//! It uses indices in the sequence as IDs.
//! Useful in retrieval procedure.
Standard_EXPORT void AssignIds(const TColStd_SequenceOfAsciiString& theTypeNames) ; //! Gets a driver according to .
//! Returns Type ID if the driver was assigned an ID; 0 otherwise.
Standard_Integer GetDriver(const Handle(Standard_Type)& theType,Handle(BinMDF_ADriver)& theDriver) const; //! Returns a driver according to .
//! Returns null handle if a driver is not found
Handle_BinMDF_ADriver GetDriver(const Standard_Integer theTypeId) const; DEFINE_STANDARD_RTTI(BinMDF_ADriverTable) protected: private: //! Assigns the ID to the driver of the Type
void AssignId(const Handle(Standard_Type)& theType,const Standard_Integer theId) ; BinMDF_TypeADriverMap myMap; BinMDF_TypeIdMap myMapId; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif