16using System.Reflection;
17using System.Runtime.InteropServices;
18using System.Runtime.CompilerServices;
19using System.Collections.Generic;
20using System.Threading;
28 public partial class LcSettingC
30 public partial class LcSettingC :
MkObjectC
33 private readonly
static ConstructorInfo ctor =
getCtor(typeof(LcSettingC));
34 private readonly
static ThreadLocal<LcSettingC> MK_NULL =
new ThreadLocal<LcSettingC>(() => {
46 private static IntPtr LcSettingC_SelfCreate (IntPtr
mkrt, IntPtr obj, IntPtr env) {
50 private static void LcSettingC_SelfUnlink (IntPtr
mkrt, IntPtr
self, IntPtr env) {
54 internal static void SetupThreadCFS (IntPtr
mkrt) {
55 Lc.LcCsTypeUpdate(
mkrt, LcCsTypeLookupE.CFS, LcSettingC_SelfCreate, LcSettingC_SelfUnlink);
58 #if !META_STATIC_OVERWRITE
63 SetupThreadCFS(IntPtr.Zero);
69 internal LcSettingC (IntPtr dumpP) : base(dumpP) {
76 public partial class LcSettingC {
86 IntPtr __retVal__L = Lc.LcSettingHandleResolve(IntPtr.Zero, netHdl);
98 public partial class LcSettingC {
108 IntPtr __retVal__L = Lc.LcSettingNext(
hdl);
114 IntPtr __retVal__L = Lc.LcSettingPrev(
hdl);
122 IntPtr __retVal__L = Lc.LcSettingInstances(IntPtr.Zero);
130 public partial class LcSettingC {
140 IntPtr __retVal__L = Lc.LcSettingGetNull();
148 public partial class LcSettingC {
158 IntPtr __retVal__L = Lc.LcSettingGetElem(
hdl, idx);
159 if (__retVal__L == IntPtr.Zero) {
167 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
168 IntPtr __retVal__L = Lc.LcSettingGetMember(
hdl, name_cstr);
169 Marshal.FreeHGlobal(name_cstr);
170 if (__retVal__L == IntPtr.Zero) {
180 bool __retVal__L = Lc.LcSettingGetBool(
hdl);
186 bool __retVal__L = Lc.LcSettingGetBoolElem(
hdl, idx);
192 Double __retVal__L = Lc.LcSettingGetFloat(
hdl);
198 Double __retVal__L = Lc.LcSettingGetFloatElem(
hdl, idx);
210 Int32 __retVal__L = Lc.LcSettingGetInt(
hdl);
216 Int64 __retVal__L = Lc.LcSettingGetInt64(
hdl);
222 Int64 __retVal__L = Lc.LcSettingGetInt64Elem(
hdl, idx);
228 Int32 __retVal__L = Lc.LcSettingGetIntElem(
hdl, idx);
234 IntPtr __retVal__L = Lc.LcSettingGetString(
hdl);
235 return Marshal.PtrToStringAnsi(__retVal__L);
240 IntPtr __retVal__L = Lc.LcSettingGetStringElem(
hdl, idx);
241 return Marshal.PtrToStringAnsi(__retVal__L);
248 public partial class LcSettingC {
258 bool __retVal__L = Lc.LcSettingIsAggregate(
hdl);
264 bool __retVal__L = Lc.LcSettingIsArray(
hdl);
270 bool __retVal__L = Lc.LcSettingIsGroup(
hdl);
276 bool __retVal__L = Lc.LcSettingIsList(
hdl);
282 bool __retVal__L = Lc.LcSettingIsNumber(
hdl);
288 bool __retVal__L = Lc.LcSettingIsRoot(
hdl);
294 bool __retVal__L = Lc.LcSettingIsScalar(
hdl);
302 public partial class LcSettingC {
312 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
313 IntPtr __retVal__L = Lc.LcSettingLookup(
hdl, path_cstr);
314 Marshal.FreeHGlobal(path_cstr);
315 if (__retVal__L == IntPtr.Zero) {
323 IntPtr __retVal__L = Lc.LcSettingLookupAll(
hdl);
332 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
333 MkErrorE errVal = Lc.LcSettingLookupBool(
hdl, name_cstr, out value_out);
334 Marshal.FreeHGlobal(name_cstr);
342 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
343 MkErrorE errVal = Lc.LcSettingLookupFloat(
hdl, name_cstr, out value_out);
344 Marshal.FreeHGlobal(name_cstr);
352 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
353 MkErrorE errVal = Lc.LcSettingLookupInt(
hdl, name_cstr, out value_out);
354 Marshal.FreeHGlobal(name_cstr);
362 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
363 MkErrorE errVal = Lc.LcSettingLookupInt64(
hdl, name_cstr, out value_out);
364 Marshal.FreeHGlobal(name_cstr);
372 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
373 MkErrorE errVal = Lc.LcSettingLookupString(
hdl, name_cstr, out value_out);
374 Marshal.FreeHGlobal(name_cstr);
376 return Marshal.PtrToStringAnsi(value_out);
383 public partial class LcSettingC {
393 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
394 IntPtr __retVal__L = Lc.LcSettingAddIfNotExists(
hdl, name_cstr, cfgtype);
395 Marshal.FreeHGlobal(name_cstr);
401 IntPtr __retVal__L = Lc.LcSettingParent(
hdl);
402 if (__retVal__L == IntPtr.Zero) {
412 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
413 bool __retVal__L = Lc.LcSettingExists(
hdl, name_cstr);
414 Marshal.FreeHGlobal(name_cstr);
420 Int32 __retVal__L = Lc.LcSettingIndex(
hdl);
426 Int32 __retVal__L = Lc.LcSettingLength(
hdl);
434 IntPtr __retVal__L = Lc.LcSettingName(
hdl);
435 return Marshal.PtrToStringAnsi(__retVal__L);
440 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
441 MkErrorE errVal = Lc.LcSettingRemove(
hdl, name_cstr);
442 Marshal.FreeHGlobal(name_cstr);
448 MkErrorE errVal = Lc.LcSettingRemoveElem(
hdl, idx);
454 IntPtr __retVal__L = Lc.LcSettingSourceFile(
hdl);
455 return Marshal.PtrToStringAnsi(__retVal__L);
460 Int32 __retVal__L = Lc.LcSettingSourceLine(
hdl);
474 public partial class LcSettingC {
484 IntPtr __retVal__L = Lc.LcSettingSetBoolElem(
hdl, idx, value);
485 if (__retVal__L == IntPtr.Zero) {
493 IntPtr __retVal__L = Lc.LcSettingSetFloatElem(
hdl, idx, value);
494 if (__retVal__L == IntPtr.Zero) {
502 IntPtr __retVal__L = Lc.LcSettingSetInt64Elem(
hdl, idx, value);
503 if (__retVal__L == IntPtr.Zero) {
511 IntPtr __retVal__L = Lc.LcSettingSetIntElem(
hdl, idx, value);
512 if (__retVal__L == IntPtr.Zero) {
520 IntPtr value_cstr = Marshal.StringToHGlobalAnsi(value);
521 IntPtr __retVal__L = Lc.LcSettingSetStringElem(
hdl, idx, value_cstr);
522 Marshal.FreeHGlobal(value_cstr);
523 if (__retVal__L == IntPtr.Zero) {
539 MkErrorE errVal = Lc.LcSettingSetFloat(
hdl, value);
545 MkErrorE errVal = Lc.LcSettingSetFormat(
hdl, format);
557 MkErrorE errVal = Lc.LcSettingSetInt64(
hdl, value);
563 IntPtr value_cstr = Marshal.StringToHGlobalAnsi(value);
564 MkErrorE errVal = Lc.LcSettingSetString(
hdl, value_cstr);
565 Marshal.FreeHGlobal(value_cstr);
583 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
584 IntPtr __retVal__L = Lc.LcSettingAdd(
hdl, name_cstr, __type);
585 Marshal.FreeHGlobal(name_cstr);
586 if (__retVal__L == IntPtr.Zero) {
589 return LcSettingC.LcSettingC_ObjCreate(__retVal__L);
596 IntPtr __retVal__L = Lc.LcSettingGetConfig(
hdl);
LcConfigC - the class known as lccfg or Config define the main-configuration-handle …
static LcConfigC LcConfigC_ObjNew(IntPtr hdl)
LcSettingC - the class known as lccfs or Setting define a single config-setting …
static LcSettingC LcSettingC_ObjNew(IntPtr hdl)
static MkBufferListC MkBufferListC_ObjNew(IntPtr hdl)
static void Check(IntPtr ctx, MkErrorE err)
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
new LcSettingC Next()
C#: LcSettingC cfs.Next() → C-API get next instance from linked-list of LcSettingS type
new static LcSettingC HandleResolve(Int32 netHdl)
C#: [static] LcSettingC LcSettingC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - ret...
new LcSettingC Prev()
C#: LcSettingC cfs.Prev() → C-API get previous instance from linked-list of LcSettingS type
new static LcSettingC GetNull()
C#: [static] LcSettingC LcSettingC.GetNull() → C-API Null-Slot - return a LcSettingC typed NULL ...
new static LcSettingC Instances()
C#: [static] LcSettingC LcSettingC.Instances() → C-API get head-instance from linked-list of LcS...
bool GetBoolElem(int idx)
C#: bool setting.GetBoolElem(int idx) → C-API These functions return the value at the specified...
LcSettingC GetElem(int idx)
C#: LcSettingC setting.GetElem(int idx) → C-API This function fetches the element at the given ...
int GetInt()
C#: int setting.GetInt() → C-API These functions return the value of the given setting …
LcSettingC GetMember(string name)
C#: LcSettingC setting.GetMember(string name) → C-API This function fetches the child setting n...
LcConfigFormatE GetFormat()
C#: LcConfigFormatE setting.GetFormat() → C-API These functions get and set the external format...
string GetStringElem(int idx)
C#: string setting.GetStringElem(int idx) → C-API These functions return the value at the speci...
string GetString()
C#: string setting.GetString() → C-API These functions return the value of the given setting …
double GetFloatElem(int idx)
C#: double setting.GetFloatElem(int idx) → C-API These functions return the value at the specif...
long GetInt64()
C#: long setting.GetInt64() → C-API These functions return the value of the given setting …
long GetInt64Elem(int idx)
C#: long setting.GetInt64Elem(int idx) → C-API These functions return the value at the specifie...
bool GetBool()
C#: bool setting.GetBool() → C-API These functions return the value of the given setting …
double GetFloat()
C#: double setting.GetFloat() → C-API These functions return the value of the given setting …
int GetIntElem(int idx)
C#: int setting.GetIntElem(int idx) → C-API These functions return the value at the specified i...
bool IsGroup()
C#: bool setting.IsGroup() → C-API These convenience functions, which are implemented as macros...
bool IsNumber()
C#: bool setting.IsNumber() → C-API These convenience functions, some of which are implemented ...
bool IsRoot()
C#: bool setting.IsRoot() → C-API This function returns CONFIG_TRUE if the given setting is the...
bool IsArray()
C#: bool setting.IsArray() → C-API These convenience functions, which are implemented as macros...
bool IsScalar()
C#: bool setting.IsScalar() → C-API These convenience functions, some of which are implemented ...
bool IsAggregate()
C#: bool setting.IsAggregate() → C-API These convenience functions, some of which are implement...
bool IsList()
C#: bool setting.IsList() → C-API These convenience functions, which are implemented as macros,...
bool LookupBool(string name)
C#: bool setting.LookupBool(string name) → C-API These functions look up the value of the child...
string LookupString(string name)
C#: string setting.LookupString(string name) → C-API These functions look up the value of the c...
LcSettingC Lookup(string path)
C#: LcSettingC setting.Lookup(string path) → C-API This function locates a setting by a path pa...
double LookupFloat(string name)
C#: double setting.LookupFloat(string name) → C-API These functions look up the value of the ch...
long LookupInt64(string name)
C#: long setting.LookupInt64(string name) → C-API These functions look up the value of the chil...
int LookupInt(string name)
C#: int setting.LookupInt(string name) → C-API These functions look up the value of the child s...
MkBufferListC LookupAll()
C#: MkBufferListC setting.LookupAll() → C-API addon - read an entire configuration below settin...
string SourceFile()
C#: string setting.SourceFile() → C-API This function returns the name of the file from which t...
void RemoveElem(int idx)
C#: parent.RemoveElem(int idx) → C-API This function removes the child setting at the given ind...
bool Exists(string name)
C#: bool setting.Exists(string name) → C-API addon - return true if name exists in the setting ...
LcSettingC AddIfNotExists(string name, LcConfigTypeE cfgtype)
C#: LcSettingC setting.AddIfNotExists(string name, LcConfigTypeE cfgtype) → C-API addon - add n...
void Remove(string name)
C#: parent.Remove(string name) → C-API This function removes and destroys the setting named nam...
int Length()
C#: int setting.Length() → C-API This function returns the number of settings in a group,...
LcConfigTypeE Type()
C#: LcConfigTypeE setting.Type() → C-API This function returns the type of the given setting …
int Index()
C#: int setting.Index() → C-API This function returns the index of the given setting within its...
int SourceLine()
C#: int setting.SourceLine() → C-API This function returns the line number of the configuration...
string Name()
C#: string setting.Name() → C-API This function returns the name of the given setting,...
LcSettingC Parent()
C#: LcSettingC setting.Parent() → C-API This function returns the parent setting of the given s...
void SetFloat(double value)
C#: setting.SetFloat(double value) → C-API These functions set the value of the given setting t...
LcSettingC SetFloatElem(int idx, double value)
C#: LcSettingC setting.SetFloatElem(int idx, double value) → C-API These functions set the valu...
void SetInt(int value)
C#: setting.SetInt(int value) → C-API These functions set the value of the given setting to val...
LcSettingC SetStringElem(int idx, string value)
C#: LcSettingC setting.SetStringElem(int idx, string value) → C-API These functions set the val...
void SetString(string value)
C#: setting.SetString(string value) → C-API These functions set the value of the given setting ...
LcSettingC SetInt64Elem(int idx, long value)
C#: LcSettingC setting.SetInt64Elem(int idx, long value) → C-API These functions set the value ...
void SetInt64(long value)
C#: setting.SetInt64(long value) → C-API These functions set the value of the given setting to ...
void SetFormat(LcConfigFormatE format)
C#: setting.SetFormat(LcConfigFormatE format) → C-API These functions get and set the external ...
void SetBool(bool value)
C#: setting.SetBool(bool value) → C-API These functions set the value of the given setting to v...
LcSettingC SetIntElem(int idx, int value)
C#: LcSettingC setting.SetIntElem(int idx, int value) → C-API These functions set the value at ...
LcSettingC SetBoolElem(int idx, int value)
C#: LcSettingC setting.SetBoolElem(int idx, int value) → C-API These functions set the value at...
LcConfigC GetConfig()
C#: LcConfigC setting.GetConfig() → C-API addon - return the LcConfigC from the LcSettingC …
LcSettingC Add(string name, LcConfigTypeE __type)
C#: [constructor] LcSettingC parent.Add(string name, LcConfigTypeE __type) → C-API This function...
LcConfigTypeE
→ C-API: LcConfigTypeE → C-API: LcConfigTypeE
LcConfigFormatE
→ C-API: LcConfigFormatE → C-API: LcConfigFormatE