DCL 4.0
Loading...
Searching...
No Matches
Arguments.cpp File Reference
#include <dcl/Config.h>
#include <wctype.h>
#include <dcl/Charset.h>
#include <dcl/Writer.h>
#include <dcl/Arguments.h>

Go to the source code of this file.

Macros

#define KEY_USAGE   -1

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (Arguments, Object) Arguments
String __key_options (const Arguments::Option *_options)

Macro Definition Documentation

◆ KEY_USAGE

#define KEY_USAGE   -1

Definition at line 35 of file Arguments.cpp.

Function Documentation

◆ __key_options()

String __key_options ( const Arguments::Option * _options)

Definition at line 152 of file Arguments.cpp.

153{
154 StringBuilder sb;
155 while (_options->name || _options->doc) {
156 if (iswprint(_options->key)) {
157 sb += (wchar_t)_options->key;
158 }
159 _options++;
160 }
161 return sb;
162}

◆ IMPLEMENT_CLASSINFO()

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( Arguments ,
Object  )

Definition at line 16 of file Arguments.cpp.

26 : __output(_output), __errout(_errout)
27{
28 __program_version = _program_version;
29 __program_bug_address = _program_bug_address;
30 __arg_doc = _arg_doc;
31 __doc = _doc;
32 __options = _options;
33}