Salome HOME
Use fillAttribute in *API interfaces
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.h
1 // Name   : ModelHighAPI_Tools.h
2 // Purpose: 
3 //
4 // History:
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
6
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
9
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
12
13 #include <list>
14 #include <memory>
15 #include <string>
16 //--------------------------------------------------------------------------------------
17 class ModelAPI_AttributeBoolean;
18 class ModelAPI_AttributeDocRef;
19 class ModelAPI_AttributeDouble;
20 class ModelAPI_AttributeIntArray;
21 class ModelAPI_AttributeInteger;
22 class ModelAPI_AttributeRefAttr;
23 class ModelAPI_AttributeRefAttrList;
24 class ModelAPI_AttributeReference;
25 class ModelAPI_AttributeRefList;
26 class ModelAPI_AttributeSelection;
27 class ModelAPI_AttributeSelectionList;
28 class ModelAPI_AttributeString;
29 //--------------------------------------------------------------------------------------
30 class ModelHighAPI_Double;
31 class ModelHighAPI_Selection;
32 //--------------------------------------------------------------------------------------
33 MODELHIGHAPI_EXPORT
34 void fillAttribute(const ModelHighAPI_Double & theValue,
35                    const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
36
37 MODELHIGHAPI_EXPORT
38 void fillAttribute(const ModelHighAPI_Selection & theValue,
39                    const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
40
41 MODELHIGHAPI_EXPORT
42 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
43                    const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
44
45 MODELHIGHAPI_EXPORT
46 void fillAttribute(const std::string & theValue,
47                    const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
48
49 //--------------------------------------------------------------------------------------
50 //--------------------------------------------------------------------------------------
51 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_ */