init
This commit is contained in:
37
unitree_SDK/include/unitree/common/dds/dds_native.hpp
Normal file
37
unitree_SDK/include/unitree/common/dds/dds_native.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef __UT_DDS_NATIVE_HPP__
|
||||
#define __UT_DDS_NATIVE_HPP__
|
||||
|
||||
namespace unitree
|
||||
{
|
||||
namespace common
|
||||
{
|
||||
template<typename NATIVE>
|
||||
class DdsNative
|
||||
{
|
||||
public:
|
||||
using NativeType = NATIVE;
|
||||
|
||||
explicit DdsNative()
|
||||
{}
|
||||
|
||||
virtual ~DdsNative()
|
||||
{}
|
||||
|
||||
void SetNative(const NATIVE& native)
|
||||
{
|
||||
mNative = native;
|
||||
}
|
||||
|
||||
const NATIVE& GetNative() const
|
||||
{
|
||||
return mNative;
|
||||
}
|
||||
|
||||
protected:
|
||||
NATIVE mNative;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif//
|
Reference in New Issue
Block a user