OSFI-C++
3.9.2
OpenSF Integration Library
|
Go to the documentation of this file.
23 #ifndef OSFI_FFI_CONFM_H
24 #define OSFI_FFI_CONFM_H
59 OSFI_FFI_DEPRECATED(
"Use the create_noval constructor instead and then call validate.")
103 #define OSFI_DECL_SCALAR_GETTER_simple(Tname, Ttype) \
105 bool osfi_confm_get_scalar_##Tname(const OSFI_Parameter* obj, Ttype* value)
106 #define OSFI_DECL_SCALAR_GETTER_str(Tname, Ttype) \
108 int osfi_confm_get_scalar_##Tname(const OSFI_Parameter* obj, Ttype buf, int bufSz)
112 #define OSFI_DECL_GETTERS(Tname, Ttype, kind) \
113 OSFI_DECL_SCALAR_GETTER_ ## kind(Tname, Ttype); \
114 OSFI_DECL_VECTOR(Tname, Ttype, kind); \
116 OSFI_VEC_T(Tname) * osfi_confm_get_vector_##Tname##_vals(const OSFI_Parameter* obj, int* size); \
118 OSFI_VEC_T(Tname) * osfi_confm_get_leaf_vector_##Tname##_vals(const OSFI_Parameter* obj, int node[], int depth, int* size); \
121 OSFI_VEC_T(Tname) * osfi_confm_get_matrix_##Tname##_vals(const OSFI_Parameter* obj, enum osfi_confm_arrayorder aeo, int* size);
123 OSFI_DECL_GETTERS(
boolean,
bool, simple);
124 OSFI_DECL_GETTERS(integer,
int, simple);
125 OSFI_DECL_GETTERS(
double,
double, simple);
127 OSFI_DECL_GETTERS(file,
char*, str);
128 OSFI_DECL_GETTERS(
string,
char*, str);
143 OSFI_PET_INTEGER = 1,
177 OSFI_FFI_DEPRECATED(
"unsafe function, writes into unknown-sized char buffers")
179 char *units,
int *dims,
char *max,
char *min,
int *type);
int osfi_confm_get_dimension(const OSFI_Parameter *obj, int index)
OSFI_Vec_Tboolean * osfi_confm_file_exist(const OSFI_Parameter *p, enum osfi_confm_arrayorder aeo, int *size)
OSFI_ParamElemType
Definition: ConFM.h:141
struct OSFI_Parameter_t OSFI_Parameter
Definition: ConFM.h:53
@ OSFI_FFI_CONFM_VAL_INVALID
Definition: ConFM.h:72
enum osfi_ffi_confm_val_res osfi_param_reader_valagainst(const OSFI_ParamReader *obj, const char *xsdFile)
struct OSFI_Vec_Tboolean_t OSFI_VEC_T(boolean)
OSFI_ParamReader * osfi_param_reader_create_noval(const char *fileName)
@ OSFI_CONFM_AO_LAST_CONTIG
Definition: ConFM.h:96
enum OSFI_ParamElemType osfi_param_get_element_type(const OSFI_Parameter *obj)
void osfi_param_reader_destroy(OSFI_ParamReader **obj)
bool osfi_confm_is_leaf(const OSFI_Parameter *obj, int node[], int depth)
Internal header used by the foreign-function interface to OSFI-C++.
struct OSFI_TimeValue_t OSFI_TimeValue
Definition: ffi_base.h:108
int osfi_confm_get_node_dimension(const OSFI_Parameter *obj, int node[], int depth)
osfi_ffi_confm_val_res
Definition: ConFM.h:68
OSFI_ParamReader * osfi_param_reader_create(const char *fileName, const char *schema)
@ OSFI_CONFM_AO_FIRST_CONTIG
Definition: ConFM.h:100
bool osfi_param_is_array(const OSFI_Parameter *obj)
const OSFI_Parameter * osfi_confm_get_param(const OSFI_ParamReader *obj, const char *paramName)
bool osfi_confm_exist_parameter(const OSFI_ParamReader *obj, const char *paramName)
void osfi_confm_print_parameter(const OSFI_Parameter *obj)
int osfi_confm_get_num_dims(const OSFI_Parameter *obj)
@ OSFI_FFI_CONFM_VAL_ERRORS
Definition: ConFM.h:74
int osfi_param_get_path(const OSFI_Parameter *obj, char *buf, int bufSz)
@ OSFI_FFI_CONFM_VAL_PASSED
Definition: ConFM.h:70
void osfi_confm_get_parameter(const OSFI_Parameter *obj, char *name, char *description, char *value, char *units, int *dims, char *max, char *min, int *type)
osfi_confm_arrayorder
Definition: ConFM.h:92
struct OSFI_ParamReader_t OSFI_ParamReader
Definition: ConFM.h:52
#define OSFI_FFI_DECL_PLACEHOLDER(name)
Definition: ffi_base.h:58
int osfi_param_get_local_name(const OSFI_Parameter *obj, char *buf, int bufSz)
int osfi_confm_compare_timevalue(const OSFI_TimeValue *a, const OSFI_TimeValue *b)
void osfi_confm_print_parameters(const OSFI_ParamReader *obj)