mcloud  1.0.0
MCloud API library for cmcc cloud service
outlink.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as 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: Gary Wang <gary.wang@canonical.com>
17  */
18 
19 #ifndef MCLOUD_API_OUTLINK_H_
20 #define MCLOUD_API_OUTLINK_H_
21 
22 #include <mcloud/api/visibility.h>
23 
24 #include <memory>
25 #include <string>
26 
27 namespace tinyxml2 {
28  class XMLElement;
29 }
30 
31 namespace mcloud {
32 namespace api {
33 
40 public:
41  typedef std::shared_ptr<Outlink> Ptr;
42 
43  virtual ~Outlink() = default;
44 
48  const std::string &id() const;
49 
53  const std::string &link() const;
54 
55 private:
56  Outlink(const tinyxml2::XMLElement *root);
57 
58  friend class ClientPriv;
59 
60  class Priv;
61  std::shared_ptr<Priv> p_;
62 };
63 
64 }
65 }
66 
67 #endif // MCLOUD_API_OUTLINK_H_
Definition: client.h:37
#define MCLOUD_API_DLL_PUBLIC
Definition: visibility.h:26