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