Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_Attributes.hxx
1 //  File   : SALOMEDS_Attributes.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef __SALOMEDS_ATTRIBUTES__H__
6 #define __SALOMEDS_ATTRIBUTES__H__
7
8 #include "SALOMEDSImpl_GenericAttribute.hxx"
9 #include "SALOMEDSImpl_AttributeName.hxx"
10 #include "SALOMEDSImpl_AttributeComment.hxx"
11 #include "SALOMEDSImpl_AttributeInteger.hxx"
12 #include "SALOMEDSImpl_AttributeReal.hxx"
13 #include "SALOMEDSImpl_AttributeTreeNode.hxx"
14 #include "SALOMEDSImpl_AttributeUserID.hxx"
15 #include "SALOMEDSImpl_AttributeReference.hxx"
16 #include "SALOMEDSImpl_AttributeSequenceOfReal.hxx"
17 #include "SALOMEDSImpl_AttributeSequenceOfInteger.hxx" 
18 #include "SALOMEDSImpl_AttributeIOR.hxx"
19 #include "SALOMEDSImpl_AttributePersistentRef.hxx" 
20 #include "SALOMEDSImpl_AttributeDrawable.hxx"
21 #include "SALOMEDSImpl_AttributeSelectable.hxx"
22 #include "SALOMEDSImpl_AttributeExpandable.hxx"
23 #include "SALOMEDSImpl_AttributeOpened.hxx"
24 #include "SALOMEDSImpl_AttributeTextColor.hxx"
25 #include "SALOMEDSImpl_AttributeTextHighlightColor.hxx"
26 #include "SALOMEDSImpl_AttributePixMap.hxx"
27 #include "SALOMEDSImpl_AttributeLocalID.hxx"
28 #include "SALOMEDSImpl_AttributeTarget.hxx"
29 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
30 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
31 #include "SALOMEDSImpl_AttributeTableOfString.hxx"
32 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
33 #include "SALOMEDSImpl_AttributePythonObject.hxx"
34 #include "SALOMEDSImpl_AttributeExternalFileDef.hxx"
35 #include "SALOMEDSImpl_AttributeFileType.hxx"
36 #include "SALOMEDSImpl_AttributeFlags.hxx"
37 #include "SALOMEDSImpl_AttributeGraphic.hxx"
38
39 #include "SALOMEDS_GenericAttribute_i.hxx"
40 #include "SALOMEDS_AttributeName_i.hxx"
41 #include "SALOMEDS_AttributeComment_i.hxx"
42 #include "SALOMEDS_AttributeInteger_i.hxx"
43 #include "SALOMEDS_AttributeReal_i.hxx"
44 #include "SALOMEDS_AttributeTreeNode_i.hxx"
45 #include "SALOMEDS_AttributeUserID_i.hxx"
46 #include "SALOMEDS_AttributeSequenceOfReal_i.hxx"
47 #include "SALOMEDS_AttributeSequenceOfInteger_i.hxx" 
48 #include "SALOMEDS_AttributeIOR_i.hxx"
49 #include "SALOMEDS_AttributePersistentRef_i.hxx" 
50 #include "SALOMEDS_AttributeDrawable_i.hxx"
51 #include "SALOMEDS_AttributeSelectable_i.hxx"
52 #include "SALOMEDS_AttributeExpandable_i.hxx"
53 #include "SALOMEDS_AttributeOpened_i.hxx"
54 #include "SALOMEDS_AttributeTextColor_i.hxx"
55 #include "SALOMEDS_AttributeTextHighlightColor_i.hxx"
56 #include "SALOMEDS_AttributePixMap_i.hxx"
57 #include "SALOMEDS_AttributeLocalID_i.hxx"
58 #include "SALOMEDS_AttributeTarget_i.hxx"
59 #include "SALOMEDS_AttributeTableOfInteger_i.hxx"
60 #include "SALOMEDS_AttributeTableOfReal_i.hxx"
61 #include "SALOMEDS_AttributeTableOfString_i.hxx"
62 #include "SALOMEDS_AttributeStudyProperties_i.hxx"
63 #include "SALOMEDS_AttributePythonObject_i.hxx"
64 #include "SALOMEDS_AttributeExternalFileDef_i.hxx"
65 #include "SALOMEDS_AttributeFileType_i.hxx"
66 #include "SALOMEDS_AttributeFlags_i.hxx"
67 #include "SALOMEDS_AttributeGraphic_i.hxx"
68
69 #define __CreateCORBAAttribute(CORBA_Name) if (strcmp(aTypeOfAttribute, #CORBA_Name) == 0) { \
70     Handle(SALOMEDSImpl_##CORBA_Name) A = Handle(SALOMEDSImpl_##CORBA_Name)::DownCast(theAttr); \
71     SALOMEDS_##CORBA_Name##_i* Attr = new SALOMEDS_##CORBA_Name##_i(A, theOrb); \
72     attr_servant = Attr; \
73     anAttribute = Attr->CORBA_Name::_this(); \
74   }
75
76
77 #define __CreateGenericCORBAAttribute \
78 __CreateCORBAAttribute(AttributeReal) \
79 __CreateCORBAAttribute(AttributeInteger) \
80 __CreateCORBAAttribute(AttributeSequenceOfReal) \
81 __CreateCORBAAttribute(AttributeSequenceOfInteger) \
82 __CreateCORBAAttribute(AttributeName) \
83 __CreateCORBAAttribute(AttributeComment) \
84 __CreateCORBAAttribute(AttributeIOR) \
85 __CreateCORBAAttribute(AttributePixMap) \
86 __CreateCORBAAttribute(AttributeLocalID) \
87 __CreateCORBAAttribute(AttributeTableOfInteger) \
88 __CreateCORBAAttribute(AttributeTableOfReal) \
89 __CreateCORBAAttribute(AttributeTableOfString) \
90 __CreateCORBAAttribute(AttributePythonObject) \
91 __CreateCORBAAttribute(AttributePersistentRef) \
92 __CreateCORBAAttribute(AttributeDrawable) \
93 __CreateCORBAAttribute(AttributeSelectable) \
94 __CreateCORBAAttribute(AttributeExpandable) \
95 __CreateCORBAAttribute(AttributeOpened) \
96 __CreateCORBAAttribute(AttributeTextColor) \
97 __CreateCORBAAttribute(AttributeTextHighlightColor) \
98 __CreateCORBAAttribute(AttributeTarget) \
99 __CreateCORBAAttribute(AttributeStudyProperties) \
100 __CreateCORBAAttribute(AttributeExternalFileDef) \
101 __CreateCORBAAttribute(AttributeFileType) \
102 __CreateCORBAAttribute(AttributeFlags) \
103 __CreateCORBAAttribute(AttributeGraphic) \
104 __CreateCORBAAttribute(AttributeTreeNode) \
105 __CreateCORBAAttribute(AttributeUserID)
106
107 #endif