Line | |
---|
1 | /*! \file OptionChar.h
|
---|
2 | * \brief: header file for optionchar object
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _OPTIONCHAR_H_
|
---|
6 | #define _OPTIONCHAR_H_
|
---|
7 |
|
---|
8 | /*Headers:{{{*/
|
---|
9 | #include "../../include/include.h"
|
---|
10 | #include "../../shared/Exceptions/exceptions.h"
|
---|
11 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
---|
12 |
|
---|
13 | #include "./Option.h"
|
---|
14 | /*}}}*/
|
---|
15 |
|
---|
16 | class OptionChar: public Option {
|
---|
17 |
|
---|
18 | public:
|
---|
19 |
|
---|
20 | char* values;
|
---|
21 |
|
---|
22 | /*OptionChar constructors, destructors {{{*/
|
---|
23 | OptionChar();
|
---|
24 | ~OptionChar();
|
---|
25 | /*}}}*/
|
---|
26 | /*Object virtual functions definitions:{{{*/
|
---|
27 | void Echo();
|
---|
28 | void DeepEcho();
|
---|
29 | void DeepEcho(char* indent);
|
---|
30 | int Id(){_error2_("Not implemented yet");};
|
---|
31 | int MyRank(){_error2_("Not implemented yet");};
|
---|
32 | int ObjectEnum(){return OptionCharEnum;};
|
---|
33 | Object* copy(){_error2_("Not implemented yet");};
|
---|
34 | /*}}}*/
|
---|
35 |
|
---|
36 | /*virtual functions: */
|
---|
37 | char* Name();
|
---|
38 | int NumEl();
|
---|
39 | int NDims();
|
---|
40 | int* Size();
|
---|
41 | void Get(int* pvalue){_error2_("An OptionChar object cannot return a int");};
|
---|
42 | void Get(IssmDouble* pvalue){_error2_("An OptionChar object cannot return a IssmDouble");};
|
---|
43 | void Get(bool* pvalue){ _error2_("An OptionChar object cannot return a bool");};
|
---|
44 | void Get(char** pvalue);
|
---|
45 | void Get(char*** ppvalue,int *pnumel);
|
---|
46 | void Get(IssmDouble** pvalue,int *pnumel){ _error2_("An OptionChar object cannot return a IssmDouble vec");};
|
---|
47 | void Get(Options** pvalue){ _error2_("An OptionChar object cannot return an Options DataSet");};
|
---|
48 | void Get(Options*** ppvalue,int *pnumel){ _error2_("An OptionChar object cannot return an Options DataSet vec");};
|
---|
49 |
|
---|
50 | };
|
---|
51 | #endif /* _OPTIONCHAR_H */
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.