Back to index

salome-kernel  6.5.0
SALOMEDS_ClientAttributes.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 __SALOMEDSCLIENT_ATTRIBUTES__H__
00028 #define __SALOMEDSCLIENT_ATTRIBUTES__H__
00029 
00030 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00031 
00032 #include "SALOMEDSImpl_GenericAttribute.hxx"
00033 #include "SALOMEDSImpl_AttributeName.hxx"
00034 #include "SALOMEDSImpl_AttributeComment.hxx"
00035 #include "SALOMEDSImpl_AttributeInteger.hxx"
00036 #include "SALOMEDSImpl_AttributeReal.hxx"
00037 #include "SALOMEDSImpl_AttributeTreeNode.hxx"
00038 #include "SALOMEDSImpl_AttributeUserID.hxx"
00039 #include "SALOMEDSImpl_AttributeSequenceOfReal.hxx"
00040 #include "SALOMEDSImpl_AttributeSequenceOfInteger.hxx" 
00041 #include "SALOMEDSImpl_AttributeIOR.hxx"
00042 #include "SALOMEDSImpl_AttributePersistentRef.hxx" 
00043 #include "SALOMEDSImpl_AttributeDrawable.hxx"
00044 #include "SALOMEDSImpl_AttributeSelectable.hxx"
00045 #include "SALOMEDSImpl_AttributeExpandable.hxx"
00046 #include "SALOMEDSImpl_AttributeOpened.hxx"
00047 #include "SALOMEDSImpl_AttributeTextColor.hxx"
00048 #include "SALOMEDSImpl_AttributeTextHighlightColor.hxx"
00049 #include "SALOMEDSImpl_AttributePixMap.hxx"
00050 #include "SALOMEDSImpl_AttributeLocalID.hxx"
00051 #include "SALOMEDSImpl_AttributeTarget.hxx"
00052 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
00053 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
00054 #include "SALOMEDSImpl_AttributeTableOfString.hxx"
00055 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
00056 #include "SALOMEDSImpl_AttributePythonObject.hxx"
00057 #include "SALOMEDSImpl_AttributeExternalFileDef.hxx"
00058 #include "SALOMEDSImpl_AttributeFileType.hxx"
00059 #include "SALOMEDSImpl_AttributeFlags.hxx"
00060 #include "SALOMEDSImpl_AttributeGraphic.hxx"
00061 #include "SALOMEDSImpl_AttributeParameter.hxx"
00062 #include "SALOMEDSImpl_AttributeString.hxx"
00063 
00064 #include "SALOMEDS_GenericAttribute.hxx"
00065 #include "SALOMEDS_AttributeName.hxx"
00066 #include "SALOMEDS_AttributeComment.hxx"
00067 #include "SALOMEDS_AttributeInteger.hxx"
00068 #include "SALOMEDS_AttributeReal.hxx"
00069 #include "SALOMEDS_AttributeTreeNode.hxx"
00070 #include "SALOMEDS_AttributeUserID.hxx"
00071 #include "SALOMEDS_AttributeSequenceOfReal.hxx"
00072 #include "SALOMEDS_AttributeSequenceOfInteger.hxx" 
00073 #include "SALOMEDS_AttributeIOR.hxx"
00074 #include "SALOMEDS_AttributePersistentRef.hxx" 
00075 #include "SALOMEDS_AttributeDrawable.hxx"
00076 #include "SALOMEDS_AttributeSelectable.hxx"
00077 #include "SALOMEDS_AttributeExpandable.hxx"
00078 #include "SALOMEDS_AttributeOpened.hxx"
00079 #include "SALOMEDS_AttributeTextColor.hxx"
00080 #include "SALOMEDS_AttributeTextHighlightColor.hxx"
00081 #include "SALOMEDS_AttributePixMap.hxx"
00082 #include "SALOMEDS_AttributeLocalID.hxx"
00083 #include "SALOMEDS_AttributeTarget.hxx"
00084 #include "SALOMEDS_AttributeTableOfInteger.hxx"
00085 #include "SALOMEDS_AttributeTableOfReal.hxx"
00086 #include "SALOMEDS_AttributeTableOfString.hxx"
00087 #include "SALOMEDS_AttributeStudyProperties.hxx"
00088 #include "SALOMEDS_AttributePythonObject.hxx"
00089 #include "SALOMEDS_AttributeExternalFileDef.hxx"
00090 #include "SALOMEDS_AttributeFileType.hxx"
00091 #include "SALOMEDS_AttributeFlags.hxx"
00092 #include "SALOMEDS_AttributeGraphic.hxx"
00093 #include "SALOMEDS_AttributeParameter.hxx"
00094 #include "SALOMEDS_AttributeString.hxx"
00095 
00096 #define __CreateClientAttributeLocal(CORBA_Name) if (strcmp(aTypeOfAttribute.c_str(), #CORBA_Name) == 0) { \
00097     SALOMEDSImpl_##CORBA_Name* A = dynamic_cast<SALOMEDSImpl_##CORBA_Name*>(theGA); \
00098     aGA = new SALOMEDS_##CORBA_Name(A); \
00099   }
00100 
00101 #define __CreateClientAttributeCORBA(CORBA_Name) if (strcmp(aTypeOfAttribute.c_str(), #CORBA_Name) == 0) { \
00102     SALOMEDS::CORBA_Name##_var A = SALOMEDS::CORBA_Name::_narrow(theGA); \
00103     aGA = new SALOMEDS_##CORBA_Name(A); \
00104   }
00105 
00106 #define __CreateGenericClientAttributeLocal \
00107 __CreateClientAttributeLocal(AttributeReal) \
00108 __CreateClientAttributeLocal(AttributeInteger) \
00109 __CreateClientAttributeLocal(AttributeSequenceOfReal) \
00110 __CreateClientAttributeLocal(AttributeSequenceOfInteger) \
00111 __CreateClientAttributeLocal(AttributeName) \
00112 __CreateClientAttributeLocal(AttributeComment) \
00113 __CreateClientAttributeLocal(AttributeIOR) \
00114 __CreateClientAttributeLocal(AttributePixMap) \
00115 __CreateClientAttributeLocal(AttributeLocalID) \
00116 __CreateClientAttributeLocal(AttributeTableOfInteger) \
00117 __CreateClientAttributeLocal(AttributeTableOfReal) \
00118 __CreateClientAttributeLocal(AttributeTableOfString) \
00119 __CreateClientAttributeLocal(AttributePythonObject) \
00120 __CreateClientAttributeLocal(AttributePersistentRef) \
00121 __CreateClientAttributeLocal(AttributeDrawable) \
00122 __CreateClientAttributeLocal(AttributeSelectable) \
00123 __CreateClientAttributeLocal(AttributeExpandable) \
00124 __CreateClientAttributeLocal(AttributeOpened) \
00125 __CreateClientAttributeLocal(AttributeTextColor) \
00126 __CreateClientAttributeLocal(AttributeTextHighlightColor) \
00127 __CreateClientAttributeLocal(AttributeTarget) \
00128 __CreateClientAttributeLocal(AttributeStudyProperties) \
00129 __CreateClientAttributeLocal(AttributeExternalFileDef) \
00130 __CreateClientAttributeLocal(AttributeFileType) \
00131 __CreateClientAttributeLocal(AttributeFlags) \
00132 __CreateClientAttributeLocal(AttributeGraphic) \
00133 __CreateClientAttributeLocal(AttributeTreeNode) \
00134 __CreateClientAttributeLocal(AttributeUserID) \
00135 __CreateClientAttributeLocal(AttributeParameter) \
00136 __CreateClientAttributeLocal(AttributeString)
00137 
00138 #define __CreateGenericClientAttributeCORBA \
00139 __CreateClientAttributeCORBA(AttributeReal) \
00140 __CreateClientAttributeCORBA(AttributeInteger) \
00141 __CreateClientAttributeCORBA(AttributeSequenceOfReal) \
00142 __CreateClientAttributeCORBA(AttributeSequenceOfInteger) \
00143 __CreateClientAttributeCORBA(AttributeName) \
00144 __CreateClientAttributeCORBA(AttributeComment) \
00145 __CreateClientAttributeCORBA(AttributeIOR) \
00146 __CreateClientAttributeCORBA(AttributePixMap) \
00147 __CreateClientAttributeCORBA(AttributeLocalID) \
00148 __CreateClientAttributeCORBA(AttributeTableOfInteger) \
00149 __CreateClientAttributeCORBA(AttributeTableOfReal) \
00150 __CreateClientAttributeCORBA(AttributeTableOfString) \
00151 __CreateClientAttributeCORBA(AttributePythonObject) \
00152 __CreateClientAttributeCORBA(AttributePersistentRef) \
00153 __CreateClientAttributeCORBA(AttributeDrawable) \
00154 __CreateClientAttributeCORBA(AttributeSelectable) \
00155 __CreateClientAttributeCORBA(AttributeExpandable) \
00156 __CreateClientAttributeCORBA(AttributeOpened) \
00157 __CreateClientAttributeCORBA(AttributeTextColor) \
00158 __CreateClientAttributeCORBA(AttributeTextHighlightColor) \
00159 __CreateClientAttributeCORBA(AttributeTarget) \
00160 __CreateClientAttributeCORBA(AttributeStudyProperties) \
00161 __CreateClientAttributeCORBA(AttributeExternalFileDef) \
00162 __CreateClientAttributeCORBA(AttributeFileType) \
00163 __CreateClientAttributeCORBA(AttributeFlags) \
00164 __CreateClientAttributeCORBA(AttributeGraphic) \
00165 __CreateClientAttributeCORBA(AttributeTreeNode) \
00166 __CreateClientAttributeCORBA(AttributeUserID) \
00167 __CreateClientAttributeCORBA(AttributeParameter) \
00168 __CreateClientAttributeCORBA(AttributeString)
00169 
00170 #endif