MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrUtil
lgrValueArg.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
10
11
12
#ifndef lgrValueArg_H_
13
#define lgrValueArg_H_
14
15
#include "
lgrArg.h
"
16
#include "
runtimeValue.h
"
17
#include <cmdLine/cmdValueArg.h>
18
#include <string>
19
#include <vlutil/vlString.h>
20
21
namespace
MAKLogger
22
{
23
26
template
<
typename
ValueType>
27
class
DtLgrValueArg
:
public
DtCmdLine::ValueArg<ValueType> ,
public
DtLgrArg
28
{
29
public
:
30
31
DtLgrValueArg
(
const
std::string& flag,
const
std::string& name,
32
const
std::string& desc,
bool
req, ValueType value,
const
std::string& typeDesc);
33
virtual
~DtLgrValueArg
();
34
35
private
:
37
DtLgrValueArg
(
const
DtLgrValueArg
&);
39
DtLgrValueArg
&
operator=
(
const
DtLgrValueArg
&);
40
public
:
41
43
virtual
operator
DtCmdLine::Arg*();
44
46
virtual
DtString
toDebugString
()
const
;
47
49
virtual
bool
isArgSet
()
const
;
50
52
virtual
const
DtString&
type
()
const
;
53
55
virtual
DtString
valueAsString
()
const
;
56
58
virtual
std::vector<DtString>
valueAsStringList
()
const
;
59
61
virtual
void
setValueString
(
const
DtString& value);
62
};
63
64
#define lgrValueArg_INC_
65
#include "lgrValueArg.inl"
66
#undef lgrValueArg_INC_
67
68
}
69
70
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)