mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
27 lines
600 B
C++
27 lines
600 B
C++
//! Copyright (C) 2013 Roland Winklmeier
|
|
//! This Source Code Form is subject to the terms of the Mozilla Public
|
|
//! License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
//! file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
|
|
#ifndef SERIALIZE_H
|
|
#define SERIALIZE_H
|
|
#include <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;
|
|
};
|
|
}
|
|
|
|
#endif // SERIALIZE_H
|