|
BOSS 7.1.3
BESIII Offline Software System
|
#include <Datatype.h>
Public Types | |
| enum | TYPES { TYPEnotFound = -1 , TYPEenum = 0 , TYPEdatetime , TYPEtimestamp , TYPEint , TYPEmediumint , TYPEsmallint , TYPEreal , TYPEdouble , TYPEvarchar , TYPEchar } |
| enum | RESTRICT { RESTRICTnone = 0 , RESTRICTnonneg , RESTRICTpos , RESTRICTinterval , RESTRICTenum , RESTRICTfile } |
Public Member Functions | |
| Datatype () | |
| ~Datatype () | |
| bool | okValue (const std::string &val) const |
| bool | isCompatible (const Datatype *other) const |
| TYPES | getType () const |
| int | getOutputSize () const |
| Enum * | getEnum () const |
| RESTRICT | getRestrict () const |
| bool | getInterval (std::string &min, std::string &max) |
Friends | |
| class | rdbModel::XercesBuilder |
Definition at line 28 of file Datatype.h.
| Enumerator | |
|---|---|
| RESTRICTnone | |
| RESTRICTnonneg | |
| RESTRICTpos | |
| RESTRICTinterval | |
| RESTRICTenum | |
| RESTRICTfile | |
Definition at line 44 of file Datatype.h.
| Enumerator | |
|---|---|
| TYPEnotFound | |
| TYPEenum | |
| TYPEdatetime | |
| TYPEtimestamp | |
| TYPEint | |
| TYPEmediumint | |
| TYPEsmallint | |
| TYPEreal | |
| TYPEdouble | |
| TYPEvarchar | |
| TYPEchar | |
Definition at line 31 of file Datatype.h.
|
inline |
|
inline |
Definition at line 54 of file Datatype.h.
|
inline |
Return pointer to Enum object owned by datatype (if none, return null pointer).
Definition at line 64 of file Datatype.h.
| bool rdbModel::Datatype::getInterval | ( | std::string & | min, |
| std::string & | max ) |
User-supplied strings min and max will be set to min and max values, if any, for the Datatype object.
@ret true if there is a min & max, false otherwise
Definition at line 154 of file Datatype.cxx.
Referenced by main().
|
inline |
Definition at line 60 of file Datatype.h.
|
inline |
Definition at line 65 of file Datatype.h.
|
inline |
Definition at line 59 of file Datatype.h.
Definition at line 237 of file Datatype.cxx.
| bool rdbModel::Datatype::okValue | ( | const std::string & | val | ) | const |
Check that supplied string has proper syntax for our type and is in accord with restriction, if any
Definition at line 164 of file Datatype.cxx.
|
friend |
Definition at line 75 of file Datatype.h.