Files
scandocs/uni/masterarbeit/source/moversight/app/PeerDescription.h
2014-06-30 13:58:10 +02:00

53 lines
1.2 KiB
C++

// -*- C++ -*-
/*
* File: PeerDescription.h
* Author: jgaebler
*
* Created on September 28, 2010, 3:45 PM
*/
#pragma once
#ifndef PEERDESCRIPTION_H
#define PEERDESCRIPTION_H
#include "../core/serialization/serializable.h"
#include <string>
namespace ubeeme {
namespace moversight {
/**
* @class PeerDescription
* @author Jan G&auml;bler
* @ingroup Moversight
* @brief Provides a meta object which describe a peer within the moversight system, as the real name of a peer or this XMPP address.
*/
class PeerDescription : public Serializable {
public:
PeerDescription();
PeerDescription(const std::string & d);
PeerDescription(const PeerDescription & other);
virtual ~PeerDescription();
std::string getDescription() const;
virtual void set(Archive & archive);
PeerDescription & operator=(const PeerDescription & other);
protected:
/**
* The description of the peer, represented as string.
*/
std::string desc;
};
std::ostream & operator<<(std::ostream & s, const PeerDescription & pDesc);
}
}
#endif /* PEERDESCRIPTION_H */