C Driver API 3.0.0
API for the NuoDB C Driver Library
Loading...
Searching...
No Matches
options.h
Go to the documentation of this file.
1/* (C) Copyright 2015-2023 Dassault Systemes SE. All Rights Reserved. */
2
3#ifndef _NUODB_OPTIONS_H_
4#define _NUODB_OPTIONS_H_ 1
5
6#ifndef _NUODB_UTILS_H_
7#include "nuodb/utils.h"
8#endif
9
10#ifndef _NUODB_STRUCTS_H_
11#include "nuodb/structs.h"
12#endif
13
14/* c-driver */
15#ifdef __cplusplus
16extern "C" {
17#endif
18
36{
38 _NuoDB_Options_state_t* _state;
39
51 void (* add)(NuoDB_Options* _this, const char* name, const char* value);
52
67 const char* (* getValue)(NuoDB_Options* _this, const char* name);
68
77 void (* clear)(NuoDB_Options* _this);
78
88 void (* copy)(NuoDB_Options* _this, const NuoDB_Options* src);
89
101 int (* getCount)(NuoDB_Options* _this);
102};
103
113NUODB_CAPI NuoDB_Options* NUODB_CAPICALL NuoDB_Options_create();
114
115
127NUODB_CAPI void NUODB_CAPICALL NuoDB_Options_free(NuoDB_Options* ops);
128
129#ifdef __cplusplus
130} /* extern "C" { */
131#endif
132
133#endif /* end of: #ifndef _NUODB_OPTIONS_H_ */
NUODB_CAPI NuoDB_Options *NUODB_CAPICALL NuoDB_Options_create()
Create a NuoDB_Options container.
NUODB_CAPI void NUODB_CAPICALL NuoDB_Options_free(NuoDB_Options *ops)
Free NuoDB_Options container.
Container for NuoDB_Connection options.
Definition options.h:36
void(* add)(NuoDB_Options *_this, const char *name, const char *value)
Add an option to the list of options.
Definition options.h:51
void(* copy)(NuoDB_Options *_this, const NuoDB_Options *src)
Copy options.
Definition options.h:88
void(* clear)(NuoDB_Options *_this)
Clear the options list.
Definition options.h:77
int(* getCount)(NuoDB_Options *_this)
Retrieve a count of the options.
Definition options.h:101
structs and typedefs.
NuoDB utilities.