//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008 The Regents of the University of California // // This file is part of Qbox // // Qbox is distributed under the terms of the GNU General Public License // as published by the Free Software Foundation, either version 2 of // the License, or (at your option) any later version. // See the file COPYING in the root directory of this distribution // or . // //////////////////////////////////////////////////////////////////////////////// // // SampleReader.h // //////////////////////////////////////////////////////////////////////////////// #ifndef SAMPLEREADER_H #define SAMPLEREADER_H enum event_type { unit_cell, species, atom, wavefunction, wavefunction_velocity, slater_determinant, end, invalid }; class Context; class Sample; class SampleReader { private: const Context& ctxt_; public: SampleReader(const Context& ctxt); void readSample(Sample& s, const std::string uri, bool serial); }; class SampleReaderException { public: std::string msg; SampleReaderException(std::string s) : msg(s) {} }; #endif