-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBINDINGS.CPP
More file actions
148 lines (113 loc) · 2.48 KB
/
BINDINGS.CPP
File metadata and controls
148 lines (113 loc) · 2.48 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#include "stdafx.h"
#include "bindings.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyPGSuper::Init(IBroker* pBroker)
{
pBroker->GetInterface(IID_IVersionInfo, (IUnknown**)&m_pVersionInfo);
m_Properties.Init(pBroker);
m_Environment.Init(pBroker);
m_Roadway.Init(pBroker);
m_Views.Init(pBroker);
m_GraphManager.Init(pBroker);
m_ReportManager.Init(pBroker);
m_LoadModifiers.Init(pBroker);
m_Bridge.Init(pBroker);
m_PointOfInterest.Init(pBroker);
m_Limits.Init(pBroker);
m_EffectiveFlangeWidth.Init(pBroker);
m_LossParameters.Init(pBroker);
m_MomentCapacity.Init(pBroker);
}
void CPyPGSuper::Reset()
{
m_pVersionInfo.Release();
m_Properties.Reset();
m_Environment.Reset();
m_Roadway.Reset();
m_Limits.Reset();
m_Views.Reset();
m_GraphManager.Reset();
m_ReportManager.Reset();
m_LoadModifiers.Reset();
m_Bridge.Reset();
m_PointOfInterest.Reset();
m_EffectiveFlangeWidth.Reset();
m_LossParameters.Reset();
m_MomentCapacity.Reset();
}
std::string CPyPGSuper::GetVersionString() const
{
USES_CONVERSION;
return T2A(m_pVersionInfo->GetVersionString(false));
}
std::string CPyPGSuper::GetVersionStringWithBuildNumber() const
{
USES_CONVERSION;
return T2A(m_pVersionInfo->GetVersionString(true));
}
std::string CPyPGSuper::GetVersion() const
{
USES_CONVERSION;
return T2A(m_pVersionInfo->GetVersion(false));
}
std::string CPyPGSuper::GetVersionWithBuildNumber() const
{
USES_CONVERSION;
return T2A(m_pVersionInfo->GetVersion(true));
}
CPyProjectProperties CPyPGSuper::Properties()
{
return m_Properties;
}
CPyEnvironment CPyPGSuper::Environment()
{
return m_Environment;
}
CPyRoadway CPyPGSuper::Roadway()
{
return m_Roadway;
}
CPyViews CPyPGSuper::Views()
{
return m_Views;
}
CPyGraphManager CPyPGSuper::Graphs()
{
return m_GraphManager;
}
CPyReportManager CPyPGSuper::Reports()
{
return m_ReportManager;
}
CPyLoadModifiers CPyPGSuper::LoadModifiers()
{
return m_LoadModifiers;
}
CPyBridge CPyPGSuper::Bridge()
{
return m_Bridge;
}
CPyPointOfInterest CPyPGSuper::PointOfInterest()
{
return m_PointOfInterest;
}
CPyLimits CPyPGSuper::Limits()
{
return m_Limits;
}
CPyEffectiveFlangeWidth CPyPGSuper::EffectiveFlangeWidth()
{
return m_EffectiveFlangeWidth;
}
CPyLossParameters CPyPGSuper::LossParameters()
{
return m_LossParameters;
}
CPyMomentCapacity CPyPGSuper::MomentCapacity()
{
return m_MomentCapacity;
}