Unity Scopes API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Object.h
1 /*
2  * Copyright (C) 2014 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Michi Henning <michi.henning@canonical.com>
17  */
18 
19 #ifndef UNITY_SCOPES_OBJECT_H
20 #define UNITY_SCOPES_OBJECT_H
21 
22 #include <unity/scopes/ObjectProxyFwd.h>
23 #include <unity/util/NonCopyable.h>
24 
25 namespace unity
26 {
27 
28 namespace scopes
29 {
30 
35 class Object
36 {
37 public:
39  NONCOPYABLE(Object);
40 
41  virtual ~Object();
43 
48  virtual std::string endpoint() = 0;
49 
54  virtual std::string identity() = 0;
55 
60  virtual std::string category() = 0;
61 
68  virtual int64_t timeout() = 0; // Timeout in milliseconds, -1 == no timeout
69 
76  virtual std::string to_string() = 0;
77 
78 protected:
80  Object();
82 };
83 
84 } // namespace scopes
85 
86 } // namespace unity
87 
88 #endif
virtual std::string identity()=0
Returns the identity of the target object of this proxy.
virtual std::string endpoint()=0
Returns the endpoint this proxy connects to.
The root base class for all proxies.
Definition: Object.h:35
virtual std::string to_string()=0
converts a proxy into its string representation.
virtual std::string category()=0
Returns the category of the target object of this proxy.
virtual int64_t timeout()=0
Returns the timeout in milliseconds if this proxy is a twoway proxy.