-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyEnvironment.cpp
More file actions
38 lines (31 loc) · 785 Bytes
/
PyEnvironment.cpp
File metadata and controls
38 lines (31 loc) · 785 Bytes
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
#include "stdafx.h"
#include "PyEnvironment.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void CPyEnvironment::Init(IBroker* pBroker)
{
pBroker->GetInterface(IID_IEnvironment, (IUnknown**)&m_pEnvironment);
}
void CPyEnvironment::Reset()
{
m_pEnvironment.Release();
}
pgsTypes::ExposureCondition CPyEnvironment::GetExposureCondition() const
{
return m_pEnvironment->GetExposureCondition();
}
void CPyEnvironment::SetExposureCondition(pgsTypes::ExposureCondition newVal)
{
m_pEnvironment->SetExposureCondition(newVal);
}
Float64 CPyEnvironment::GetRelHumidity() const
{
return m_pEnvironment->GetRelHumidity();
}
void CPyEnvironment::SetRelHumidity(Float64 newVal)
{
m_pEnvironment->SetRelHumidity(newVal);
}