forked from huningxin/DSSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPropertyPost.hxx
59 lines (50 loc) · 2.04 KB
/
PropertyPost.hxx
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
////////////////////////////////////////////////////////////////////////////////
// SoftKinetic DepthSense SDK
//
// COPYRIGHT AND CONFIDENTIALITY NOTICE - SOFTKINETIC CONFIDENTIAL
// INFORMATION
//
// All rights reserved to SOFTKINETIC SENSORS NV (a
// company incorporated and existing under the laws of Belgium, with
// its principal place of business at Boulevard de la Plainelaan 15,
// 1050 Brussels (Belgium), registered with the Crossroads bank for
// enterprises under company number 0811 341 454 - "Softkinetic
// Sensors").
//
// The source code of the SoftKinetic DepthSense Camera Drivers is
// proprietary and confidential information of Softkinetic Sensors NV.
//
// For any question about terms and conditions, please contact:
// [email protected] Copyright (c) 2002-2015 Softkinetic Sensors NV
////////////////////////////////////////////////////////////////////////////////
#ifndef _PropertyPost_hxx
#define _PropertyPost_hxx
inline std::string DepthSense::Property<std::string>::getValue (DepthSense::Interface iface) const
{
return getValue_p(iface).unmarshal();
}
inline std::string DepthSense::Property<std::string>::getValue (DepthSense::Interface iface, const char* propertyName)
{
return getValue_p(iface, propertyName).unmarshal();
}
template <class T>
inline std::vector<T> DepthSense::Property< std::vector<T> >::getValue (DepthSense::Interface iface) const
{
return getValue_p(iface).unmarshal();
}
template <class T>
inline void DepthSense::Property< std::vector<T> >::setValue (DepthSense::Interface iface, std::vector<T> value) const
{
setValue_p(iface, DSI::Vector<T>::marshal(value));
}
template <class T>
inline std::vector<T> DepthSense::Property< std::vector<T> >::getValue (DepthSense::Interface iface, const char* propertyName)
{
return getValue_p(iface, propertyName).unmarshal();
}
template <class T>
inline void DepthSense::Property< std::vector<T> >::setValue (DepthSense::Interface iface, const char* propertyName, std::vector<T> value)
{
setValue_p(iface, propertyName, DSI::Vector<T>::marshal(value));
}
#endif