theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Check_CS_API

MkBufferListC - various functions to 'check' a MkBufferListSMore...

+ Collaboration diagram for MkBufferListC_Check_CS_API:

Functions

MkBufferC csmkkernel.MkBufferListC.CheckOptionBUF (string opt, MkBufferC defval=null, bool onlyFirst=true)
  C#: MkBufferC bfl.CheckOptionBUF(string opt, MkBufferC defval = null, bool onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
bool csmkkernel.MkBufferListC.CheckOption (string opt, bool onlyFirst=false)
  C#: bool bfl.CheckOption(string opt, bool onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return MK_BOL value …
 
bool csmkkernel.MkBufferListC.CheckOptionBOL (string opt, bool defval=false, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
double csmkkernel.MkBufferListC.CheckOptionDBL (string opt, double defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
float csmkkernel.MkBufferListC.CheckOptionFLT (string opt, float defval=0F, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
short csmkkernel.MkBufferListC.CheckOptionI16 (string opt, short defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
int csmkkernel.MkBufferListC.CheckOptionI32 (string opt, int defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
long csmkkernel.MkBufferListC.CheckOptionI64 (string opt, long defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
byte csmkkernel.MkBufferListC.CheckOptionI8 (string opt, byte defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
string csmkkernel.MkBufferListC.CheckOptionSTR (string opt, string defval="", bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 

Detailed Description

MkBufferListC - various functions to 'check' a MkBufferListS

This functions are used for parsing command-line-arguments.

Function Documentation

◆ CheckOption()

bool csmkkernel.MkBufferListC.CheckOption ( string opt,
bool onlyFirst = false )
inline

C#: bool bfl.CheckOption(string opt, bool onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return MK_BOL value …

Definition at line 262 of file MkBufferListC.cs.

262 {
263 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
264 bool __retVal__L = Mk.MkBufferListCheckOption(mkrt, hdl, opt_cstr, onlyFirst);
265 Marshal.FreeHGlobal(opt_cstr);
266 return __retVal__L;
267 }
csmkkernel.MkKernel Mk

◆ CheckOptionBOL()

bool csmkkernel.MkBufferListC.CheckOptionBOL ( string opt,
bool defval = false,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 272 of file MkBufferListC.cs.

272 {
273 bool val_out;
274 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
275 MkErrorE errVal = Mk.MkBufferListCheckOptionBOL(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
276 Marshal.FreeHGlobal(opt_cstr);
277 MkErrorC.Check(hdl, errVal);
278 return val_out;
279 }
MkErrorE
collection for the different error-codes …

◆ CheckOptionBUF()

MkBufferC csmkkernel.MkBufferListC.CheckOptionBUF ( string opt,
MkBufferC defval = null,
bool onlyFirst = true )
inline

C#: MkBufferC bfl.CheckOptionBUF(string opt, MkBufferC defval = null, bool onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 249 of file MkBufferListC.cs.

249 {
250 IntPtr val_out;
251 IntPtr defval_hdl = MkBufferC.getOBJ_null_allow(defval);
252 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
253 MkErrorE errVal = Mk.MkBufferListCheckOptionBUF(mkrt, hdl, opt_cstr, defval_hdl, onlyFirst, out val_out);
254 Marshal.FreeHGlobal(opt_cstr);
255 MkErrorC.Check(hdl, errVal);
256 return MkBufferC.MkBufferC_ObjNew(val_out);
257 }

◆ CheckOptionDBL()

double csmkkernel.MkBufferListC.CheckOptionDBL ( string opt,
double defval = 0,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 282 of file MkBufferListC.cs.

282 {
283 Double val_out;
284 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
285 MkErrorE errVal = Mk.MkBufferListCheckOptionDBL(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
286 Marshal.FreeHGlobal(opt_cstr);
287 MkErrorC.Check(hdl, errVal);
288 return val_out;
289 }

◆ CheckOptionFLT()

float csmkkernel.MkBufferListC.CheckOptionFLT ( string opt,
float defval = 0F,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 292 of file MkBufferListC.cs.

292 {
293 Single val_out;
294 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
295 MkErrorE errVal = Mk.MkBufferListCheckOptionFLT(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
296 Marshal.FreeHGlobal(opt_cstr);
297 MkErrorC.Check(hdl, errVal);
298 return val_out;
299 }

◆ CheckOptionI16()

short csmkkernel.MkBufferListC.CheckOptionI16 ( string opt,
short defval = 0,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 302 of file MkBufferListC.cs.

302 {
303 Int16 val_out;
304 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
305 MkErrorE errVal = Mk.MkBufferListCheckOptionI16(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
306 Marshal.FreeHGlobal(opt_cstr);
307 MkErrorC.Check(hdl, errVal);
308 return val_out;
309 }

◆ CheckOptionI32()

int csmkkernel.MkBufferListC.CheckOptionI32 ( string opt,
int defval = 0,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 312 of file MkBufferListC.cs.

312 {
313 Int32 val_out;
314 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
315 MkErrorE errVal = Mk.MkBufferListCheckOptionI32(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
316 Marshal.FreeHGlobal(opt_cstr);
317 MkErrorC.Check(hdl, errVal);
318 return val_out;
319 }

◆ CheckOptionI64()

long csmkkernel.MkBufferListC.CheckOptionI64 ( string opt,
long defval = 0,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 322 of file MkBufferListC.cs.

322 {
323 Int64 val_out;
324 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
325 MkErrorE errVal = Mk.MkBufferListCheckOptionI64(mkrt, hdl, opt_cstr, defval, onlyFirst, out val_out);
326 Marshal.FreeHGlobal(opt_cstr);
327 MkErrorC.Check(hdl, errVal);
328 return val_out;
329 }

◆ CheckOptionI8()

byte csmkkernel.MkBufferListC.CheckOptionI8 ( string opt,
byte defval = 0,
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 332 of file MkBufferListC.cs.

332 {
333 Byte val_out;
334 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
335 MkErrorE errVal = Mk.MkBufferListCheckOptionI8(mkrt, hdl, opt_cstr, (Byte)(defval), onlyFirst, out val_out);
336 Marshal.FreeHGlobal(opt_cstr);
337 MkErrorC.Check(hdl, errVal);
338 return (byte)val_out;
339 }

◆ CheckOptionSTR()

string csmkkernel.MkBufferListC.CheckOptionSTR ( string opt,
string defval = "",
bool onlyFirst = true )
inline

C#: doc_mk_cs_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 342 of file MkBufferListC.cs.

342 {
343 IntPtr val_out;
344 IntPtr opt_cstr = Marshal.StringToHGlobalAnsi(opt);
345 IntPtr defval_cstr = Marshal.StringToHGlobalAnsi(defval);
346 MkErrorE errVal = Mk.MkBufferListCheckOptionSTR(mkrt, hdl, opt_cstr, defval_cstr, onlyFirst, out val_out);
347 Marshal.FreeHGlobal(opt_cstr);
348 Marshal.FreeHGlobal(defval_cstr);
349 MkErrorC.Check(hdl, errVal);
350 return Marshal.PtrToStringAnsi(val_out);
351 }