LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations | Functions
typed_value.h File Reference
#include <LayOutAPI/common.h>
#include <LayOutAPI/model/defs.h>

Go to the source code of this file.

Enumerations

enum  LOTypedValueType {
  LOTypedValueType_Empty = 0, LOTypedValueType_Bool, LOTypedValueType_Int32, LOTypedValueType_Double,
  LOTypedValueType_String, LONumTypedValueTypes
}
 Defines the set of types that a LOTypedValueRef can represent. More...
 

Functions

LO_RESULT LOTypedValueCreate (LOTypedValueRef *typed_value)
 Creates a new typed value object. More...
 
LO_RESULT LOTypedValueRelease (LOTypedValueRef *typed_value)
 Releases a typed value object. *typed_value will be set to invalid by this function. More...
 
LO_RESULT LOTypedValueGetType (LOTypedValueRef typed_value, LOTypedValueType *type)
 Gets the type of value stored by a typed value object. More...
 
LO_RESULT LOTypedValueGetBool (LOTypedValueRef typed_value, bool *bool_value)
 Gets the boolean value of a typed value object. More...
 
LO_RESULT LOTypedValueSetBool (LOTypedValueRef typed_value, bool bool_value)
 Sets the boolean value of a typed value object. More...
 
LO_RESULT LOTypedValueGetInt32 (LOTypedValueRef typed_value, int32_t *int32_value)
 Gets the int32 value of a typed value object. More...
 
LO_RESULT LOTypedValueSetInt32 (LOTypedValueRef typed_value, int32_t int32_value)
 Sets the int32 value of a typed value object. More...
 
LO_RESULT LOTypedValueGetDouble (LOTypedValueRef typed_value, double *double_value)
 Gets the double value of a typed value object. More...
 
LO_RESULT LOTypedValueSetDouble (LOTypedValueRef typed_value, double double_value)
 Sets the double value of a typed value object. More...
 
LO_RESULT LOTypedValueGetString (LOTypedValueRef typed_value, SUStringRef *out_string)
 Gets a string value from the typed value object. More...
 
LO_RESULT LOTypedValueSetString (LOTypedValueRef typed_value, const char *string)
 Sets the value of typed_value to the given string. More...
 

Enumeration Type Documentation

Defines the set of types that a LOTypedValueRef can represent.

Enumerator
LOTypedValueType_Empty 
LOTypedValueType_Bool 
LOTypedValueType_Int32 
LOTypedValueType_Double 
LOTypedValueType_String 
LONumTypedValueTypes 

Function Documentation

LO_RESULT LOTypedValueCreate ( LOTypedValueRef typed_value)

Creates a new typed value object.

Parameters
[out]typed_valueThe created typed value object.
Returns
LO_RESULT LOTypedValueGetBool ( LOTypedValueRef  typed_value,
bool *  bool_value 
)

Gets the boolean value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[out]bool_valueThe boolean value.
Returns
LO_RESULT LOTypedValueGetDouble ( LOTypedValueRef  typed_value,
double *  double_value 
)

Gets the double value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[out]double_valueThe double value.
Returns
LO_RESULT LOTypedValueGetInt32 ( LOTypedValueRef  typed_value,
int32_t *  int32_value 
)

Gets the int32 value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[out]int32_valueThe int32 value.
Returns
LO_RESULT LOTypedValueGetString ( LOTypedValueRef  typed_value,
SUStringRef out_string 
)

Gets a string value from the typed value object.

Since
LayOut 2018, API 3.0
Returns
LO_RESULT LOTypedValueGetType ( LOTypedValueRef  typed_value,
LOTypedValueType type 
)

Gets the type of value stored by a typed value object.

Parameters
[in]typed_valueThe typed value object.
[out]typeThe type of value stored by typed_value.
Returns
LO_RESULT LOTypedValueRelease ( LOTypedValueRef typed_value)

Releases a typed value object. *typed_value will be set to invalid by this function.

Parameters
[in]typed_valueThe typed value object.
Returns
LO_RESULT LOTypedValueSetBool ( LOTypedValueRef  typed_value,
bool  bool_value 
)

Sets the boolean value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[in]bool_valueThe boolean value to set.
Returns
LO_RESULT LOTypedValueSetDouble ( LOTypedValueRef  typed_value,
double  double_value 
)

Sets the double value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[in]double_valueThe double value to set.
Returns
LO_RESULT LOTypedValueSetInt32 ( LOTypedValueRef  typed_value,
int32_t  int32_value 
)

Sets the int32 value of a typed value object.

Parameters
[in]typed_valueThe typed value object.
[in]int32_valueThe int32 value to set.
Returns
LO_RESULT LOTypedValueSetString ( LOTypedValueRef  typed_value,
const char *  string 
)

Sets the value of typed_value to the given string.

Since
LayOut 2018, API 3.0
Returns