Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
denso_robot_core::DensoBase Class Referenceabstract

#include <denso_base.h>

Inheritance diagram for denso_robot_core::DensoBase:
Inheritance graph
[legend]

Public Types

enum  { SRV_MIN = 0, SRV_ACT = SRV_MIN, SRV_WATCH, SRV_MAX = SRV_WATCH }
 

Public Member Functions

 DensoBase (const std::string &name, const int *mode)
 
 DensoBase (DensoBase *parent, Service_Vec &service, Handle_Vec &handle, const std::string &name, const int *mode)
 
virtual HRESULT InitializeBCAP ()
 
const std::string & Name () const
 
std::string RosName () const
 
virtual HRESULT StartService (ros::NodeHandle &node)=0
 
virtual HRESULT StopService ()
 
virtual HRESULT TerminateBCAP ()
 
virtual bool Update ()
 
virtual ~DensoBase ()
 

Static Public Member Functions

static std::string ConvertBSTRToString (const BSTR bstr)
 
static BSTR ConvertStringToBSTR (const std::string &str)
 

Protected Member Functions

HRESULT AddObject (int32_t get_id, const std::string &name, Handle_Vec &vecHandle)
 
HRESULT AddVariable (int32_t get_id, const std::string &name, std::vector< boost::shared_ptr< class DensoVariable > > &vecVar, int16_t vt=VT_EMPTY, bool bRead=false, bool bWrite=false, bool bID=false, int iDuration=BCAP_VAR_DEFAULT_DURATION)
 
HRESULT AddVariable (int32_t get_id, const XMLElement *xmlVar, std::vector< boost::shared_ptr< class DensoVariable > > &vecVar)
 
HRESULT get_Object (const std::vector< boost::shared_ptr< DensoBase > > &vecBase, int index, boost::shared_ptr< DensoBase > *obj)
 
HRESULT get_Object (const std::vector< boost::shared_ptr< DensoBase > > &vecBase, const std::string &name, boost::shared_ptr< DensoBase > *obj)
 
HRESULT GetObjectNames (int32_t func_id, Name_Vec &vecName)
 

Protected Attributes

const int * m_mode
 
boost::mutex m_mtxSrv
 
std::string m_name
 
DensoBasem_parent
 
bool m_serving
 
Handle_Vec m_vecHandle
 
Service_Vec m_vecService
 

Detailed Description

Definition at line 70 of file denso_base.h.

Member Enumeration Documentation

anonymous enum
Enumerator
SRV_MIN 
SRV_ACT 
SRV_WATCH 
SRV_MAX 

Definition at line 73 of file denso_base.h.

Constructor & Destructor Documentation

denso_robot_core::DensoBase::DensoBase ( const std::string &  name,
const int *  mode 
)
inline

Definition at line 85 of file denso_base.h.

denso_robot_core::DensoBase::DensoBase ( DensoBase parent,
Service_Vec service,
Handle_Vec handle,
const std::string &  name,
const int *  mode 
)
inline

Definition at line 92 of file denso_base.h.

virtual denso_robot_core::DensoBase::~DensoBase ( )
inlinevirtual

Definition at line 102 of file denso_base.h.

Member Function Documentation

HRESULT denso_robot_core::DensoBase::AddObject ( int32_t  get_id,
const std::string &  name,
Handle_Vec vecHandle 
)
protected

Definition at line 150 of file denso_base.cpp.

HRESULT denso_robot_core::DensoBase::AddVariable ( int32_t  get_id,
const std::string &  name,
std::vector< boost::shared_ptr< class DensoVariable > > &  vecVar,
int16_t  vt = VT_EMPTY,
bool  bRead = false,
bool  bWrite = false,
bool  bID = false,
int  iDuration = BCAP_VAR_DEFAULT_DURATION 
)
protected
HRESULT denso_robot_core::DensoBase::AddVariable ( int32_t  get_id,
const XMLElement xmlVar,
std::vector< boost::shared_ptr< class DensoVariable > > &  vecVar 
)
protected
std::string denso_robot_core::DensoBase::ConvertBSTRToString ( const BSTR  bstr)
static

Definition at line 34 of file denso_base.cpp.

BSTR denso_robot_core::DensoBase::ConvertStringToBSTR ( const std::string &  str)
static

Definition at line 48 of file denso_base.cpp.

HRESULT denso_robot_core::DensoBase::get_Object ( const std::vector< boost::shared_ptr< DensoBase > > &  vecBase,
int  index,
boost::shared_ptr< DensoBase > *  obj 
)
protected
HRESULT denso_robot_core::DensoBase::get_Object ( const std::vector< boost::shared_ptr< DensoBase > > &  vecBase,
const std::string &  name,
boost::shared_ptr< DensoBase > *  obj 
)
protected
HRESULT denso_robot_core::DensoBase::GetObjectNames ( int32_t  func_id,
Name_Vec vecName 
)
protected

Definition at line 194 of file denso_base.cpp.

virtual HRESULT denso_robot_core::DensoBase::InitializeBCAP ( )
inlinevirtual

Definition at line 107 of file denso_base.h.

const std::string& denso_robot_core::DensoBase::Name ( ) const
inline

Definition at line 129 of file denso_base.h.

std::string denso_robot_core::DensoBase::RosName ( ) const

Definition at line 62 of file denso_base.cpp.

virtual HRESULT denso_robot_core::DensoBase::StartService ( ros::NodeHandle node)
pure virtual
virtual HRESULT denso_robot_core::DensoBase::StopService ( )
inlinevirtual
virtual HRESULT denso_robot_core::DensoBase::TerminateBCAP ( )
inlinevirtual

Definition at line 112 of file denso_base.h.

virtual bool denso_robot_core::DensoBase::Update ( )
inlinevirtual

Member Data Documentation

const int* denso_robot_core::DensoBase::m_mode
protected

Definition at line 166 of file denso_base.h.

boost::mutex denso_robot_core::DensoBase::m_mtxSrv
protected

Definition at line 169 of file denso_base.h.

std::string denso_robot_core::DensoBase::m_name
protected

Definition at line 165 of file denso_base.h.

DensoBase* denso_robot_core::DensoBase::m_parent
protected

Definition at line 160 of file denso_base.h.

bool denso_robot_core::DensoBase::m_serving
protected

Definition at line 168 of file denso_base.h.

Handle_Vec denso_robot_core::DensoBase::m_vecHandle
protected

Definition at line 163 of file denso_base.h.

Service_Vec denso_robot_core::DensoBase::m_vecService
protected

Definition at line 162 of file denso_base.h.


The documentation for this class was generated from the following files:


denso_robot_core
Author(s): DENSO WAVE INCORPORATED
autogenerated on Mon Jun 10 2019 13:12:28