(file) Return to cxxmodule_t.h CVS log (file) (dir) Up to [OMI] / omi / gen

 1 mike  1.1 /*
 2           **==============================================================================
 3           **
 4           ** Open Management Infrastructure (OMI)
 5           **
 6           ** Copyright (c) Microsoft Corporation
 7           ** 
 8           ** Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 9           ** use this file except in compliance with the License. You may obtain a copy 
10           ** of the License at 
11           **
12           **     http://www.apache.org/licenses/LICENSE-2.0 
13           **
14           ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15           ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 
16           ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
17           ** MERCHANTABLITY OR NON-INFRINGEMENT. 
18           **
19           ** See the Apache 2 License for the specific language governing permissions 
20           ** and limitations under the License.
21           **
22 mike  1.1 **==============================================================================
23           */
24           
25           //==============================================================================
26           //
27           // cxxmodule.h - templates for generating 'module.h' and 'module.cpp'
28           //
29           //==============================================================================
30           
31           #ifndef _migen_cxxmodule_t_h
32           #define _migen_cxxmodule_t_h
33           
34           //==============================================================================
35           //
36           // MODULE_CPP_TEMPLATE
37           //
38           //==============================================================================
39           
40           #define MODULE_CPP_TEMPLATE "\
41           #include <MI.h>\n\
42           #include \"module.h\"\n\
43 mike  1.1 \n\
44           MI_BEGIN_NAMESPACE\n\
45           \n\
46           Module::Module()\n\
47           {\n\
48           }\n\
49           \n\
50           Module::~Module()\n\
51           {\n\
52           }\n\
53           \n\
54           MI_END_NAMESPACE\n"
55           
56           //==============================================================================
57           //
58           // MODULE_H_TEMPLATE
59           //
60           //==============================================================================
61           
62           #define MODULE_H_TEMPLATE "\
63           #ifndef _Module_t_h\n\
64 mike  1.1 #define _Module_t_h\n\
65           \n\
66           #include <MI.h>\n\
67           #include <micxx/micxx.h>\n\
68           \n\
69           MI_BEGIN_NAMESPACE\n\
70           \n\
71           /*  instance of this class is automatically created when library is loaded;\n\
72               it's a convenient place to store global data associated with the module */\n\
73           class Module\n\
74           {\n\
75           public:\n\
76               Module();\n\
77               ~Module();\n\
78           \n\
79           };\n\
80           \n\
81           MI_END_NAMESPACE\n\
82           #endif /* _Module_t_h */\n"
83           
84           #endif /* _migen_cxxmodule_t_h */

ViewCVS 0.9.2