-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrtPwpPluginInfo.h
94 lines (78 loc) · 3.37 KB
/
rtPwpPluginInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Copyright(C) 2022, ATA Engineering, Inc.
//
// This program is free software; you can redistribute it and /or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see
// < https://www.gnu.org/licenses/lgpl-3.0.html>.
//
// Some of the source code for this program was generated with the
// Pointwise Plugin SDK, and is subject to the Cadence Public License
// Version 1.0.
/****************************************************************************
*
* Pointwise Plugin utility functions
*
* (C) 2021 Cadence Design Systems, Inc. All rights reserved worldwide.
*
***************************************************************************/
#ifndef _RTPWPPLUGININFO_H_
#define _RTPWPPLUGININFO_H_
/*! \cond */
/* initialize the PWP_PLUGININFO data returned by
PwpGetPluginInfo(PWP_PLUGININFO *pInfo)
*/
VERSION_PWP_INIT, // conforms to this PWP-API version
VERSION_LIB_INIT, // software library release version
"ATA Engineering, Inc.", // company/author description
"https://www.ata-e.com", // support description (phone, web-link).
"(C) 2016-2022 ATA Engineering, Inc.", // copyright description
0, // number of APIs (auto-set at runtime)
0, // default msg callback (auto-set at runtime)
0, // spy msg callback (auto-set at runtime)
/*! \endcond */
/************************************************************************/
/*! \file
\brief Static Initialization Data for the PWP_PLUGININFO structure
initialize the PWP_PLUGININFO data
The file \sf{%rtPwpPluginInfo.h} defines the static, compile-time
initialization of the PWP_PLUGININFO data struct returned by the PWP-API
function PwpGetPluginInfo(). If you want to see the implementation details,
look in the \sf{/shared/PWP/apiPWP.cxx} file.
The SDK file \sf{/shared/PWP/apiPWP.cxx} includes \sf{%rtPwpPluginInfo.h} as
shown below.
\par
\dontinclude apiPWP.cxx
\skip PWP_PLUGININFO info =
\until };
The format of \sf{%rtPwpPluginInfo.h} must be valid for the static
initialization of a C-struct. If you are not familiar with static
initialization, see the \ref example_cstruct_init page.
When copied from the \sf{src/plugins/templates/PWP/} folder to your plugins
project folder, \sf{%rtPwpPluginInfo.h} will contain example initilization
data. This example data must be edited to define the values appropriate for
your plugin's implementation.
\par Example PWP_PLUGININFO data
The example data from the SDK \sf{%rtPwpPluginInfo.h} template file is shown
below.
\par
\dontinclude rtPwpPluginInfo.h
\skip VERSION_PWP_INIT
\until spy msg callback
Please notice that the last three data members are initilized to 0. These
values are set automatically at runtime by PwpGetPluginInfo() as shown in the
code below.
\par
\dontinclude apiPWP.cxx
\skip info.apiCount
\until info.spyCB
*/
#endif /* _RTPWPPLUGININFO_H_ */