Choreonoid  1.8
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
cnoid::DeviceOverwriteMediator Class Referenceabstract

#include <DeviceOverwriteItem.h>

Inheritance diagram for cnoid::DeviceOverwriteMediator:
cnoid::Referenced

Classes

class  DeviceInfo
 

Public Member Functions

const std::string & id ()
 
virtual DevicefindDevice (Body *body, const Mapping *info)
 
virtual DevicerestoreDevice (Body *body, Device *device=nullptr, const Mapping *info=nullptr)=0
 
virtual bool storeInformation (DeviceOverwriteItem *item, Mapping *info)=0
 
DeviceInfo findOrCreateDevice (BodyItem *bodyItem, bool doCreateOverwriteItem=false)
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Static Public Member Functions

static void registerMediator (const std::string &deviceTypeName, DeviceOverwriteMediator *mediator)
 
static DeviceOverwriteMediatorfindMediator (const std::string &id, const std::string &deviceTypeName)
 

Protected Member Functions

 DeviceOverwriteMediator (const std::string &id)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Static Protected Member Functions

static bool restoreDeviceName (Device *device, const Mapping *info)
 
static bool restoreDeviceLink (Device *device, const Mapping *info, Body *body)
 

Constructor & Destructor Documentation

◆ DeviceOverwriteMediator()

DeviceOverwriteMediator::DeviceOverwriteMediator ( const std::string &  id)
protected

Member Function Documentation

◆ findDevice()

Device * DeviceOverwriteMediator::findDevice ( Body body,
const Mapping info 
)
virtual

◆ findMediator()

DeviceOverwriteMediator * DeviceOverwriteMediator::findMediator ( const std::string &  id,
const std::string &  deviceTypeName 
)
static

◆ findOrCreateDevice()

DeviceOverwriteMediator::DeviceInfo DeviceOverwriteMediator::findOrCreateDevice ( BodyItem bodyItem,
bool  doCreateOverwriteItem = false 
)

◆ id()

const std::string& cnoid::DeviceOverwriteMediator::id ( )
inline

◆ registerMediator()

void DeviceOverwriteMediator::registerMediator ( const std::string &  deviceTypeName,
DeviceOverwriteMediator mediator 
)
static

◆ restoreDevice()

virtual Device* cnoid::DeviceOverwriteMediator::restoreDevice ( Body body,
Device device = nullptr,
const Mapping info = nullptr 
)
pure virtual

◆ restoreDeviceLink()

bool DeviceOverwriteMediator::restoreDeviceLink ( Device device,
const Mapping info,
Body body 
)
staticprotected

◆ restoreDeviceName()

bool DeviceOverwriteMediator::restoreDeviceName ( Device device,
const Mapping info 
)
staticprotected

◆ storeInformation()

virtual bool cnoid::DeviceOverwriteMediator::storeInformation ( DeviceOverwriteItem item,
Mapping info 
)
pure virtual

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