- //! Common groups identifiers
- //! Group of parameters
- inline static const std::string& PARAMETERS_GROUP()
- {
- static const std::string MY_PARAMETERS_GROUP = "Parameters";
- return MY_PARAMETERS_GROUP;
- }
- //! Group of constructions
- inline static const std::string& CONSTRUCTIONS_GROUP()
- {
- static const std::string MY_CONSTRUCTIONS_GROUP = "Construction";
- return MY_CONSTRUCTIONS_GROUP;
- }
- //! Group of parts
- inline static const std::string& PARTS_GROUP()
- {
- static const std::string MY_PARTS_GROUP = "Parts";
- return MY_PARTS_GROUP;
- }
- //! All created fetaures of the document (a history)
- inline static const std::string& FEATURES_GROUP()
- {
- static const std::string MY_FEATURES_GROUP = "Features";
- return MY_FEATURES_GROUP;
- }
-
- //! Loads the OCAF document from the file.
- //! \param theFileName full name of the file to load
- //! \param theStudyID identifier of the SALOME study to associate with loaded file
- //! \returns true if file was loaded successfully
- MODELAPI_EXPORT virtual bool load(const char* theFileName) = 0;
-
- //! Saves the OCAF document to the file.
- //! \param theFileName full name of the file to store
- //! \returns true if file was stored successfully
- MODELAPI_EXPORT virtual bool save(const char* theFileName) = 0;
+ //! Returns the kind of the document: "PartSet", "Part", or something else.
+ //! This kind is used for feature buttons enable/disable depending on active document
+ //! (it uses workbench "document" identifier in XML configuration file for this)
+ virtual const std::string& kind() const = 0;