Jpp
|
Template specialisation of JPARSER::JParserTemplateElement for type JCounter
.
More...
#include <JParser.hh>
Public Member Functions | |
JParserTemplateElement (JCounter &object, const std::string &name, const std::string &help="") | |
Constructor. More... | |
virtual std::istream & | read (std::istream &in) |
Stream input. More... | |
virtual std::ostream & | write (std::ostream &out) const |
Stream output. More... | |
virtual bool | getStatus () const |
Status of object. More... | |
virtual bool | getInitialisationStatus () const |
Get initialisation status of parameter. More... | |
virtual void | setInitialiationStatus (const bool value) |
Set initialisation status of parameter. More... | |
virtual bool | gcount () const |
Read counter. More... | |
const std::string & | getName () const |
Get name of parameter. More... | |
const std::string & | getHelp () const |
Get help of parameter. More... | |
virtual void | print (std::ostream &out) const |
Print. More... | |
Protected Attributes | |
std::string | __name |
std::string | __help |
Private Attributes | |
JCounter & | object |
Template specialisation of JPARSER::JParserTemplateElement for type JCounter
.
The value is by default set to zero and set incremented in method read() without reading any data. This makes it possible to parse mutiple options in one go (e.g. -aaa
). This class implements the JPARSER::JParserElementInterface interface.
Definition at line 1167 of file JParser.hh.
|
inline |
Constructor.
The constructor assigns the default value false to the referenced parameter.
object | reference to object |
name | name of object |
help | help of object |
Definition at line 1180 of file JParser.hh.
|
inlinevirtual |
Stream input.
This method sets the value to true, without reading any data.
in | input stream |
Implements JLANG::JStreamInput.
Definition at line 1195 of file JParser.hh.
|
inlinevirtual |
Stream output.
out | output stream |
Implements JLANG::JStreamOutput.
Definition at line 1207 of file JParser.hh.
|
inlinevirtual |
Status of object.
Implements JPARSER::JParserElementInterface.
Definition at line 1218 of file JParser.hh.
|
inlinevirtual |
Get initialisation status of parameter.
Implements JPARSER::JParserElementInterface.
Definition at line 1229 of file JParser.hh.
|
inlinevirtual |
Set initialisation status of parameter.
This implementation doesn't do anything.
value | initialisation status |
Implements JPARSER::JParserElementInterface.
Definition at line 1241 of file JParser.hh.
|
inlinevirtual |
Read counter.
Reimplemented from JPARSER::JParserElementInterface.
Definition at line 1250 of file JParser.hh.
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Print.
out | output stream |
Reimplemented in JPARSER::JParserTemplateElement< JType_t, true >.
Definition at line 416 of file JParser.hh.
|
private |
Definition at line 1257 of file JParser.hh.
|
protectedinherited |
Definition at line 453 of file JParser.hh.
|
protectedinherited |
Definition at line 454 of file JParser.hh.