BLCommandPos Class Reference

#include <BLCommand.hh>

List of all members.


Detailed Description

class BLCommandPos - postion of the command input (used to get the input position for do loops) see also: BLCommand::setPos().

Public Member Functions

 BLCommandPos (std::istream *_in)
bool isValid ()

Private Attributes

std::istream * in
std::streampos pos

Friends

class BLCommand

Constructor & Destructor Documentation

BLCommandPos::BLCommandPos ( std::istream *  _in  )  [inline]

References in, and pos.

00051                                       {
00052                 in = _in;
00053                 pos = in->tellg();
00054         }


Member Function Documentation

bool BLCommandPos::isValid (  )  [inline]

References pos.

Referenced by BLCMDdo::command().

00055 { return pos != (std::streampos)-1; }


Friends And Related Function Documentation

friend class BLCommand [friend]


Member Data Documentation

std::istream* BLCommandPos::in [private]

Referenced by BLCommandPos(), and BLCommand::setPos().

std::streampos BLCommandPos::pos [private]


The documentation for this class was generated from the following file:
g4beamline