10 #ifndef INCLUDE_MVODB_H
11 #define INCLUDE_MVODB_H
39 virtual void ReadKey(
const char* varname,
int *tid,
int *num_values,
int *total_size,
int *item_size,
MVOdbError* error = NULL) = 0;
46 virtual void ReadDir(std::vector<std::string>* varname, std::vector<int> *tid, std::vector<int> *num_values, std::vector<int> *total_size, std::vector<int> *item_size,
MVOdbError* error = NULL) = 0;
63 virtual void RB(
const char* varname,
bool *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
64 virtual void RI(
const char* varname,
int *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
65 virtual void RD(
const char* varname,
double *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
66 virtual void RF(
const char* varname,
float *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
67 virtual void RS(
const char* varname, std::string *value,
bool create =
false,
int create_string_length = 0,
MVOdbError* error = NULL) = 0;
68 virtual void RU16(
const char* varname, uint16_t *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
69 virtual void RU32(
const char* varname, uint32_t *value,
bool create =
false,
MVOdbError* error = NULL) = 0;
96 virtual void RBA(
const char* varname, std::vector<bool> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
97 virtual void RIA(
const char* varname, std::vector<int> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
98 virtual void RDA(
const char* varname, std::vector<double> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
99 virtual void RFA(
const char* varname, std::vector<float> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
100 virtual void RSA(
const char* varname, std::vector<std::string> *value,
bool create =
false,
int create_size = 0,
int create_string_length = 0,
MVOdbError* error = NULL) = 0;
101 virtual void RU16A(
const char* varname, std::vector<uint16_t> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
102 virtual void RU32A(
const char* varname, std::vector<uint32_t> *value,
bool create =
false,
int create_size = 0,
MVOdbError* error = NULL) = 0;
118 virtual void RBAI(
const char* varname,
int index,
bool *value,
MVOdbError* error = NULL) = 0;
119 virtual void RIAI(
const char* varname,
int index,
int *value,
MVOdbError* error = NULL) = 0;
120 virtual void RDAI(
const char* varname,
int index,
double *value,
MVOdbError* error = NULL) = 0;
121 virtual void RFAI(
const char* varname,
int index,
float *value,
MVOdbError* error = NULL) = 0;
122 virtual void RSAI(
const char* varname,
int index, std::string *value,
MVOdbError* error = NULL) = 0;
123 virtual void RU16AI(
const char* varname,
int index, uint16_t *value,
MVOdbError* error = NULL) = 0;
124 virtual void RU32AI(
const char* varname,
int index, uint32_t *value,
MVOdbError* error = NULL) = 0;
128 virtual void WB(
const char* varname,
bool v,
MVOdbError* error = NULL) = 0;
129 virtual void WI(
const char* varname,
int v,
MVOdbError* error = NULL) = 0;
130 virtual void WD(
const char* varname,
double v,
MVOdbError* error = NULL) = 0;
131 virtual void WF(
const char* varname,
float v,
MVOdbError* error = NULL) = 0;
132 virtual void WS(
const char* varname,
const char* v,
int string_length = 0,
MVOdbError* error = NULL) = 0;
133 virtual void WU16(
const char* varname, uint16_t v,
MVOdbError* error = NULL) = 0;
134 virtual void WU32(
const char* varname, uint32_t v,
MVOdbError* error = NULL) = 0;
144 virtual void WBA(
const char* varname,
const std::vector<bool>& v,
MVOdbError* error = NULL) = 0;
145 virtual void WIA(
const char* varname,
const std::vector<int>& v,
MVOdbError* error = NULL) = 0;
146 virtual void WDA(
const char* varname,
const std::vector<double>& v,
MVOdbError* error = NULL) = 0;
147 virtual void WFA(
const char* varname,
const std::vector<float>& v,
MVOdbError* error = NULL) = 0;
148 virtual void WSA(
const char* varname,
const std::vector<std::string>& v,
int string_length,
MVOdbError* error = NULL) = 0;
149 virtual void WU16A(
const char* varname,
const std::vector<uint16_t>& v,
MVOdbError* error = NULL) = 0;
150 virtual void WU32A(
const char* varname,
const std::vector<uint32_t>& v,
MVOdbError* error = NULL) = 0;
157 virtual void WBAI(
const char* varname,
int index,
bool v,
MVOdbError* error = NULL) = 0;
158 virtual void WIAI(
const char* varname,
int index,
int v,
MVOdbError* error = NULL) = 0;
159 virtual void WDAI(
const char* varname,
int index,
double v,
MVOdbError* error = NULL) = 0;
160 virtual void WFAI(
const char* varname,
int index,
float v,
MVOdbError* error = NULL) = 0;
161 virtual void WSAI(
const char* varname,
int index,
const char* v,
MVOdbError* error = NULL) = 0;
162 virtual void WU16AI(
const char* varname,
int index, uint16_t v,
MVOdbError* error = NULL) = 0;
163 virtual void WU32AI(
const char* varname,
int index, uint32_t v,
MVOdbError* error = NULL) = 0;
200 void SetError(
MVOdbError* error,
bool print,
const std::string& path,
const std::string& message);
201 void SetMidasStatus(
MVOdbError* error,
bool print,
const std::string& path,
const char* midas_func_name,
int status);
virtual void WI(const char *varname, int v, MVOdbError *error=NULL)=0
virtual void RIA(const char *varname, std::vector< int > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
virtual void ReadKey(const char *varname, int *tid, int *num_values, int *total_size, int *item_size, MVOdbError *error=NULL)=0
virtual void WBA(const char *varname, const std::vector< bool > &v, MVOdbError *error=NULL)=0
virtual void WSAI(const char *varname, int index, const char *v, MVOdbError *error=NULL)=0
virtual void WIAI(const char *varname, int index, int v, MVOdbError *error=NULL)=0
virtual void RFAI(const char *varname, int index, float *value, MVOdbError *error=NULL)=0
virtual void WU16(const char *varname, uint16_t v, MVOdbError *error=NULL)=0
virtual void WFAI(const char *varname, int index, float v, MVOdbError *error=NULL)=0
virtual void RS(const char *varname, std::string *value, bool create=false, int create_string_length=0, MVOdbError *error=NULL)=0
virtual void RU16AI(const char *varname, int index, uint16_t *value, MVOdbError *error=NULL)=0
virtual void WDAI(const char *varname, int index, double v, MVOdbError *error=NULL)=0
virtual void RBAI(const char *varname, int index, bool *value, MVOdbError *error=NULL)=0
virtual bool GetPrintError() const =0
virtual void WF(const char *varname, float v, MVOdbError *error=NULL)=0
virtual void WFA(const char *varname, const std::vector< float > &v, MVOdbError *error=NULL)=0
virtual void RU32(const char *varname, uint32_t *value, bool create=false, MVOdbError *error=NULL)=0
virtual void WSA(const char *varname, const std::vector< std::string > &v, int string_length, MVOdbError *error=NULL)=0
virtual void WU32(const char *varname, uint32_t v, MVOdbError *error=NULL)=0
virtual void ReadDir(std::vector< std::string > *varname, std::vector< int > *tid, std::vector< int > *num_values, std::vector< int > *total_size, std::vector< int > *item_size, MVOdbError *error=NULL)=0
virtual void RU16(const char *varname, uint16_t *value, bool create=false, MVOdbError *error=NULL)=0
virtual MVOdb * Chdir(const char *subdirname, bool create=false, MVOdbError *error=NULL)=0
virtual void WDA(const char *varname, const std::vector< double > &v, MVOdbError *error=NULL)=0
virtual bool IsReadOnly() const =0
virtual void RBA(const char *varname, std::vector< bool > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
virtual void RU16A(const char *varname, std::vector< uint16_t > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
virtual void RDAI(const char *varname, int index, double *value, MVOdbError *error=NULL)=0
virtual void RSAI(const char *varname, int index, std::string *value, MVOdbError *error=NULL)=0
virtual void SetPrintError(bool v)=0
virtual void WU16AI(const char *varname, int index, uint16_t v, MVOdbError *error=NULL)=0
virtual void WU16A(const char *varname, const std::vector< uint16_t > &v, MVOdbError *error=NULL)=0
virtual void Delete(const char *odbname, MVOdbError *error=NULL)=0
virtual void WIA(const char *varname, const std::vector< int > &v, MVOdbError *error=NULL)=0
virtual void WBAI(const char *varname, int index, bool v, MVOdbError *error=NULL)=0
virtual void RIAI(const char *varname, int index, int *value, MVOdbError *error=NULL)=0
virtual void WD(const char *varname, double v, MVOdbError *error=NULL)=0
virtual void RSA(const char *varname, std::vector< std::string > *value, bool create=false, int create_size=0, int create_string_length=0, MVOdbError *error=NULL)=0
virtual void RI(const char *varname, int *value, bool create=false, MVOdbError *error=NULL)=0
virtual void RB(const char *varname, bool *value, bool create=false, MVOdbError *error=NULL)=0
virtual void RDA(const char *varname, std::vector< double > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
virtual void WS(const char *varname, const char *v, int string_length=0, MVOdbError *error=NULL)=0
virtual void RF(const char *varname, float *value, bool create=false, MVOdbError *error=NULL)=0
virtual void RFA(const char *varname, std::vector< float > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
virtual void RD(const char *varname, double *value, bool create=false, MVOdbError *error=NULL)=0
virtual void WU32A(const char *varname, const std::vector< uint32_t > &v, MVOdbError *error=NULL)=0
virtual void ReadKeyLastWritten(const char *varname, int *last_written, MVOdbError *error=NULL)=0
virtual void WU32AI(const char *varname, int index, uint32_t v, MVOdbError *error=NULL)=0
virtual void WB(const char *varname, bool v, MVOdbError *error=NULL)=0
virtual void RU32AI(const char *varname, int index, uint32_t *value, MVOdbError *error=NULL)=0
virtual void RU32A(const char *varname, std::vector< uint32_t > *value, bool create=false, int create_size=0, MVOdbError *error=NULL)=0
void SetMidasStatus(MVOdbError *error, bool print, const std::string &path, const char *midas_func_name, int status)
MVOdb * MakeMidasOdb(int hDB, MVOdbError *error=NULL)
MVOdb * MakeJsonFileOdb(const char *filename, MVOdbError *error=NULL)
MVOdb * MakeFileDumpOdb(const char *buf, int bufsize, MVOdbError *error=NULL)
Access ODB from a midas file dump. FOrmat could be .xml, .json or .odb.
MVOdb * MakeXmlFileOdb(const char *filename, MVOdbError *error=NULL)
MVOdb * MakeXmlBufferOdb(const char *buf, int bufsize, MVOdbError *error=NULL)
void SetError(MVOdbError *error, bool print, const std::string &path, const std::string &message)
MVOdb * MakeJsonBufferOdb(const char *buf, int bufsize, MVOdbError *error=NULL)
void SetOk(MVOdbError *error)