#ifndef __JDB_JDBString__ #define __JDB_JDBString__ #include #include #include /** * \author mdejong */ namespace JDATABASE {} namespace JPP { using namespace JDATABASE; } namespace JDATABASE { /** * Wrapper class to read string until end-of-line. */ struct JDBString : public std::string { /** * Copy constructor. * * \param buffer buffer */ JDBString(const std::string& buffer = "") : std::string(buffer) {} /** * Read database string from input stream. * * \param in input stream * \param object database string * \return input stream */ friend inline std::istream& operator>>(std::istream& in, JDBString& object) { using namespace std; return getline(in, object); } ClassDefNV(JDBString, 1); }; } #endif