COIN-OR::LEMON - Graph Library

Changeset 1846:6b4e38acef1c in lemon-0.x for lemon/lemon_reader.h


Ignore:
Timestamp:
12/03/05 19:30:31 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2405
Message:

I have forgot the attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lemon_reader.h

    r1845 r1846  
    426426    public:
    427427      virtual void read(std::istream&) {};
     428      ValueReaderBase() { _touched = false; }
     429
     430      void touch() { _touched = true; }
     431      bool touched() const { return _touched; }
     432
    428433      virtual ~ValueReaderBase() {}
     434    private:
     435      bool _touched;
    429436    };
    430437
     
    19271934        if (it != readers.end()) {
    19281935          it->second->read(ls);
    1929         }
     1936          it->second->touch();
     1937        }
     1938      }
     1939      for (typename Readers::iterator it = readers.begin();
     1940           it != readers.end(); ++it) {
     1941        if (!it->second->touched()) {
     1942          ErrorMessage msg;
     1943          msg << "Attribute not found in file: " << it->first;
     1944          throw IOParameterError(msg.message());
     1945        }       
    19301946      }
    19311947    }   
Note: See TracChangeset for help on using the changeset viewer.