Open CASCADE Technology  7.3.0
Static Public Member Functions

TObj_Assistant Class Reference

This class provides interface to the static data to be used during save or load models. More...

#include <TObj_Assistant.hxx>

Static Public Member Functions

static Handle< TObj_ModelFindModel (const Standard_CString theName)
 Finds model by name. More...
 
static void BindModel (const Handle< TObj_Model > theModel)
 Binds model to the map. More...
 
static void ClearModelMap ()
 Clears all records from the model map. More...
 
static Handle< Standard_TypeFindType (const Standard_Integer theTypeIndex)
 Finds Standard_Type by index; returns NULL handle if not found. More...
 
static Standard_Integer FindTypeIndex (const Handle< Standard_Type > &theType)
 Rinds index by Standard_Type; returns 0 if not found. More...
 
static Standard_Integer BindType (const Handle< Standard_Type > &theType)
 Binds Standard_Type to the map; returns index of bound type. More...
 
static void ClearTypeMap ()
 Clears map of types. More...
 
static void SetCurrentModel (const Handle< TObj_Model > &theModel)
 Sets current model. More...
 
static Handle< TObj_ModelGetCurrentModel ()
 Returns current model. More...
 
static void UnSetCurrentModel ()
 Unsets current model. More...
 
static Standard_Integer GetAppVersion ()
 Returns the version of application which wrote the currently read document. Returns 0 if it has not been set yet for the current document. More...
 

Detailed Description

This class provides interface to the static data to be used during save or load models.

Static data:

  1. DataMap of Modeller name - handle to model to be used in loading of references
  2. Indexed map of Standard_Type to be used during save or load of object type
  3. Handle to the current model - model that is loaded at the current moment

Member Function Documentation

◆ BindModel()

static void TObj_Assistant::BindModel ( const Handle< TObj_Model theModel)
static

Binds model to the map.

◆ BindType()

static Standard_Integer TObj_Assistant::BindType ( const Handle< Standard_Type > &  theType)
static

Binds Standard_Type to the map; returns index of bound type.

◆ ClearModelMap()

static void TObj_Assistant::ClearModelMap ( )
static

Clears all records from the model map.

◆ ClearTypeMap()

static void TObj_Assistant::ClearTypeMap ( )
static

Clears map of types.

◆ FindModel()

static Handle< TObj_Model > TObj_Assistant::FindModel ( const Standard_CString  theName)
static

Finds model by name.

Interface for DataMap of Modeller name

◆ FindType()

static Handle< Standard_Type > TObj_Assistant::FindType ( const Standard_Integer  theTypeIndex)
static

Finds Standard_Type by index; returns NULL handle if not found.

Interface for Map of Standard Types

◆ FindTypeIndex()

static Standard_Integer TObj_Assistant::FindTypeIndex ( const Handle< Standard_Type > &  theType)
static

Rinds index by Standard_Type; returns 0 if not found.

◆ GetAppVersion()

static Standard_Integer TObj_Assistant::GetAppVersion ( )
static

Returns the version of application which wrote the currently read document. Returns 0 if it has not been set yet for the current document.

◆ GetCurrentModel()

static Handle< TObj_Model > TObj_Assistant::GetCurrentModel ( )
static

Returns current model.

◆ SetCurrentModel()

static void TObj_Assistant::SetCurrentModel ( const Handle< TObj_Model > &  theModel)
static

Sets current model.

Interface to the current model

◆ UnSetCurrentModel()

static void TObj_Assistant::UnSetCurrentModel ( )
static

Unsets current model.


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