/** * @module cdat * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) * @brief Datatype template and datatype definition for CCPU and CMem * @date 26.05.2009 */ #ifndef CDATSET_H #define CDATSET_H 1 #include #include /** * @class CDat * * Datatype template for CCPU and CMem. */ template class CDatSet : public CDat { public: /** * @method operator>> * @brief Shift/read operator for inputstream * @param stream reference to inputstream * @param cdat reference to object which will be read from stream * @return reference to inputstream * @globalvars none * @exception none * @conditions none */ friend std::istream& operator>>(std::istream & stream, CDatSet& cdat) { std::string s; stream >> s; cdat.m_value = s.size(); return stream; } private: /* members */ T m_value; }; #endif /* vim: set et sw=2 ts=2: */