UniSet  2.6.0
SMViewer.h
1 /*
2  * Copyright (c) 2015 Pavel Vainerman.
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 as
6  * published by the Free Software Foundation, version 2.1.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Lesser 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 //--------------------------------------------------------------------------------
17 #ifndef _SMVIEWER_H
18 #define _SMVIEWER_H
19 //--------------------------------------------------------------------------------
20 #include <string>
21 #include <memory>
22 #include "SViewer.h"
23 #include "SMInterface.h"
24 //--------------------------------------------------------------------------------
25 class SMViewer:
26  public uniset::SViewer
27 {
28  public:
29  SMViewer( uniset::ObjectId shmID );
30  virtual ~SMViewer();
31 
32  void run();
33 
34  protected:
35 
36  std::shared_ptr<uniset::SMInterface> shm;
37  private:
38 };
39 // --------------------------------------------------------------------------
40 #endif
41 // --------------------------------------------------------------------------