std::string raw_value;
std::vector<Value> values;
- Header() { }
+ Header() = default;
Header(const Message &, const std::string &, Style = DEFAULT);
Header(const std::string &, const std::string &, Style = DEFAULT);
Message();
public:
- virtual ~Message() { }
+ virtual ~Message() = default;
void set_header(const std::string &, const std::string &);
bool has_header(const std::string &) const;
private:
Status status;
- Response() { }
+ Response() = default;
public:
Response(Status);
Status get_status() const { return status; }
class SubMessage: public Message
{
private:
- SubMessage() { }
+ SubMessage() = default;
public:
virtual std::string str() const;
template<typename C>
struct CompoundTypeDef
{
- virtual ~CompoundTypeDef() { }
+ virtual ~CompoundTypeDef() = default;
virtual std::string describe() const = 0;
virtual char *serialize(const C &, char *, char *) const = 0;
PacketDefBase(unsigned);
public:
- virtual ~PacketDefBase() { }
+ virtual ~PacketDefBase() = default;
+
virtual unsigned get_class_id() const = 0;
unsigned get_id() const { return id; }
virtual std::string describe() const = 0;
class ReceiverBase
{
protected:
- ReceiverBase() { }
+ ReceiverBase() = default;
public:
- virtual ~ReceiverBase() { }
+ virtual ~ReceiverBase() = default;
};
template<typename P>
class PacketReceiver: public virtual ReceiverBase
{
protected:
- PacketReceiver() { }
+ PacketReceiver() = default;
public:
virtual void receive(const P &) = 0;
};
struct SysAddr;
protected:
- SockAddr() { }
+ SockAddr() = default;
public:
- virtual ~SockAddr() { }
+ virtual ~SockAddr() = default;
virtual SockAddr *copy() const = 0;