Back to index

salome-kernel  6.5.0
SALOMEDS_Attributes.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SALOMEDS_Attributes.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //
00027 #ifndef __SALOMEDS_ATTRIBUTES__H__
00028 #define __SALOMEDS_ATTRIBUTES__H__
00029 
00030 #include "SALOMEDSImpl_GenericAttribute.hxx"
00031 #include "SALOMEDSImpl_AttributeName.hxx"
00032 #include "SALOMEDSImpl_AttributeComment.hxx"
00033 #include "SALOMEDSImpl_AttributeInteger.hxx"
00034 #include "SALOMEDSImpl_AttributeReal.hxx"
00035 #include "SALOMEDSImpl_AttributeTreeNode.hxx"
00036 #include "SALOMEDSImpl_AttributeUserID.hxx"
00037 #include "SALOMEDSImpl_AttributeReference.hxx"
00038 #include "SALOMEDSImpl_AttributeSequenceOfReal.hxx"
00039 #include "SALOMEDSImpl_AttributeSequenceOfInteger.hxx" 
00040 #include "SALOMEDSImpl_AttributeIOR.hxx"
00041 #include "SALOMEDSImpl_AttributePersistentRef.hxx" 
00042 #include "SALOMEDSImpl_AttributeDrawable.hxx"
00043 #include "SALOMEDSImpl_AttributeSelectable.hxx"
00044 #include "SALOMEDSImpl_AttributeExpandable.hxx"
00045 #include "SALOMEDSImpl_AttributeOpened.hxx"
00046 #include "SALOMEDSImpl_AttributeTextColor.hxx"
00047 #include "SALOMEDSImpl_AttributeTextHighlightColor.hxx"
00048 #include "SALOMEDSImpl_AttributePixMap.hxx"
00049 #include "SALOMEDSImpl_AttributeLocalID.hxx"
00050 #include "SALOMEDSImpl_AttributeTarget.hxx"
00051 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
00052 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
00053 #include "SALOMEDSImpl_AttributeTableOfString.hxx"
00054 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
00055 #include "SALOMEDSImpl_AttributePythonObject.hxx"
00056 #include "SALOMEDSImpl_AttributeExternalFileDef.hxx"
00057 #include "SALOMEDSImpl_AttributeFileType.hxx"
00058 #include "SALOMEDSImpl_AttributeFlags.hxx"
00059 #include "SALOMEDSImpl_AttributeGraphic.hxx"
00060 #include "SALOMEDSImpl_AttributeParameter.hxx"
00061 #include "SALOMEDSImpl_AttributeString.hxx"
00062 
00063 #include "SALOMEDS_GenericAttribute_i.hxx"
00064 #include "SALOMEDS_AttributeName_i.hxx"
00065 #include "SALOMEDS_AttributeComment_i.hxx"
00066 #include "SALOMEDS_AttributeInteger_i.hxx"
00067 #include "SALOMEDS_AttributeReal_i.hxx"
00068 #include "SALOMEDS_AttributeTreeNode_i.hxx"
00069 #include "SALOMEDS_AttributeUserID_i.hxx"
00070 #include "SALOMEDS_AttributeSequenceOfReal_i.hxx"
00071 #include "SALOMEDS_AttributeSequenceOfInteger_i.hxx" 
00072 #include "SALOMEDS_AttributeIOR_i.hxx"
00073 #include "SALOMEDS_AttributePersistentRef_i.hxx" 
00074 #include "SALOMEDS_AttributeDrawable_i.hxx"
00075 #include "SALOMEDS_AttributeSelectable_i.hxx"
00076 #include "SALOMEDS_AttributeExpandable_i.hxx"
00077 #include "SALOMEDS_AttributeOpened_i.hxx"
00078 #include "SALOMEDS_AttributeTextColor_i.hxx"
00079 #include "SALOMEDS_AttributeTextHighlightColor_i.hxx"
00080 #include "SALOMEDS_AttributePixMap_i.hxx"
00081 #include "SALOMEDS_AttributeLocalID_i.hxx"
00082 #include "SALOMEDS_AttributeTarget_i.hxx"
00083 #include "SALOMEDS_AttributeTableOfInteger_i.hxx"
00084 #include "SALOMEDS_AttributeTableOfReal_i.hxx"
00085 #include "SALOMEDS_AttributeTableOfString_i.hxx"
00086 #include "SALOMEDS_AttributeStudyProperties_i.hxx"
00087 #include "SALOMEDS_AttributePythonObject_i.hxx"
00088 #include "SALOMEDS_AttributeExternalFileDef_i.hxx"
00089 #include "SALOMEDS_AttributeFileType_i.hxx"
00090 #include "SALOMEDS_AttributeFlags_i.hxx"
00091 #include "SALOMEDS_AttributeGraphic_i.hxx"
00092 #include "SALOMEDS_AttributeParameter_i.hxx"
00093 #include "SALOMEDS_AttributeString_i.hxx"
00094 
00095 #define __CreateCORBAAttribute(CORBA_Name) else if (strcmp(aTypeOfAttribute, #CORBA_Name) == 0) { \
00096     SALOMEDSImpl_##CORBA_Name* A = dynamic_cast<SALOMEDSImpl_##CORBA_Name*>(theAttr); \
00097     SALOMEDS_##CORBA_Name##_i* Attr = new SALOMEDS_##CORBA_Name##_i(A, theOrb); \
00098     attr_servant = Attr; \
00099     anAttribute = Attr->CORBA_Name::_this(); \
00100   }
00101 
00102 
00103 #define __CreateGenericCORBAAttribute \
00104   if(0){} \
00105 __CreateCORBAAttribute(AttributeReal) \
00106 __CreateCORBAAttribute(AttributeInteger) \
00107 __CreateCORBAAttribute(AttributeSequenceOfReal) \
00108 __CreateCORBAAttribute(AttributeSequenceOfInteger) \
00109 __CreateCORBAAttribute(AttributeName) \
00110 __CreateCORBAAttribute(AttributeComment) \
00111 __CreateCORBAAttribute(AttributeIOR) \
00112 __CreateCORBAAttribute(AttributePixMap) \
00113 __CreateCORBAAttribute(AttributeLocalID) \
00114 __CreateCORBAAttribute(AttributeTableOfInteger) \
00115 __CreateCORBAAttribute(AttributeTableOfReal) \
00116 __CreateCORBAAttribute(AttributeTableOfString) \
00117 __CreateCORBAAttribute(AttributePythonObject) \
00118 __CreateCORBAAttribute(AttributePersistentRef) \
00119 __CreateCORBAAttribute(AttributeDrawable) \
00120 __CreateCORBAAttribute(AttributeSelectable) \
00121 __CreateCORBAAttribute(AttributeExpandable) \
00122 __CreateCORBAAttribute(AttributeOpened) \
00123 __CreateCORBAAttribute(AttributeTextColor) \
00124 __CreateCORBAAttribute(AttributeTextHighlightColor) \
00125 __CreateCORBAAttribute(AttributeTarget) \
00126 __CreateCORBAAttribute(AttributeStudyProperties) \
00127 __CreateCORBAAttribute(AttributeExternalFileDef) \
00128 __CreateCORBAAttribute(AttributeFileType) \
00129 __CreateCORBAAttribute(AttributeFlags) \
00130 __CreateCORBAAttribute(AttributeGraphic) \
00131 __CreateCORBAAttribute(AttributeTreeNode) \
00132 __CreateCORBAAttribute(AttributeUserID) \
00133 __CreateCORBAAttribute(AttributeParameter) \
00134 __CreateCORBAAttribute(AttributeString)
00135 
00136 #endif