inlib  1.2.0
Public Member Functions | Protected Member Functions | Protected Attributes
inlib::rcsv::fntuple Class Reference
Inheritance diagram for inlib::rcsv::fntuple:
Inheritance graph
[legend]
Collaboration diagram for inlib::rcsv::fntuple:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 fntuple (const std::string &a_file)
virtual ~fntuple ()
bool open ()
bool initialize (std::ostream &a_out, char a_sep=0, const std::string &a_suffix="x", bool a_verbose=false)

Protected Member Functions

 fntuple (const fntuple &a_from)
fntupleoperator= (const fntuple &a_from)

Protected Attributes

std::string m_file
std::ifstream m_freader

Detailed Description

Definition at line 563 of file rcsv_ntuple.


Constructor & Destructor Documentation

inlib::rcsv::fntuple::fntuple ( const std::string &  a_file) [inline]

Definition at line 565 of file rcsv_ntuple.

  :ntuple(m_freader)
  ,m_file(a_file)
  {}
virtual inlib::rcsv::fntuple::~fntuple ( ) [inline, virtual]

Definition at line 569 of file rcsv_ntuple.

{m_freader.close();}
inlib::rcsv::fntuple::fntuple ( const fntuple a_from) [inline, protected]

Definition at line 571 of file rcsv_ntuple.

  :read::intuple(a_from),ntuple(a_from)
  ,m_file(a_from.m_file)
  {}

Member Function Documentation

bool inlib::rcsv::fntuple::initialize ( std::ostream &  a_out,
char  a_sep = 0,
const std::string &  a_suffix = "x",
bool  a_verbose = false 
) [inline]

Reimplemented from inlib::rcsv::ntuple.

Definition at line 584 of file rcsv_ntuple.

                                                 {
    if(!m_freader.is_open()) {
      m_freader.open(m_file.c_str());
      if(m_freader.fail()) {
        a_out << "inlib::rcsv::ntuple::initialize :"
              << " can't open " << m_file << "."
              << std::endl;
        return false;
      }
    }
    return ntuple::initialize(a_out,a_sep,a_suffix,a_verbose);
  }
bool inlib::rcsv::fntuple::open ( ) [inline]

Definition at line 580 of file rcsv_ntuple.

             {
    m_freader.open(m_file.c_str());
    return m_freader.fail()?false:true;
  }
fntuple& inlib::rcsv::fntuple::operator= ( const fntuple a_from) [inline, protected]

Definition at line 575 of file rcsv_ntuple.

                                           {
    m_file = a_from.m_file;
    return *this;
  }

Member Data Documentation

std::string inlib::rcsv::fntuple::m_file [protected]

Definition at line 600 of file rcsv_ntuple.

std::ifstream inlib::rcsv::fntuple::m_freader [protected]

Definition at line 601 of file rcsv_ntuple.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines