DCL 3.7.4
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 34 of file Arguments.cpp.

Function Documentation

◆ __key_options()

String __key_options ( const Arguments::Option * _options)

Definition at line 151 of file Arguments.cpp.

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

◆ IMPLEMENT_CLASSINFO()

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( Arguments ,
Object  )

Definition at line 16 of file Arguments.cpp.

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