Xcos MVC: fix some unneeded dependencies
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / BlockAdapter.hxx
1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2014-2014 - Scilab Enterprises - Clement DAVID
4  *
5  *  This file must be used under the terms of the CeCILL.
6  *  This source file is licensed as described in the file COPYING, which
7  *  you should have received as part of this distribution.  The terms
8  *  are also available at
9  *  http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10  *
11  */
12
13 #ifndef BLOCKADAPTER_HXX_
14 #define BLOCKADAPTER_HXX_
15
16 #include <string>
17
18 #include "utilities.hxx"
19 #include "BaseAdapter.hxx"
20 #include "model/Block.hxx"
21
22 namespace org_scilab_modules_scicos
23 {
24 namespace view_scilab
25 {
26
27 class BlockAdapter : public BaseAdapter<BlockAdapter, org_scilab_modules_scicos::model::Block>
28 {
29 public:
30     BlockAdapter(const BlockAdapter& o);
31     BlockAdapter(org_scilab_modules_scicos::model::Block* o);
32     BlockAdapter(ScicosID uid, kind_t k);
33     ~BlockAdapter();
34
35     static const std::wstring getSharedTypeStr()
36     {
37         return L"Block";
38     }
39
40     std::wstring getTypeStr();
41     std::wstring getShortTypeStr();
42
43     types::InternalType* getDocContent() const;
44     void setDocContent(types::InternalType* v);
45 private:
46     types::InternalType* doc_content;
47 };
48
49 } /* namespace view_scilab */
50 } /* namespace org_scilab_modules_scicos */
51
52 #endif /* BLOCKADAPTER_HXX_ */