4 #include "DF_definitions.hxx"
5 #include "DF_Label.hxx"
11 //Class DF_Document is container for user's data stored as a tree of Labels
12 //with assigned Attributes
16 Standard_EXPORT DF_Document(const std::string& theDocumentType);
18 Standard_EXPORT ~DF_Document();
20 Standard_EXPORT DF_Application* GetApplication();
22 //Returns a Label of this Document with entry "0:1"
23 Standard_EXPORT DF_Label Main();
25 //Returns a root Label with entry "0:"
26 Standard_EXPORT DF_Label Root();
28 //Returns an ID of this
29 Standard_EXPORT int GetDocumentID() const;
31 //Returns a type of the Document
32 Standard_EXPORT std::string GetDocumentType();
34 //Clears the content of this Document
35 Standard_EXPORT void Clear();
37 //Returns true if this document is empty
38 Standard_EXPORT bool IsEmpty();
40 //Returns true if this document is modified
41 Standard_EXPORT bool IsModified();
43 //Returns true if this document is modified
44 Standard_EXPORT void SetModified(bool isModified);
46 //########### Load/Save virtual methods ##
48 //Restores a content of the Document from the std::string theData
49 Standard_EXPORT virtual void Load(const std::string& theData);
51 //Converts a content of the Document into the std::string
52 Standard_EXPORT virtual std::string Save();
54 friend class DF_Application;
62 DF_Application* _appli;