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 #ifndef _clause_h
00035 #define _clause_h
00036
00037
00038 #ifndef _expr_h
00039 #include "expr.h"
00040 #endif
00041
00042 #ifndef _rvalue_h
00043 #include "RValue.h"
00044 #endif
00045
00046 namespace libdap
00047 {
00048
00090 struct Clause
00091 {
00092
00093 private:
00095 int _op;
00097 #if 1
00098 bool_func _b_func;
00099 #endif
00100
00102 btp_func _bt_func;
00103
00104 int _argc;
00105 rvalue *_arg1;
00106 rvalue_list *_args;
00107
00108 Clause(const Clause &)
00109 {}
00110 Clause &operator=(const Clause &)
00111 {
00112 throw InternalErr(__FILE__, __LINE__, "Unimplemented method");
00113 }
00114
00115 public:
00116 Clause(const int oper, rvalue *a1, rvalue_list *rv);
00117 #if 1
00118 Clause(bool_func func, rvalue_list *rv);
00119 #endif
00120 Clause(btp_func func, rvalue_list *rv);
00121 Clause();
00122
00123 virtual ~Clause();
00124
00125 bool OK();
00126
00127 bool boolean_clause();
00128
00129 bool value_clause();
00130
00131 bool value(DDS &dds);
00132
00133 bool value(DDS &dds, BaseType **value);
00134 };
00135
00136 }
00137
00138 #endif // _clause_h