MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
c_config.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
9 #pragma once
10 
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
27  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_create(const char* filepath, ConfigHandle *retConfig);
28 
35 
41 
44 
52  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_processParameters(ConfigHandle config, const char** paramNames, const char** paramValues, const int count);
53 
61  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_processArguments(ConfigHandle config, int argc, char** argv, int* processedArgCount);
62 
73  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setBoolParameter(ConfigHandle config, const char* name, const bool val);
74  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setIntParameter(ConfigHandle config, const char* name, const int val);
75  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setFloatParameter(ConfigHandle config, const char* name, const float val);
76  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setStringParameter(ConfigHandle config, const char* name, const char* val);
78  LEGIONRUNTIME_DLL int legion_config_getIntParameter(ConfigHandle config, const char* name);
79  LEGIONRUNTIME_DLL float legion_config_getFloatParameter(ConfigHandle config, const char* name);
80  LEGIONRUNTIME_DLL const char* legion_config_getStringParameter(ConfigHandle config, const char* name);
81  LEGIONRUNTIME_DLL float legion_config_getUnitMultiplier(ConfigHandle config, const char* param);
82  LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setUnitMultiplier(ConfigHandle config, const char* param, const float multiplier);
85 #ifdef __cplusplus
86 }
87 #endif
88 
LEG_ReturnCode
Definition: c_api.h:61
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_clone(const ConfigHandle orig, ConfigHandle *clone)
LEGIONRUNTIME_DLL const char * legion_config_getStringParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL int legion_config_getIntParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setUnitMultiplier(ConfigHandle config, const char *param, const float multiplier)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_registerBoolParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_registerStringParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setFloatParameter(ConfigHandle config, const char *name, const float val)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_registerIntParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL const char * legion_config_helpString(ConfigHandle config)
LEGIONRUNTIME_DLL LEG_Bool legion_config_saveParameters(ConfigHandle config, const char *filename)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_Bool legion_config_hasParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
unsigned long long ConfigHandle
Definition: c_api.h:22
LEG_Bool
Definition: c_api.h:109
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setStringParameter(ConfigHandle config, const char *name, const char *val)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_Bool legion_config_isParameterSet(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_Bool legion_config_loadParameters(ConfigHandle config, const char *filename)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_registerFloatParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_processArguments(ConfigHandle config, int argc, char **argv, int *processedArgCount)
LEGIONRUNTIME_DLL float legion_config_getFloatParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_Bool legion_config_getBoolParameter(ConfigHandle config, const char *name)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setBoolParameter(ConfigHandle config, const char *name, const bool val)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_create(const char *filepath, ConfigHandle *retConfig)
C API of Legion configuration.
LEGIONRUNTIME_DLL float legion_config_getUnitMultiplier(ConfigHandle config, const char *param)
C API to get/set/register/save configuration parameters.
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_processParameters(ConfigHandle config, const char **paramNames, const char **paramValues, const int count)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_delete(ConfigHandle config)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_config_setIntParameter(ConfigHandle config, const char *name, const int val)
C API to get/set/register/save configuration parameters.
#define LEGIONRUNTIME_DLL
Definition: legionDataStoreImpl/export.h:25

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)