warehouse::client::Client Class Reference

List of all members.

Public Member Functions

def __del__
def __init__
def drop_db
def has_collection
def setup_collection

Public Attributes

 collections
 drop_db_srv
 list_collections_srv

Detailed Description

The warehouse library interface.

Definition at line 199 of file client.py.


Member Function Documentation

def warehouse::client::Client::__del__ (   self  ) 

Definition at line 215 of file client.py.

def warehouse::client::Client::__init__ (   self  ) 
Initialize the warehouse library

Definition at line 204 of file client.py.

def warehouse::client::Client::drop_db (   self,
  db_name 
)
Drop a database. This will invalidate all connections to the database
@param db_name : Name of the databse to delete

Definition at line 229 of file client.py.

def warehouse::client::Client::has_collection (   self,
  db_name,
  collection_name 
)
Checks for the existence of a collection in a database.
@param db_name : Name of a database
@param collection_name : Name of a collection

Definition at line 220 of file client.py.

def warehouse::client::Client::setup_collection (   self,
  db_name,
  collection_name,
  msg,
  indexed_fields 
)
Create a new collection in the specified database. The collection will contain documents of type <pkg_type>.<msg_type>
@param db_name : Name of the database
@param collection_name : Name of the collection
@param msg : Message type
@param indexed_fields: Fields on which to index the data. Each element must be a nested field specifier such as 'pose.position.x'
@return A instance of connection to the specified collection

Definition at line 253 of file client.py.


Member Data Documentation

Definition at line 208 of file client.py.

Definition at line 213 of file client.py.

Definition at line 210 of file client.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines


warehouse
Author(s): Nate Koenig, Bhaskara Marthi
autogenerated on Fri Jan 11 10:09:03 2013