CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef _DAI_REPOSITORY_H
25 #define _DAI_REPOSITORY_H
37 #define REPOSITORY_DEFAULE_MODEL_NAME "default"
44 class OdHeaderSection;
217 #endif // _DAI_REPOSITORY_H
ODRX_DECLARE_MEMBERS(Repository)
ModelPtr getModelRW(ModelPtr &modelPtr)
GLuint const GLchar * name
ModelPtr getModelRW(const OdAnsiString &modelName=REPOSITORY_DEFAULE_MODEL_NAME)
const OdArray< ModelPtr > & models() const
void name(const OdString &name)
OdArray< SchemaPtr > m_schemas
ModelPtr createModel(const OdAnsiString &name, const SchemaPtr schema)
OdDAIHostAppServicesBase * m_svcs
OdHeaderSectionPtr m_pHeaderSection
OdArray< ModelPtr > m_models
ModelPtr createModel(const OdAnsiString &name, const OdAnsiString &schemaName)
void deleteModel(ModelPtr &model)
void setAppServices(OdDAIHostAppServicesBase *svcs)
const ModelPtr getModel(const OdAnsiString &modelName=REPOSITORY_DEFAULE_MODEL_NAME) const
bool setModelAccessMode(ModelPtr &modelToSet, SdaiAccessMode accessMode) const
OdSmartPtr< Model > ModelPtr
OdArray< SchemaPtr > schemas()
#define REPOSITORY_DEFAULE_MODEL_NAME
OdResult readStream(OdStreamBufPtr pStream)
SdaiAccessMode getModelAccessMode(const OdAnsiString &modelName=REPOSITORY_DEFAULE_MODEL_NAME) const
static OdHeaderSectionPtr readHeaderSection(OdStreamBufPtr pStream)
OdSmartPtr< Schema > SchemaPtr
OdSmartPtr< OdHeaderSection > OdHeaderSectionPtr
OdHeaderSectionPtr getHeaderSection()
virtual OdResult writeFile(const OdString &filename, bool saveLogFile=false)
const ModelPtr getModel(ModelPtr &modelPtr) const
OdResult readFile(const OdString &fileName)
static OdHeaderSectionPtr readHeaderSection(const OdString &fileName)
OdSmartPtr< Repository > RepositoryPtr