mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
String-ifier for streams as preparation for the GeoClasses
This commit is contained in:
@@ -5,17 +5,22 @@
|
||||
|
||||
#ifndef SERIALIZE_H
|
||||
#define SERIALIZE_H
|
||||
#include <QDataStream>
|
||||
|
||||
class QDataStream;
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Serialize interface
|
||||
*/
|
||||
class ISerialize
|
||||
{
|
||||
public:
|
||||
ISerialize();
|
||||
virtual ~ISerialize() {};
|
||||
|
||||
virtual QDataStream& operator<< (QDataStream& in) = 0;
|
||||
virtual QDataStream& operator>> (QDataStream& out) const = 0;
|
||||
ISerialize() {}
|
||||
virtual ~ISerialize() {}
|
||||
virtual QDataStream &operator<< (QDataStream &in) = 0;
|
||||
virtual QDataStream &operator>> (QDataStream &out) const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // SERIALIZE_H
|
||||
|
||||
Reference in New Issue
Block a user