20 #ifndef Model_Application_H_
21 #define Model_Application_H_
23 #include <Model_Document.h>
24 #include <TDocStd_Application.hxx>
51 MODEL_EXPORT std::shared_ptr<Model_Document> document(
const int theDocID);
53 MODEL_EXPORT
bool hasDocument(
const int theDocID);
55 MODEL_EXPORT
bool hasRoot();
57 MODEL_EXPORT std::shared_ptr<Model_Document> rootDocument();
59 MODEL_EXPORT
void deleteDocument(
const int theDocID);
61 MODEL_EXPORT
void deleteAllDocuments();
64 MODEL_EXPORT
void createDocument(
const int theDocID);
69 MODEL_EXPORT
bool loadDocument(
const std::wstring theDocName,
const int theDocID);
72 void setLoadPath(std::string thePath);
74 const std::string& loadPath()
const;
76 void setLoadByDemand(std::wstring theID,
const int theDocID);
78 bool isLoadByDemand(std::wstring theID,
const int theDocIndex);
81 int generateDocumentId();
86 Standard_CString ResourcesName();
89 virtual void Formats(TColStd_SequenceOfExtendedString& theFormats);
97 std::map<int, std::shared_ptr<Model_Document> > myDocs;
101 std::map<std::wstring, int> myLoadedByDemand;
Realization of Open CASCADE application abstraction.
Definition: Model_Application.h:38
DEFINE_STANDARD_RTTIEXT(Model_Application, TDocStd_Application) MODEL_EXPORT static HandleggetApplication()
Definition of "Handles" usage.