Open CASCADE Technology
6.5.4
|
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>
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. |
Standard_Boolean TPrsStd_DriverTable::AddDriver | ( | const Standard_GUID & | guid, |
const Handle< TPrsStd_Driver > & | driver | ||
) |
Standard_Boolean TPrsStd_DriverTable::FindDriver | ( | const Standard_GUID & | guid, |
Handle< TPrsStd_Driver > & | driver | ||
) | const |
static Handle_TPrsStd_DriverTable TPrsStd_DriverTable::Get | ( | ) | [static] |