rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
rapid::db::NameDb Class Reference

#include <name_db.hpp>

Public Member Functions

 NameDb (const ros::NodeHandle &nh, const std::string &database, const std::string &collection)
 
template<typename MsgType >
void Insert (const std::string &name, const MsgType &msg)
 
template<typename MsgType >
void List (std::vector< std::string > *names)
 
template<typename MsgType >
bool Get (const std::string &name, MsgType *msg)
 
template<typename MsgType >
bool Update (const std::string &name, const MsgType &msg)
 
template<typename MsgType >
bool Delete (const std::string &name)
 
mongodb_store::MessageStoreProxy * proxy ()
 

Detailed Description

Definition at line 33 of file name_db.hpp.

Constructor & Destructor Documentation

rapid::db::NameDb::NameDb ( const ros::NodeHandle &  nh,
const std::string &  database,
const std::string &  collection 
)

Member Function Documentation

template<typename MsgType >
bool rapid::db::NameDb::Delete ( const std::string &  name)

Definition at line 114 of file name_db.hpp.

template<typename MsgType >
bool rapid::db::NameDb::Get ( const std::string &  name,
MsgType *  msg 
)

Definition at line 97 of file name_db.hpp.

template<typename MsgType >
void rapid::db::NameDb::Insert ( const std::string &  name,
const MsgType &  msg 
)

Definition at line 63 of file name_db.hpp.

template<typename MsgType >
void rapid::db::NameDb::List ( std::vector< std::string > *  names)

Definition at line 72 of file name_db.hpp.

mongodb_store::MessageStoreProxy* rapid::db::NameDb::proxy ( )
template<typename MsgType >
bool rapid::db::NameDb::Update ( const std::string &  name,
const MsgType &  msg 
)

Definition at line 109 of file name_db.hpp.


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