LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
typed_value.h
Go to the documentation of this file.
1
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
// This file is intended for public distribution.
3
4
#ifndef LAYOUT_MODEL_TYPED_VALUE_H_
5
#define LAYOUT_MODEL_TYPED_VALUE_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/model/defs.h
>
9
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif // __cplusplus
19
24
typedef
enum
{
25
LOTypedValueType_Empty
= 0,
26
LOTypedValueType_Bool
,
27
LOTypedValueType_Int32
,
28
LOTypedValueType_Double
,
29
LOTypedValueType_String
,
30
LONumTypedValueTypes
31
}
LOTypedValueType
;
32
41
LO_RESULT
LOTypedValueCreate
(
LOTypedValueRef
* typed_value);
42
52
LO_RESULT
LOTypedValueRelease
(
LOTypedValueRef
* typed_value);
53
63
LO_RESULT
LOTypedValueGetType
(
LOTypedValueRef
typed_value,
LOTypedValueType
* type);
64
75
LO_RESULT
LOTypedValueGetBool
(
LOTypedValueRef
typed_value,
bool
* bool_value);
76
85
LO_RESULT
LOTypedValueSetBool
(
LOTypedValueRef
typed_value,
bool
bool_value);
86
97
LO_RESULT
LOTypedValueGetInt32
(
LOTypedValueRef
typed_value, int32_t* int32_value);
98
107
LO_RESULT
LOTypedValueSetInt32
(
LOTypedValueRef
typed_value, int32_t int32_value);
108
119
LO_RESULT
LOTypedValueGetDouble
(
LOTypedValueRef
typed_value,
double
* double_value);
120
129
LO_RESULT
LOTypedValueSetDouble
(
LOTypedValueRef
typed_value,
double
double_value);
130
141
LO_RESULT
LOTypedValueGetString
(
LOTypedValueRef
typed_value,
SUStringRef
* out_string);
142
150
LO_RESULT
LOTypedValueSetString
(
LOTypedValueRef
typed_value,
const
char
*
string
);
151
152
#ifdef __cplusplus
153
}
// end extern "C"
154
#endif // __cplusplus
155
156
#endif // LAYOUT_MODEL_TYPED_VALUE_H_
Generated on Wed Feb 1 2023 16:37:56 for LayOut C API by
1.8.3.1