DCL 4.0
Loading...
Searching...
No Matches
mediatag/main.h
Go to the documentation of this file.
1#ifndef __DCL_MEDIA_MAIN_H__
2#define __DCL_MEDIA_MAIN_H__ 20250130
3
4#ifndef __DCL_ARGUMENTS_H__
5#include <dcl/Arguments.h>
6#endif
7
8__DCL_BEGIN_NAMESPACE
9
10class MainArguments : public Arguments
11{
12public:
13 MainArguments(Writer& _output, Writer& _errout);
14
15 virtual String toString() const;
16
17 bool dryrun() const {
18 return __dryrun;
19 }
20
21 bool summary() const {
22 return __summary;
23 }
24
25 bool verbose() const {
26 return __verbose;
27 }
28
29 const String& database() const {
30 return __database;
31 }
32
33protected:
34 virtual void onOption(int _key, const String& _arg)
36
37 virtual String onValidate();
38
39 bool __dryrun;
41 bool __verbose;
42 String __database;
43};
44
45__DCL_END_NAMESPACE
46
47#endif // __DCL_MEDIA_MAIN_H__
#define __DCL_THROWS1(e)
Definition Config.h:167
MainArguments(Writer &_output, Writer &_errout)
bool verbose() const
virtual void onOption(int _key, const String &_arg) __DCL_THROWS1(Exception *)
virtual String onValidate()
bool summary() const
virtual String toString() const
const String & database() const
bool dryrun() const