SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
typed_value.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd. All Rights Reserved
2 
3 #ifndef SLAPI_MODEL_TYPED_VALUE_H_
4 #define SLAPI_MODEL_TYPED_VALUE_H_
5 
6 #include <slapi/color.h>
7 #include <slapi/slapi.h>
8 #include <slapi/unicodestring.h>
9 #include <slapi/model/defs.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
38 };
39 
49 SU_RESULT SUTypedValueCreate(SUTypedValueRef* typed_value);
50 
60 SU_RESULT SUTypedValueRelease(SUTypedValueRef* typed_value);
61 
71 SU_RESULT SUTypedValueGetType(SUTypedValueRef typed_value,
72  enum SUTypedValueType* type);
73 
84 SU_RESULT SUTypedValueGetByte(SUTypedValueRef typed_value, char* byte_value);
85 
94 SU_RESULT SUTypedValueSetByte(SUTypedValueRef typed_value, char byte_value);
95 
106 SU_RESULT SUTypedValueGetInt16(SUTypedValueRef typed_value,
107  int16_t* int16_value);
108 
117 SU_RESULT SUTypedValueSetInt16(SUTypedValueRef typed_value,
118  int16_t int16_value);
119 
130 SU_RESULT SUTypedValueGetInt32(SUTypedValueRef typed_value,
131  int32_t* int32_value);
132 
141 SU_RESULT SUTypedValueSetInt32(SUTypedValueRef typed_value,
142  int32_t int32_value);
143 
154 SU_RESULT SUTypedValueGetFloat(SUTypedValueRef typed_value,
155  float* float_value);
156 
165 SU_RESULT SUTypedValueSetFloat(SUTypedValueRef typed_value, float float_value);
166 
177 SU_RESULT SUTypedValueGetDouble(SUTypedValueRef typed_value,
178  double* double_value);
179 
188 SU_RESULT SUTypedValueSetDouble(SUTypedValueRef typed_value,
189  double double_value);
190 
201 SU_RESULT SUTypedValueGetBool(SUTypedValueRef typed_value, bool* bool_value);
202 
211 SU_RESULT SUTypedValueSetBool(SUTypedValueRef typed_value, bool bool_value);
212 
223 SU_RESULT SUTypedValueGetColor(SUTypedValueRef typed_value, SUColor* color);
224 
234 SU_RESULT SUTypedValueSetColor(SUTypedValueRef typed_value,
235  const SUColor* color);
236 
248 SU_RESULT SUTypedValueGetTime(SUTypedValueRef typed_value,
249  int64_t* time_value);
250 
260 SU_RESULT SUTypedValueSetTime(SUTypedValueRef typed_value,
261  int64_t time_value);
262 
275 SU_RESULT SUTypedValueGetString(SUTypedValueRef typed_value,
276  SUStringRef* string_value);
277 
287 SU_RESULT SUTypedValueSetString(SUTypedValueRef typed_value,
288  const char* string_value);
289 
300 SU_RESULT SUTypedValueGetVector3d(SUTypedValueRef typed_value,
301  double vector3d_value[3]);
302 
311 SU_RESULT SUTypedValueSetVector3d(SUTypedValueRef typed_value,
312  const double vector3d_value[3]);
313 
326 SU_RESULT SUTypedValueGetArrayItems(SUTypedValueRef typed_value, size_t len,
327  SUTypedValueRef values[], size_t* count);
328 
340 SU_RESULT SUTypedValueSetArrayItems(SUTypedValueRef typed_value, size_t len,
341  SUTypedValueRef values[]);
342 
353 SU_RESULT SUTypedValueGetNumArrayItems(SUTypedValueRef typed_value,
354  size_t* count);
355 
356 #ifdef __cplusplus
357 } // extern "C"
358 #endif
359 
360 #endif // SLAPI_MODEL_TYPED_VALUE_H_