Changeset 1846:6b4e38acef1c in lemon-0.x
- Timestamp:
- 12/03/05 19:30:31 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2405
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lemon_reader.h
r1845 r1846 426 426 public: 427 427 virtual void read(std::istream&) {}; 428 ValueReaderBase() { _touched = false; } 429 430 void touch() { _touched = true; } 431 bool touched() const { return _touched; } 432 428 433 virtual ~ValueReaderBase() {} 434 private: 435 bool _touched; 429 436 }; 430 437 … … 1927 1934 if (it != readers.end()) { 1928 1935 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 } 1930 1946 } 1931 1947 }
Note: See TracChangeset
for help on using the changeset viewer.