theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Check_CC_API

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

+ Collaboration diagram for MkBufferListC_Check_CC_API:

Functions

MkBufferCccmkkernel::MkBufferListC::CheckOptionBUF (MK_STRN opt, MkBufferC *defval=NULL, MK_BOOL onlyFirst=true)
  C++: MkBufferC* bfl.CheckOptionBUF(MK_STRN opt, MkBufferC* defval = NULL, MK_BOOL onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MkBufferCccmkkernel::MkBufferListC::CheckOptionBUF (const std::string &opt, MkBufferC *defval=NULL, MK_BOOL onlyFirst=true)
  C++: MkBufferC* bfl.CheckOptionBUF(MK_STRN opt, MkBufferC* defval = NULL, MK_BOOL onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_BOOL ccmkkernel::MkBufferListC::CheckOption (MK_STRN opt, MK_BOOL onlyFirst=false)
  C++: MK_BOOL bfl.CheckOption(MK_STRN opt, MK_BOOL onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return libmkkernel::MK_BOL value …
 
MK_BOOL ccmkkernel::MkBufferListC::CheckOption (const std::string &opt, MK_BOOL onlyFirst=false)
  C++: MK_BOOL bfl.CheckOption(MK_STRN opt, MK_BOOL onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return libmkkernel::MK_BOL value …
 
MK_BOOL ccmkkernel::MkBufferListC::CheckOptionBOL (MK_STRN opt, MK_BOOL defval=false, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_BOOL ccmkkernel::MkBufferListC::CheckOptionBOL (const std::string &opt, MK_BOOL defval=false, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_DBL ccmkkernel::MkBufferListC::CheckOptionDBL (MK_STRN opt, MK_DBL defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_DBL ccmkkernel::MkBufferListC::CheckOptionDBL (const std::string &opt, MK_DBL defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_FLT ccmkkernel::MkBufferListC::CheckOptionFLT (MK_STRN opt, MK_FLT defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_FLT ccmkkernel::MkBufferListC::CheckOptionFLT (const std::string &opt, MK_FLT defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I16 ccmkkernel::MkBufferListC::CheckOptionI16 (MK_STRN opt, MK_I16 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I16 ccmkkernel::MkBufferListC::CheckOptionI16 (const std::string &opt, MK_I16 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I32 ccmkkernel::MkBufferListC::CheckOptionI32 (MK_STRN opt, MK_I32 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I32 ccmkkernel::MkBufferListC::CheckOptionI32 (const std::string &opt, MK_I32 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I64 ccmkkernel::MkBufferListC::CheckOptionI64 (MK_STRN opt, MK_I64 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I64 ccmkkernel::MkBufferListC::CheckOptionI64 (const std::string &opt, MK_I64 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I8 ccmkkernel::MkBufferListC::CheckOptionI8 (MK_STRN opt, MK_I8 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_I8 ccmkkernel::MkBufferListC::CheckOptionI8 (const std::string &opt, MK_I8 defval=0, MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_STRN ccmkkernel::MkBufferListC::CheckOptionSTR (MK_STRN opt, MK_STRN defval="", MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
MK_STRN ccmkkernel::MkBufferListC::CheckOptionSTR (const std::string &opt, MK_STRN defval="", MK_BOOL onlyFirst=true)
  C++: doc_mk_cc_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.

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

Function Documentation

◆ CheckOption() [1/2]

MK_BOOL ccmkkernel::MkBufferListC::CheckOption ( const std::string & opt,
MK_BOOL onlyFirst = false )
inline

C++: MK_BOOL bfl.CheckOption(MK_STRN opt, MK_BOOL onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return libmkkernel::MK_BOL value …

Definition at line 337 of file MkBufferListC_inline_cc.hh.

337 {
338 MK_UNUSED auto bfl = getBFL();
339 const MK_STRN opt_hdl = opt.c_str();
340 MK_BOOL __retVal__L = MkBufferListCheckOption(bfl, opt_hdl, onlyFirst);
341 return __retVal__L;
342 }
MK_BFL getBFL() const
return the LibMsgqueObject from current MkBufferListC instance
#define MkBufferListCheckOption(...)
#define MK_UNUSED
mark unnused variables and functions
bool MK_BOOL
real bool data-type
const MK_STRB * MK_STRN
constant string pointer data-type

◆ CheckOption() [2/2]

MK_BOOL ccmkkernel::MkBufferListC::CheckOption ( MK_STRN opt,
MK_BOOL onlyFirst = false )
inline

C++: MK_BOOL bfl.CheckOption(MK_STRN opt, MK_BOOL onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return libmkkernel::MK_BOL value …

Definition at line 330 of file MkBufferListC_inline_cc.hh.

330 {
331 MK_UNUSED auto bfl = getBFL();
332 MK_BOOL __retVal__L = MkBufferListCheckOption(bfl, opt, onlyFirst);
333 return __retVal__L;
334 }

◆ CheckOptionBOL() [1/2]

MK_BOOL ccmkkernel::MkBufferListC::CheckOptionBOL ( const std::string & opt,
MK_BOOL defval = false,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 356 of file MkBufferListC_inline_cc.hh.

356 {
357 MK_UNUSED auto bfl = getBFL();
358 MK_BOOL val_out;
359 const MK_STRN opt_hdl = opt.c_str();
360 enum MkErrorE errVal = MkBufferListCheckOptionBOL(bfl, opt_hdl, defval, onlyFirst, &val_out);
361 MkErrorC_Check(bfl, errVal);
362 return val_out;
363 }
#define MkErrorC_Check(errObj, errVal)
#define MkBufferListCheckOptionBOL(...)
MkErrorE
collection for the different error-codes …

◆ CheckOptionBOL() [2/2]

MK_BOOL ccmkkernel::MkBufferListC::CheckOptionBOL ( MK_STRN opt,
MK_BOOL defval = false,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 347 of file MkBufferListC_inline_cc.hh.

347 {
348 MK_UNUSED auto bfl = getBFL();
349 MK_BOOL val_out;
350 enum MkErrorE errVal = MkBufferListCheckOptionBOL(bfl, opt, defval, onlyFirst, &val_out);
351 MkErrorC_Check(bfl, errVal);
352 return val_out;
353 }

◆ CheckOptionBUF() [1/2]

MkBufferC * ccmkkernel::MkBufferListC::CheckOptionBUF ( const std::string & opt,
MkBufferC * defval = NULL,
MK_BOOL onlyFirst = true )
inline

C++: MkBufferC* bfl.CheckOptionBUF(MK_STRN opt, MkBufferC* defval = NULL, MK_BOOL onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 317 of file MkBufferListC_inline_cc.hh.

317 {
318 MK_UNUSED auto bfl = getBFL();
319 MK_BUF val_out;
320 const MK_STRN opt_hdl = opt.c_str();
321 MK_BUF defval_hdl = MkBufferC::getBUF__null_allow(defval);
322 enum MkErrorE errVal = MkBufferListCheckOptionBUF(bfl, opt_hdl, defval_hdl, onlyFirst, &val_out);
323 MkErrorC_Check(bfl, errVal);
325 }
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
MK_BUF getBUF__null_allow() const
return the LibMsgqueObject from current MkBufferC instance
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferListCheckOptionBUF(...)
#define MK_RT_CALL

◆ CheckOptionBUF() [2/2]

MkBufferC * ccmkkernel::MkBufferListC::CheckOptionBUF ( MK_STRN opt,
MkBufferC * defval = NULL,
MK_BOOL onlyFirst = true )
inline

C++: MkBufferC* bfl.CheckOptionBUF(MK_STRN opt, MkBufferC* defval = NULL, MK_BOOL onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …

Definition at line 307 of file MkBufferListC_inline_cc.hh.

307 {
308 MK_UNUSED auto bfl = getBFL();
309 MK_BUF val_out;
310 MK_BUF defval_hdl = MkBufferC::getBUF__null_allow(defval);
311 enum MkErrorE errVal = MkBufferListCheckOptionBUF(bfl, opt, defval_hdl, onlyFirst, &val_out);
312 MkErrorC_Check(bfl, errVal);
314 }

◆ CheckOptionDBL() [1/2]

MK_DBL ccmkkernel::MkBufferListC::CheckOptionDBL ( const std::string & opt,
MK_DBL defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 375 of file MkBufferListC_inline_cc.hh.

375 {
376 MK_UNUSED auto bfl = getBFL();
377 MK_DBL val_out;
378 const MK_STRN opt_hdl = opt.c_str();
379 enum MkErrorE errVal = MkBufferListCheckOptionDBL(bfl, opt_hdl, defval, onlyFirst, &val_out);
380 MkErrorC_Check(bfl, errVal);
381 return val_out;
382 }
#define MkBufferListCheckOptionDBL(...)
double MK_DBL
8 byte double data-type

◆ CheckOptionDBL() [2/2]

MK_DBL ccmkkernel::MkBufferListC::CheckOptionDBL ( MK_STRN opt,
MK_DBL defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 366 of file MkBufferListC_inline_cc.hh.

366 {
367 MK_UNUSED auto bfl = getBFL();
368 MK_DBL val_out;
369 enum MkErrorE errVal = MkBufferListCheckOptionDBL(bfl, opt, defval, onlyFirst, &val_out);
370 MkErrorC_Check(bfl, errVal);
371 return val_out;
372 }

◆ CheckOptionFLT() [1/2]

MK_FLT ccmkkernel::MkBufferListC::CheckOptionFLT ( const std::string & opt,
MK_FLT defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 394 of file MkBufferListC_inline_cc.hh.

394 {
395 MK_UNUSED auto bfl = getBFL();
396 MK_FLT val_out;
397 const MK_STRN opt_hdl = opt.c_str();
398 enum MkErrorE errVal = MkBufferListCheckOptionFLT(bfl, opt_hdl, defval, onlyFirst, &val_out);
399 MkErrorC_Check(bfl, errVal);
400 return val_out;
401 }
#define MkBufferListCheckOptionFLT(...)
float MK_FLT
4 byte float data-type

◆ CheckOptionFLT() [2/2]

MK_FLT ccmkkernel::MkBufferListC::CheckOptionFLT ( MK_STRN opt,
MK_FLT defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 385 of file MkBufferListC_inline_cc.hh.

385 {
386 MK_UNUSED auto bfl = getBFL();
387 MK_FLT val_out;
388 enum MkErrorE errVal = MkBufferListCheckOptionFLT(bfl, opt, defval, onlyFirst, &val_out);
389 MkErrorC_Check(bfl, errVal);
390 return val_out;
391 }

◆ CheckOptionI16() [1/2]

MK_I16 ccmkkernel::MkBufferListC::CheckOptionI16 ( const std::string & opt,
MK_I16 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 413 of file MkBufferListC_inline_cc.hh.

413 {
414 MK_UNUSED auto bfl = getBFL();
415 MK_I16 val_out;
416 const MK_STRN opt_hdl = opt.c_str();
417 enum MkErrorE errVal = MkBufferListCheckOptionI16(bfl, opt_hdl, defval, onlyFirst, &val_out);
418 MkErrorC_Check(bfl, errVal);
419 return val_out;
420 }
#define MkBufferListCheckOptionI16(...)
signed short int MK_I16
2 byte short data-type

◆ CheckOptionI16() [2/2]

MK_I16 ccmkkernel::MkBufferListC::CheckOptionI16 ( MK_STRN opt,
MK_I16 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 404 of file MkBufferListC_inline_cc.hh.

404 {
405 MK_UNUSED auto bfl = getBFL();
406 MK_I16 val_out;
407 enum MkErrorE errVal = MkBufferListCheckOptionI16(bfl, opt, defval, onlyFirst, &val_out);
408 MkErrorC_Check(bfl, errVal);
409 return val_out;
410 }

◆ CheckOptionI32() [1/2]

MK_I32 ccmkkernel::MkBufferListC::CheckOptionI32 ( const std::string & opt,
MK_I32 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 432 of file MkBufferListC_inline_cc.hh.

432 {
433 MK_UNUSED auto bfl = getBFL();
434 MK_I32 val_out;
435 const MK_STRN opt_hdl = opt.c_str();
436 enum MkErrorE errVal = MkBufferListCheckOptionI32(bfl, opt_hdl, defval, onlyFirst, &val_out);
437 MkErrorC_Check(bfl, errVal);
438 return val_out;
439 }
#define MkBufferListCheckOptionI32(...)
signed int MK_I32
4 byte integer data-type

◆ CheckOptionI32() [2/2]

MK_I32 ccmkkernel::MkBufferListC::CheckOptionI32 ( MK_STRN opt,
MK_I32 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 423 of file MkBufferListC_inline_cc.hh.

423 {
424 MK_UNUSED auto bfl = getBFL();
425 MK_I32 val_out;
426 enum MkErrorE errVal = MkBufferListCheckOptionI32(bfl, opt, defval, onlyFirst, &val_out);
427 MkErrorC_Check(bfl, errVal);
428 return val_out;
429 }

◆ CheckOptionI64() [1/2]

MK_I64 ccmkkernel::MkBufferListC::CheckOptionI64 ( const std::string & opt,
MK_I64 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 451 of file MkBufferListC_inline_cc.hh.

451 {
452 MK_UNUSED auto bfl = getBFL();
453 MK_I64 val_out;
454 const MK_STRN opt_hdl = opt.c_str();
455 enum MkErrorE errVal = MkBufferListCheckOptionI64(bfl, opt_hdl, defval, onlyFirst, &val_out);
456 MkErrorC_Check(bfl, errVal);
457 return val_out;
458 }
#define MkBufferListCheckOptionI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ CheckOptionI64() [2/2]

MK_I64 ccmkkernel::MkBufferListC::CheckOptionI64 ( MK_STRN opt,
MK_I64 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 442 of file MkBufferListC_inline_cc.hh.

442 {
443 MK_UNUSED auto bfl = getBFL();
444 MK_I64 val_out;
445 enum MkErrorE errVal = MkBufferListCheckOptionI64(bfl, opt, defval, onlyFirst, &val_out);
446 MkErrorC_Check(bfl, errVal);
447 return val_out;
448 }

◆ CheckOptionI8() [1/2]

MK_I8 ccmkkernel::MkBufferListC::CheckOptionI8 ( const std::string & opt,
MK_I8 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 470 of file MkBufferListC_inline_cc.hh.

470 {
471 MK_UNUSED auto bfl = getBFL();
472 MK_I8 val_out;
473 const MK_STRN opt_hdl = opt.c_str();
474 enum MkErrorE errVal = MkBufferListCheckOptionI8(bfl, opt_hdl, (MK_I8)(defval), onlyFirst, &val_out);
475 MkErrorC_Check(bfl, errVal);
476 return (MK_I8)val_out;
477 }
#define MkBufferListCheckOptionI8(...)
signed char MK_I8
1 byte byte data-type

◆ CheckOptionI8() [2/2]

MK_I8 ccmkkernel::MkBufferListC::CheckOptionI8 ( MK_STRN opt,
MK_I8 defval = 0,
MK_BOOL onlyFirst = true )
inline

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

Definition at line 461 of file MkBufferListC_inline_cc.hh.

461 {
462 MK_UNUSED auto bfl = getBFL();
463 MK_I8 val_out;
464 enum MkErrorE errVal = MkBufferListCheckOptionI8(bfl, opt, (MK_I8)(defval), onlyFirst, &val_out);
465 MkErrorC_Check(bfl, errVal);
466 return (MK_I8)val_out;
467 }

◆ CheckOptionSTR() [1/2]

MK_STRN ccmkkernel::MkBufferListC::CheckOptionSTR ( const std::string & opt,
MK_STRN defval = "",
MK_BOOL onlyFirst = true )
inline

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

Definition at line 489 of file MkBufferListC_inline_cc.hh.

489 {
490 MK_UNUSED auto bfl = getBFL();
491 MK_STRN val_out;
492 const MK_STRN opt_hdl = opt.c_str();
493 enum MkErrorE errVal = MkBufferListCheckOptionSTR(bfl, opt_hdl, defval, onlyFirst, &val_out);
494 MkErrorC_Check(bfl, errVal);
495 return val_out;
496 }
#define MkBufferListCheckOptionSTR(...)

◆ CheckOptionSTR() [2/2]

MK_STRN ccmkkernel::MkBufferListC::CheckOptionSTR ( MK_STRN opt,
MK_STRN defval = "",
MK_BOOL onlyFirst = true )
inline

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

Definition at line 480 of file MkBufferListC_inline_cc.hh.

480 {
481 MK_UNUSED auto bfl = getBFL();
482 MK_STRN val_out;
483 enum MkErrorE errVal = MkBufferListCheckOptionSTR(bfl, opt, defval, onlyFirst, &val_out);
484 MkErrorC_Check(bfl, errVal);
485 return val_out;
486 }