Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
machine.hh
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 #include <memory>
4 
5 namespace eclipse {
6 template <typename T> using u_ptr = std::unique_ptr<T>;
7 
8 class Machine {
9  protected:
10  int id;
11 
12  public:
13  Machine() = default;
14  Machine(int);
15  virtual ~Machine() { } /* Polymorphic class */
16 
17  virtual std::string get_ip () const = 0;
18  int get_id () const;
19 };
20 
21 }
int get_id() const
Definition: machine.cc:6
int id
Definition: machine.hh:10
Machine()=default
std::unique_ptr< T > u_ptr
Definition: machine.hh:6
virtual ~Machine()
Definition: machine.hh:15
virtual std::string get_ip() const =0
Definition: machine.hh:8