34#ifndef AIMS_GETOPT_GETOPT2_H
35#define AIMS_GETOPT_GETOPT2_H
59 const std::string &
info,
bool optional );
63 virtual bool feed(
const std::string & );
65 std::string
info()
const;
72 const std::string &
name,
73 const std::string &
info,
77 _optional( optional ),
87template <
class T>
inline
100template <
class T>
inline
103 if ( ! _optional && ! _valueRead ) {
109template <
class T>
inline
113 return std::string(
"[ " ) +
names() +
" <file name (read only): " +
116 return names() +
" <file name (read only): "
123template <
class T>
inline
129 _value.setFileName( value );
150 const std::string &
info,
bool optional );
154 virtual bool feed(
const std::string & );
155 virtual void check();
156 std::string
info()
const;
163 const std::string &
name,
164 const std::string &
info,
168 _optional( optional ),
178template <
class T>
inline
191template <
class T>
inline
194 if ( ! _optional && ! _valueRead ) {
200template <
class T>
inline
204 return std::string(
"[ " ) +
names() +
" <filename: "
207 return names() +
" <filename: "
213template <
class T>
inline
219 _value.setFileName( value );
239 const std::string &documentation );
static AimsApplication * globalApplication()
AimsApplication(int argc, const char **argv, const std::string &documentation)
virtual void initialize()
Generic reader for every format of Aims object.
Generic writer for every format of Aims object.
std::string names() const
OptionBase(const std::string &name, const std::string &info)
const std::string & name() const
bool _nameInList(const std::string &name) const
virtual bool feed(const std::string &)
virtual bool recognizeName(const std::string &)
SingleOption(aims::Reader< T > &value, const std::string &name, const std::string &info, bool optional)
SingleOption(aims::Writer< T > &value, const std::string &name, const std::string &info, bool optional)
virtual bool recognizeName(const std::string &)
virtual bool feed(const std::string &)
SingleOption(T &value, const std::string &name, const std::string &info, bool optional)
virtual bool recognizeName(const std::string &)
virtual bool feed(const std::string &)
The class for EcatSino data write operation.