26 #ifndef CASATOOLS_PROC_REGISTRAR_H
27 #define CASATOOLS_PROC_REGISTRAR_H
38 ServiceId( std::string id_p, std::string uri_p, std::list<std::string> types_p,
unsigned int priority_p=0 ) :
id_(id_p),
uri_(uri_p),
types_(types_p),
priority_(priority_p) { }
42 std::string
id( )
const {
return id_; }
45 const std::list<std::string> &
types( )
const {
return types_; }
48 operator std::string( )
const {
return id_; }
57 bool operator<(
const std::string &id_o )
const {
return id_ < id_o; }
58 bool operator>(
const std::string &id_o )
const {
return id_ > id_o; }
59 bool operator==(
const std::string &id_o )
const {
return id_ == id_o; }
60 bool operator!=(
const std::string &id_o )
const {
return id_ != id_o; }
61 bool operator<=(
const std::string &id_o )
const {
return id_ <= id_o; }
62 bool operator>=(
const std::string &id_o )
const {
return id_ >= id_o; }
85 std::list<std::string>
types( ) {
87 std::set<std::string> result_set;
90 result_set.insert(sid.types( ).begin( ), sid.types( ).end( ) ); } );
92 return std::list<std::string>(result_set.begin( ),result_set.end( ));
96 bool remove( std::string id );
102 std::lock_guard<std::mutex> guard(
uri_mutex);