-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
static std::string ID() { return ModelAPI_Folder::ID(); }
virtual std::string getID() { return ID(); }
+ const std::shared_ptr<ModelAPI_Folder>& folder() const {return myFolder;}
/// First feature reference
std::shared_ptr<ModelAPI_AttributeReference> firstFeature() const
/// Shortcut for data()->setName()
MODELHIGHAPI_EXPORT
- void setName(const std::string& theName);
+ void setName(const std::wstring& theName);
/// Shortcut for data()->name()
MODELHIGHAPI_EXPORT
- std::string name() const;
+ std::wstring name() const;
+
+ /// To update the folder state
+ /// \param isForce start execution of feature instead of sending events
+ //MODELHIGHAPI_EXPORT void execute();
+
/// Dump wrapped feature
MODELHIGHAPI_EXPORT virtual void dump(ModelHighAPI_Dumper& theDumper) const;
std::shared_ptr<ModelHighAPI_Folder> addFolder(const std::shared_ptr<ModelAPI_Document>& theDoc,
const ModelHighAPI_Reference& theFirstFeature,
const ModelHighAPI_Reference& theLastFeature);
+/**\ingroup CPPHighAPI
+* \brief Removes Folder feature
+*/
+MODELHIGHAPI_EXPORT
+void removeFolder(std::shared_ptr<ModelHighAPI_Folder>& theFolder);
//--------------------------------------------------------------------------------------
#endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_FOLDER_H_ */