Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012

Position.h

Go to the documentation of this file.
00001 // $Id:$
00002 #ifndef JOBOPTIONSVC_POSITION_H_
00003 #define JOBOPTIONSVC_POSITION_H_
00004 // ============================================================================
00005 // Includes:
00006 // ============================================================================
00007 // STD & STL:
00008 // ============================================================================
00009 #include <string>
00010 // ============================================================================
00011 namespace Gaudi { namespace Parsers {
00012 // ============================================================================
00013 class Position {
00014  public:
00015      Position():filename_(""), line_(0), column_(0) {}
00016      Position(const std::string& filename, unsigned line, unsigned column)
00017        :filename_(filename), line_(line), column_(column) {}
00018      const std::string& filename() const { return filename_; }
00019      unsigned line() const { return line_; }
00020      unsigned column() const { return column_; }
00021      void set_filename(const std::string& filename)  { filename_ = filename;}
00022      std::string ToString() const;
00023      bool Exists() const { return line_ !=0;}
00024  private:
00025      std::string filename_;
00026      unsigned line_;
00027      unsigned column_;
00028 };
00029 // ============================================================================
00030 }  /* Gaudi */ }  /* Parsers */
00031 // ============================================================================
00032 #endif  // JOBOPTIONSVC_POSITION_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:18 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004