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

This class is a container to record (AddDriver)
binding between GUID and TPrsStd_Driver.
You create a new instance of TPrsStd_Driver
and use the method AddDriver to load it into the driver table. the method

#include <TPrsStd_DriverTable.hxx>

Inheritance diagram for TPrsStd_DriverTable:
Inheritance graph
[legend]

Public Member Functions

 TPrsStd_DriverTable ()
 Default constructor

void InitStandardDrivers ()
 Fills the table with standard drivers

Standard_Boolean AddDriver (const Standard_GUID &guid, const Handle< TPrsStd_Driver > &driver)
 Returns true if the driver has been added successfully to the driver table.

Standard_Boolean FindDriver (const Standard_GUID &guid, Handle< TPrsStd_Driver > &driver) const
 Returns true if the driver was found.

Standard_Boolean RemoveDriver (const Standard_GUID &guid)
 Removes a driver with the given GUID.
Returns true if the driver has been removed successfully.

void Clear ()
 Removes all drivers. Returns
true if the driver has been removed successfully.
If this method is used, the InitStandardDrivers method should be
called to fill the table with standard drivers.

Static Public Member Functions

static Handle_TPrsStd_DriverTable Get ()
 Returns the static table.
If it does not exist, creates it and fills it with standard drivers.


Constructor & Destructor Documentation


Member Function Documentation

static Handle_TPrsStd_DriverTable TPrsStd_DriverTable::Get ( ) [static]

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