#include "GA_API.h"
#include <UT/UT_Options.h>
Go to the source code of this file.
|
#define | BOOL_ACCESSOR(NAME, GET, IMPORT, SET, DEFAULT) |
|
#define | INT_ACCESSOR(NAME, GET, IMPORT, SET, DEFAULT) |
|
#define | REAL_ACCESSOR(NAME, GET, IMPORT, SET, DEFAULT) |
|
#define | STR_ACCESSOR(NAME, GET, IMPORT, SET) |
|
#define BOOL_ACCESSOR |
( |
|
NAME, |
|
|
|
GET, |
|
|
|
IMPORT, |
|
|
|
SET, |
|
|
|
DEFAULT |
|
) |
| |
Value:static const char *GET##
Name() {
return NAME; } \
bool IMPORT(
bool &
v)
const {
return importOption(NAME, v); } \
bool GET() const { \
if (!importOption(NAME, v)) v = DEFAULT; \
return v; \
} \
SYS_FORCE_INLINE const UT_StringHolder & UTmakeUnsafeRef(const UT_StringRef &ref)
Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.
Definition at line 33 of file GA_LoadOptions.h.
#define INT_ACCESSOR |
( |
|
NAME, |
|
|
|
GET, |
|
|
|
IMPORT, |
|
|
|
SET, |
|
|
|
DEFAULT |
|
) |
| |
Value:static const char *GET##
Name() {
return NAME; } \
bool IMPORT(
int32 &
v)
const {
return importOption(NAME, v); } \
bool IMPORT(
int64 &
v)
const {
return importOption(NAME, v); }
\
if (!importOption(NAME, v)) v = DEFAULT; \
return v; \
} \
SYS_FORCE_INLINE const UT_StringHolder & UTmakeUnsafeRef(const UT_StringRef &ref)
Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.
Definition at line 42 of file GA_LoadOptions.h.
#define REAL_ACCESSOR |
( |
|
NAME, |
|
|
|
GET, |
|
|
|
IMPORT, |
|
|
|
SET, |
|
|
|
DEFAULT |
|
) |
| |
Value:static const char *GET##
Name() {
return NAME; } \
bool IMPORT(
fpreal32 &
v)
const {
return importOption(NAME, v); } \
bool IMPORT(
fpreal64 &
v)
const {
return importOption(NAME, v); }
\
if (!importOption(NAME, v)) v = DEFAULT; \
return v; \
} \
SYS_FORCE_INLINE const UT_StringHolder & UTmakeUnsafeRef(const UT_StringRef &ref)
Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.
Definition at line 52 of file GA_LoadOptions.h.
#define STR_ACCESSOR |
( |
|
NAME, |
|
|
|
GET, |
|
|
|
IMPORT, |
|
|
|
SET |
|
) |
| |
Value:static const char *GET##
Name() {
return NAME; } \
UT_StringHolder GET()
const {
return getOptionS(NAME); }
\
SYS_FORCE_INLINE const UT_StringHolder & UTmakeUnsafeRef(const UT_StringRef &ref)
Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.
Definition at line 62 of file GA_LoadOptions.h.