C++ Client-Side SDK
LaunchDarkly SDK
value.h
Go to the documentation of this file.
1 
2 // NOLINTBEGIN modernize-use-using
3 
4 #pragma once
5 
6 #include <stdbool.h>
7 
9 
10 #ifdef __cplusplus
11 extern "C" { // only need to export C interface if
12  // used by C++ source code
13 #endif
14 
45 };
46 
64 typedef struct _LDValue* LDValue;
65 
73 typedef struct _LDValue_ObjectIter* LDValue_ObjectIter;
74 
82 typedef struct _LDValue_ArrayIter* LDValue_ArrayIter;
83 
91 LD_EXPORT(LDValue)
93 
99 LD_EXPORT(LDValue)
100 LDValue_NewBool(bool val);
101 
107 LD_EXPORT(LDValue)
108 LDValue_NewNumber(double val);
109 
119 LD_EXPORT(LDValue)
120 LDValue_NewString(char const* val);
121 
128 LD_EXPORT(LDValue)
130 
139 LD_EXPORT(void)
141 
148 LD_EXPORT(enum LDValueType)
150 
157 LD_EXPORT(bool)
159 
165 LD_EXPORT(double)
167 
179 LD_EXPORT(char const*)
181 
191 LD_EXPORT(unsigned int)
193 
206 LD_EXPORT(char*)
208 
218 LD_EXPORT(LDValue_ArrayIter)
220 
227 LD_EXPORT(void)
229 
236 LD_EXPORT(bool)
238 
247 LD_EXPORT(LDValue)
249 
254 LD_EXPORT(void)
256 
266 LD_EXPORT(LDValue_ObjectIter)
268 
275 LD_EXPORT(void)
277 
284 LD_EXPORT(bool)
286 
295 LD_EXPORT(LDValue)
297 
306 LD_EXPORT(char const*)
308 
313 LD_EXPORT(void)
315 
316 #ifdef __cplusplus
317 }
318 #endif
319 
320 // NOLINTEND modernize-use-using
Export macros for C bindings.
LDValue_ObjectIter_Free(LDValue_ObjectIter iter)
LDValue_ObjectIter_New(LDValue val)
LDValue_NewString(char const *val)
LDValue_NewValue(LDValue val)
LDValue_GetString(LDValue val)
LDValueType
Definition: value.h:19
@ LDValueType_Bool
Definition: value.h:27
@ LDValueType_Array
Definition: value.h:40
@ LDValueType_Null
Definition: value.h:23
@ LDValueType_Object
Definition: value.h:44
@ LDValueType_Number
Definition: value.h:32
@ LDValueType_String
Definition: value.h:36
LDValue_Type(LDValue val)
struct _LDValue_ArrayIter * LDValue_ArrayIter
Definition: value.h:82
LDValue_ArrayIter_Free(LDValue_ArrayIter iter)
LDValue_ArrayIter_End(LDValue_ArrayIter iter)
LDValue_Count(LDValue val)
LDValue_SerializeJSON(LDValue val)
LDValue_Free(LDValue val)
struct _LDValue_ObjectIter * LDValue_ObjectIter
Definition: value.h:73
LDValue_GetNumber(LDValue val)
LDValue_NewNumber(double val)
LDValue_NewBool(bool val)
struct _LDValue * LDValue
Definition: value.h:64
LDValue_NewNull()
LDValue_ArrayIter_New(LDValue val)
LDValue_ObjectIter_Value(LDValue_ObjectIter iter)
LDValue_ObjectIter_Key(LDValue_ObjectIter iter)
LDValue_ObjectIter_Next(LDValue_ObjectIter iter)
LDValue_ArrayIter_Next(LDValue_ArrayIter iter)
LDValue_GetBool(LDValue val)
LDValue_ArrayIter_Value(LDValue_ArrayIter iter)
LDValue_ObjectIter_End(LDValue_ObjectIter iter)