JBoss Data Grid HotRod C++ Client  7.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ServerNameId.h
Go to the documentation of this file.
1 /*
2  * ServerNameId.h
3  *
4  * Created on: Feb 22, 2016
5  * Author: rigazilla
6  */
7 
8 #ifndef INCLUDE_INFINISPAN_HOTROD_SERVERNAMEID_H_
9 #define INCLUDE_INFINISPAN_HOTROD_SERVERNAMEID_H_
10 
11 #include <string>
12 namespace infinispan {
13 namespace hotrod {
14 
15 class ServerNameId {
16 public:
17  std::string name;
18  virtual ~ServerNameId() {};
19  ServerNameId() : name(std::string()) {};
20  ServerNameId(std::string s) : name(s) {};
21  bool operator < (const ServerNameId& sni) const { return name.compare(sni.name) < 0; };
22 };
23 
24 } /* namespace hotrod */
25 } /* namespace infinispan */
26 
27 #endif /* INCLUDE_INFINISPAN_HOTROD_SERVERNAMEID_H_ */
std::string name
Definition: ServerNameId.h:17
bool operator<(const ServerNameId &sni) const
Definition: ServerNameId.h:21
Definition: ServerNameId.h:15
ServerNameId()
Definition: ServerNameId.h:19
virtual ~ServerNameId()
Definition: ServerNameId.h:18
ServerNameId(std::string s)
Definition: ServerNameId.h:20