Changeset 8535
- Timestamp:
- 06/07/11 15:31:43 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Options
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Options/Option.h
r7825 r8535 1 1 /*! \file Option.h 2 * \brief: header file for option sobjectabstract object2 * \brief: header file for option abstract object 3 3 */ 4 4 5 #ifndef _OPTION SOBJECT_H_6 #define _OPTION SOBJECT_H_5 #ifndef _OPTIONOBJECT_H_ 6 #define _OPTIONOBJECT_H_ 7 7 8 8 /*Headers:{{{1*/ … … 49 49 virtual void Get(char** pvalue)=0; 50 50 virtual void Get(double** pvalue,int *pnumel)=0; 51 virtual void Get(Options** pvalue)=0; 52 virtual void Get(Options*** pvalue,int *pnumel)=0; 51 53 52 54 }; 53 #endif /* _OPTION SOBJECT_H */55 #endif /* _OPTIONOBJECT_H */ 54 56 -
issm/trunk/src/c/objects/Options/OptionCell.cpp
r8529 r8535 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION OptionCell::Get {{{1*/121 //void* OptionCell::Get(){120 /*FUNCTION OptionCell::Get(Options** pvalue) {{{1*/ 121 void OptionCell::Get(Options** pvalue){ 122 122 123 // ; 124 125 // return; 126 //} 123 /*Assign output pointer*/ 124 *pvalue=this->values; 125 } 127 126 /*}}}*/ -
issm/trunk/src/c/objects/Options/OptionCell.h
r7760 r8535 1 1 /*! \file OptionCell.h 2 * \brief: header file for option scell object2 * \brief: header file for optioncell object 3 3 */ 4 4 5 #ifndef _OPTION SCELL_H_6 #define _OPTION SCELL_H_5 #ifndef _OPTIONCELL_H_ 6 #define _OPTIONCELL_H_ 7 7 8 8 /*Headers:{{{1*/ … … 46 46 void Get(char** pvalue){ _error_("An OptionCell object cannot return a string");}; 47 47 void Get(double** pvalue,int *pnumel){ _error_("An OptionCell object cannot return a double vec");}; 48 void Get(Options** pvalue); 49 void Get(Options*** pvalue,int *pnumel){ _error_("An OptionCell object cannot return an Options DataSet vec");}; 48 50 49 51 }; 50 #endif /* _OPTION SCELL_H */52 #endif /* _OPTIONCELL_H */ 51 53 -
issm/trunk/src/c/objects/Options/OptionChar.h
r7760 r8535 1 1 /*! \file OptionChar.h 2 * \brief: header file for option schar object2 * \brief: header file for optionchar object 3 3 */ 4 4 5 #ifndef _OPTION SCHAR_H_6 #define _OPTION SCHAR_H_5 #ifndef _OPTIONCHAR_H_ 6 #define _OPTIONCHAR_H_ 7 7 8 8 /*Headers:{{{1*/ … … 46 46 void Get(char** pvalue); 47 47 void Get(double** pvalue,int *pnumel){ _error_("An OptionChar object cannot return a double vec");}; 48 void Get(Options** pvalue){ _error_("An OptionChar object cannot return an Options DataSet");}; 49 void Get(Options*** pvalue,int *pnumel){ _error_("An OptionChar object cannot return an Options DataSet vec");}; 48 50 49 51 }; 50 #endif /* _OPTION SCHAR_H */52 #endif /* _OPTIONCHAR_H */ 51 53 -
issm/trunk/src/c/objects/Options/OptionDouble.cpp
r7760 r8535 134 134 void OptionDouble::Get(double** pvalue,int* numel){ 135 135 136 /*We should first check that the size is one*/136 /*We should first check that the size is at least one*/ 137 137 if(this->NumEl()<=0){ 138 138 _error_("option \"%s\" is empty and cannot return a double vector",this->name); -
issm/trunk/src/c/objects/Options/OptionDouble.h
r7760 r8535 1 1 /*! \file OptionDouble.h 2 * \brief: header file for option sdouble object2 * \brief: header file for optiondouble object 3 3 */ 4 4 5 #ifndef _OPTION SDOUBLE_H_6 #define _OPTION SDOUBLE_H_5 #ifndef _OPTIONDOUBLE_H_ 6 #define _OPTIONDOUBLE_H_ 7 7 8 8 /*Headers:{{{1*/ … … 46 46 void Get(char** pvalue){ _error_("An OptionDouble object cannot return a string");}; 47 47 void Get(double** pvalue,int* pnumel); 48 void Get(Options** pvalue){ _error_("An OptionDouble object cannot return an Options DataSet");}; 49 void Get(Options*** pvalue,int *pnumel){ _error_("An OptionDouble object cannot return an Options DataSet vec");}; 48 50 49 51 }; 50 #endif /* _OPTION SDOUBLE_H */52 #endif /* _OPTIONDOUBLE_H */ 51 53 -
issm/trunk/src/c/objects/Options/OptionLogical.h
r7760 r8535 1 1 /*! \file OptionLogical.h 2 * \brief: header file for option slogical object2 * \brief: header file for optionlogical object 3 3 */ 4 4 5 #ifndef _OPTION SLOGICAL_H_6 #define _OPTION SLOGICAL_H_5 #ifndef _OPTIONLOGICAL_H_ 6 #define _OPTIONLOGICAL_H_ 7 7 8 8 /*Headers:{{{1*/ … … 46 46 void Get(char** pvalue){ _error_("An OptionLogical object cannot return a string");}; 47 47 void Get(double** pvalue,int *pnumel){ _error_("An OptionLogical object cannot return a double vec");}; 48 void Get(Options** pvalue){ _error_("An OptionLogical object cannot return an Options DataSet");}; 49 void Get(Options*** pvalue,int *pnumel){ _error_("An OptionLogical object cannot return an Options DataSet vec");}; 48 50 49 51 }; 50 #endif /* _OPTION SLOGICAL_H */52 #endif /* _OPTIONLOGICAL_H */ 51 53 -
issm/trunk/src/c/objects/Options/OptionStruct.cpp
r8529 r8535 126 126 } 127 127 /*}}}*/ 128 /*FUNCTION OptionStruct::Get {{{1*/129 //void* OptionStruct::Get(){128 /*FUNCTION OptionStruct::Get(Options** pvalue) {{{1*/ 129 void OptionStruct::Get(Options** pvalue){ 130 130 131 // ; 131 /*We should first check that the size is one*/ 132 if(this->NumEl()!=1){ 133 _error_("option \"%s\" has %i elements and cannot return a single options dataset",this->name,this->NumEl()); 134 } 132 135 133 // return; 134 //} 136 /*Assign output pointer*/ 137 *pvalue=this->values[0]; 138 } 135 139 /*}}}*/ 140 /*FUNCTION OptionStruct::Get(Options*** pvalue,int* numel) {{{1*/ 141 void OptionStruct::Get(Options*** pvalue,int* numel){ 142 143 /*We should first check that the size is at least one*/ 144 if(this->NumEl()<=0){ 145 _error_("option \"%s\" is empty and cannot return an options dataset vector",this->name); 146 } 147 148 /*Assign output pointer*/ 149 *pvalue=this->values; 150 if(numel) *numel=this->NumEl(); 151 } 152 /*}}}*/ -
issm/trunk/src/c/objects/Options/OptionStruct.h
r7760 r8535 1 1 /*! \file OptionStruct.h 2 * \brief: header file for options struct object2 * \brief: header file for optionstruct object 3 3 */ 4 4 5 #ifndef _OPTIONS STRUCT_H_6 #define _OPTIONS STRUCT_H_5 #ifndef _OPTIONSTRUCT_H_ 6 #define _OPTIONSTRUCT_H_ 7 7 8 8 /*Headers:{{{1*/ … … 46 46 void Get(char** pvalue){ _error_("An OptionStruct object cannot return a string");}; 47 47 void Get(double** pvalue,int *pnumel){ _error_("An OptionStruct object cannot return a double vec");}; 48 void Get(Options** pvalue); 49 void Get(Options*** pvalue,int *pnumel); 48 50 49 51 }; 50 #endif /* _OPTIONS STRUCT_H */52 #endif /* _OPTIONSTRUCT_H */ 51 53 -
issm/trunk/src/c/objects/Options/OptionUtilities.h
r7739 r8535 1 1 /*! \file OptionUtilities.h 2 * \brief: header file for option sutilities2 * \brief: header file for option object utilities 3 3 */ 4 4 5 #ifndef _OPTION SUTILITIES_H_6 #define _OPTION SUTILITIES_H_5 #ifndef _OPTIONUTILITIES_H_ 6 #define _OPTIONUTILITIES_H_ 7 7 8 8 /*Headers:{{{1*/ … … 21 21 int StringFromSize(char* cstr, int* size, int ndims); 22 22 23 #endif /* _OPTION SUTILITIES_H */23 #endif /* _OPTIONUTILITIES_H */ 24 24
Note:
See TracChangeset
for help on using the changeset viewer.