MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
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 Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)