Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OPERATION_LAUNCHED event created.
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_Data.h
diff --git
a/src/ModelAPI/ModelAPI_Data.h
b/src/ModelAPI/ModelAPI_Data.h
index 76967d18143f6e50c00374755a0ad13fa5f6f110..5d6e36d5f8e7a9293b47180b3f84a85c3c76be23 100644
(file)
--- a/
src/ModelAPI/ModelAPI_Data.h
+++ b/
src/ModelAPI/ModelAPI_Data.h
@@
-7,6
+7,7
@@
#include "ModelAPI.h"
#include <string>
#include "ModelAPI.h"
#include <string>
+#include <list>
#include <boost/shared_ptr.hpp>
class ModelAPI_AttributeDocRef;
#include <boost/shared_ptr.hpp>
class ModelAPI_AttributeDocRef;
@@
-51,6
+52,10
@@
public:
/// Returns the generic attribute by identifier
/// \param theID identifier of the attribute
virtual boost::shared_ptr<ModelAPI_Attribute> attribute(const std::string theID) = 0;
/// Returns the generic attribute by identifier
/// \param theID identifier of the attribute
virtual boost::shared_ptr<ModelAPI_Attribute> attribute(const std::string theID) = 0;
+ /// Returns all attributes ofthe feature of the given type
+ /// or all attributes if "theType" is empty
+ virtual std::list<boost::shared_ptr<ModelAPI_Attribute> >
+ attributes(const std::string theType) = 0;
/// Identifier by the id (not fast, iteration by map)
/// \param theAttr attribute already created in this data
virtual const std::string& id(const boost::shared_ptr<ModelAPI_Attribute> theAttr) = 0;
/// Identifier by the id (not fast, iteration by map)
/// \param theAttr attribute already created in this data
virtual const std::string& id(const boost::shared_ptr<ModelAPI_Attribute> theAttr) = 0;
@@
-70,6
+75,10
@@
public:
/// \param theAttrType type of the created attribute (received from the type method)
virtual void addAttribute(std::string theID, std::string theAttrType) = 0;
/// \param theAttrType type of the created attribute (received from the type method)
virtual void addAttribute(std::string theID, std::string theAttrType) = 0;
+ /// Useful method for "set" methods of the attributes: sends an UPDATE event and
+ /// makes attribute initialized
+ virtual void sendAttributeUpdated(ModelAPI_Attribute* theAttr) = 0;
+
/// To virtually destroy the fields of successors
virtual ~ModelAPI_Data() {}
/// To virtually destroy the fields of successors
virtual ~ModelAPI_Data() {}