OSGAlgorithmFields.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #ifndef _OSGALGORITHMFIELDS_H_
00052 #define _OSGALGORITHMFIELDS_H_
00053 #ifdef __sgi
00054 #pragma once
00055 #endif
00056
00057 #include "OSGConfig.h"
00058 #include "OSGGroupDef.h"
00059
00060 #include "OSGFieldContainerFields.h"
00061
00062 #include "OSGSFieldAdaptor.h"
00063 #include "OSGMFieldAdaptor.h"
00064
00065
00066 OSG_BEGIN_NAMESPACE
00067
00068 class Algorithm;
00069
00070 #if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles
00072
00073 OSG_GEN_CONTAINERPTR(Algorithm);
00074
00075 #endif
00076
00077 #if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
00078
00080 #if !defined(OSG_DOC_DEV_TRAITS)
00081
00082 #endif
00083
00084 template <>
00085 struct FieldTraits<AlgorithmPtr> :
00086 public FieldTraitsFCPtrBase<AlgorithmPtr>
00087 {
00088 private:
00089
00090 static DataType _type;
00091
00092 public:
00093
00094 typedef FieldTraits<AlgorithmPtr> Self;
00095
00096 enum { Convertible = NotConvertible };
00097
00098 static OSG_GROUP_DLLMAPPING DataType &getType(void);
00099
00100 static const char *getSName(void) { return "SFAlgorithmPtr"; }
00101 static const char *getMName(void) { return "MFAlgorithmPtr"; }
00102 };
00103
00104 #if !defined(OSG_DOC_DEV_TRAITS)
00105
00108 #endif
00109
00110 #endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
00111
00112
00113 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS)
00114
00116 typedef SFieldAdaptor<AlgorithmPtr, SFFieldContainerPtr> SFAlgorithmPtr;
00117 #endif
00118
00119
00120 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS)
00121
00123 typedef MFieldAdaptor<AlgorithmPtr, MFFieldContainerPtr> MFAlgorithmPtr;
00124 #endif
00125
00126
00127 OSG_END_NAMESPACE
00128
00129 #endif