1 // Name : ModelHighAPI_RefAttr.h
5 // 08/06/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_REFATTR_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_REFATTR_H_
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
16 #include <boost/variant.hpp>
17 //--------------------------------------------------------------------------------------
18 class ModelAPI_Attribute;
19 class ModelAPI_AttributeRefAttr;
20 class ModelAPI_AttributeRefAttrList;
21 class ModelAPI_Object;
22 class ModelHighAPI_Interface;
23 //--------------------------------------------------------------------------------------
24 /**\class ModelHighAPI_RefAttr
26 * \brief Class for filling ModelAPI_AttributeRefAttr
28 class ModelHighAPI_RefAttr
31 /// Default constructor
33 ModelHighAPI_RefAttr();
34 /// Constructor for attribute
36 ModelHighAPI_RefAttr(const std::shared_ptr<ModelAPI_Attribute> & theValue);
37 /// Constructor for object
39 ModelHighAPI_RefAttr(const std::shared_ptr<ModelAPI_Object> & theValue);
40 /// Constructor for Interface (use result() for object)
42 ModelHighAPI_RefAttr(const std::shared_ptr<ModelHighAPI_Interface> & theValue);
45 virtual ~ModelHighAPI_RefAttr();
47 /// Fill attribute values
49 virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute) const;
51 /// Append to list attribute
53 virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute) const;
57 std::shared_ptr<ModelAPI_Attribute>,
58 std::shared_ptr<ModelAPI_Object>
62 //--------------------------------------------------------------------------------------
63 //--------------------------------------------------------------------------------------
64 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_REFATTR_H_ */