00001 #ifndef PROTON_TARGET_HPP
00002 #define PROTON_TARGET_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "./internal/export.hpp"
00026 #include "./internal/object.hpp"
00027 #include "./value.hpp"
00028 #include "./terminus.hpp"
00029
00030 #include <string>
00031
00032 namespace proton {
00033
00034 class sender;
00035 class receiver;
00036
00040 class target : public terminus {
00041 public:
00043 target() : terminus() {}
00044
00045 using terminus::durability_mode;
00046 using terminus::expiry_policy;
00047
00049 PN_CPP_EXTERN std::string address() const;
00050
00051 private:
00052 target(pn_terminus_t* t);
00053 target(const sender&);
00054 target(const receiver&);
00055
00057 friend class internal::factory<target>;
00058 friend class sender;
00059 friend class receiver;
00061 };
00062
00063 }
00064
00065 #endif // PROTON_TARGET_HPP