Changeset 18087


Ignore:
Timestamp:
01/06/15 14:17:01 (10 years ago)
Author:
smueller
Message:
fields of class MMatrix are now initialized in a method of MMatrix rather than in the class header to support pre C++11 standards
Location:
branches/removing_cpp11_features/mfileio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/removing_cpp11_features/mfileio/MMatrix.cc

    r18009 r18087  
    4343    fTitle = title ? title :
    4444    "Parameter container storing a vector of vectors to hold floating numbers";
     45       
     46    initialize();
     47}
     48//------------------------------------------------------------------------------
     49void MMatrix::initialize() {
     50    fDelimiter = ',';
     51    fComment = '#';
     52    fFileName = "";
     53    fLineNumber = 0;
    4554}
    4655//------------------------------------------------------------------------------
  • branches/removing_cpp11_features/mfileio/MMatrix.h

    r18009 r18087  
    3232    // The deilimiter symbol which seperates the data chunks in the file to be
    3333    // parsed.
    34     char fDelimiter = ',';
     34    char fDelimiter;
    3535
    3636    // The data text file to be parsed may have comment lines which are
    3737    // indicated with the comment character.
    3838    // Leading whitespaces in front of the comment symbol are fine/ are ignored.
    39     char fComment = '#';
     39    char fComment;
    4040
    4141    // The fFileName can only be set using ReadFile( filename ). This is to make
    4242    // sure that the fFileName is always the one of the actual file parsed in.
    43     TString fFileName = "";
     43    TString fFileName;
    4444
    4545    // the line number worked on is stored here by the ReadFile( fileneam )
    4646    // function so that other functions as the pedantic_strtod() can provide
    4747    // an additional information in case they have to throw exceptions.
    48     unsigned int fLineNumber = 0;
     48    unsigned int fLineNumber;
     49
     50    void initialize();
    4951
    5052    // a more pedantic version of std::strtod()
Note: See TracChangeset for help on using the changeset viewer.