X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_DataModelReader.h;h=7246fddb470f3c1195cc3768f31872476e01dc3d;hb=423c10234142d14d0d5de89383f2f96a4ec5930f;hp=d17f54eaeef01d6dc12b30890fc57c9af9e38015;hpb=94aef9e112998641a9331ff53f2ff56e61f2b540;p=modules%2Fshaper.git diff --git a/src/Config/Config_DataModelReader.h b/src/Config/Config_DataModelReader.h old mode 100644 new mode 100755 index d17f54eae..7246fddb4 --- a/src/Config/Config_DataModelReader.h +++ b/src/Config/Config_DataModelReader.h @@ -27,7 +27,6 @@ class Config_DataModelReader : public Config_XMLReader public: /*! * Constructor - * \param theXmlFile - full path to the xml file which will be processed by the reader */ CONFIG_EXPORT Config_DataModelReader(); CONFIG_EXPORT virtual ~Config_DataModelReader(); @@ -36,8 +35,8 @@ class Config_DataModelReader : public Config_XMLReader /// Returns name of type of tree items in root CONFIG_EXPORT std::string rootType() const { return myRootTypes; } - /// Returns number of folders under root - CONFIG_EXPORT int rootFoldersNumber() const { return myRootFolderNames.size(); } + /// Returns number of folders under root + CONFIG_EXPORT size_t rootFoldersNumber() const { return myRootFolderNames.size(); } /// Returns name of the folder by its Id /// \param theId id of the folder @@ -59,14 +58,17 @@ class Config_DataModelReader : public Config_XMLReader /// \param theId id of the folder CONFIG_EXPORT bool rootShowEmpty(int theId) const { return myRootFolderShowEmpty[theId]; } + /// Returns list of features attached to folder with name theFolderName in sub-document + /// \param theFolderName a name of the folder + CONFIG_EXPORT std::string rootFolderFeatures(const std::string& theFolderName) const; // SUB folders propertiues ******************** /// Returns name of type of tree items in sub document CONFIG_EXPORT std::string subType() const { return mySubTypes; } - /// Returns number of folders under sub document - CONFIG_EXPORT int subFoldersNumber() const { return mySubFolderNames.size(); } + /// Returns number of folders under sub document + CONFIG_EXPORT size_t subFoldersNumber() const { return mySubFolderNames.size(); } /// Returns name of the folder by its Id /// \param theId id of the folder @@ -88,6 +90,11 @@ class Config_DataModelReader : public Config_XMLReader /// \param theType type of objects in folder CONFIG_EXPORT int subFolderId(std::string theType) const; + /// Returns list of features attached to folder with name theFolderName in sub-document + /// \param theFolderName a name of the folder + CONFIG_EXPORT std::string subFolderFeatures(const std::string& theFolderName) const; + + /// Returns true if the sub-document data tree has to be attached to Part Result node /// Otherwise it has to be connected to Part feature node CONFIG_EXPORT bool isAttachToResult() const { return myIsResultLink; } @@ -103,6 +110,7 @@ private: std::vector myRootFolderNames; std::vector myRootFolderTypes; std::vector myRootFolderIcons; + std::vector myRootFeaturesList; std::vector myRootFolderShowEmpty; std::string myRootTypes; @@ -111,6 +119,7 @@ private: std::vector mySubFolderNames; std::vector mySubFolderTypes; std::vector mySubFolderIcons; + std::vector mySubFeaturesList; std::vector mySubFolderShowEmpty; bool myIsResultLink; @@ -118,4 +127,4 @@ private: }; -#endif \ No newline at end of file +#endif