53 lines
1.2 KiB
C++
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ä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 */
|