#include <Container.h>
Public Member Functions | |
const std::string & | className () |
Container (Handle< DatabaseContainer > &dbContainer) | |
Container (const Container &rhs) | |
void | erase (int itemId) |
void | extendSchema (const std::type_info &typeInfo) |
template<typename T > | |
void | extendSchema () |
template<typename T > | |
boost::shared_ptr< T > | fetch (int itemId) |
Object | fetchItem (int itemId) |
void | flush () |
bool | getNames (std::vector< std::string > &destination) |
int | id () |
template<typename T > | |
int | insert (const T &data) |
int | insertItem (const Object &data) |
ContainerIterator | iterator () |
const std::string & | mappingVersion () |
const std::string & | name () |
Container & | operator= (const Container &rhs) |
void | setItemName (const std::string &name, int itemId) |
size_t | size () |
template<typename T > | |
void | update (int itemId, const T &data) |
void | updateItem (int itemId, const Object &data) |
virtual | ~Container () |
Private Member Functions | |
boost::shared_ptr< void > | fetchItemAsType (int itemId, const std::type_info &asTypeInfo) |
int | insertItem (const void *data, const std::type_info &typeInfo) |
void | updateItem (int itemId, const void *data, const std::type_info &typeInfo) |
Private Attributes | |
Handle< DatabaseContainer > | m_dbContainer |
Definition at line 43 of file Container.h.
ora::Container::Container | ( | Handle< DatabaseContainer > & | dbContainer | ) |
Definition at line 43 of file Container.cc.
ora::Container::Container | ( | const Container & | rhs | ) |
Definition at line 47 of file Container.cc.
|
virtual |
Definition at line 51 of file Container.cc.
const std::string & ora::Container::className | ( | ) |
Definition at line 67 of file Container.cc.
Referenced by cond::MetaData::getToken(), and cond::DbSession::storeObject().
void ora::Container::erase | ( | int | itemId | ) |
Definition at line 133 of file Container.cc.
Referenced by cond::IOVService::deleteAll(), cond::DbSession::deleteObject(), and ora::Database::erase().
void ora::Container::extendSchema | ( | const std::type_info & | typeInfo | ) |
Definition at line 84 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
|
inline |
Definition at line 111 of file Container.h.
|
inline |
Definition at line 117 of file Container.h.
Referenced by ora::Database::fetch(), and cond::DbSession::getTypedObject().
ora::Object ora::Container::fetchItem | ( | int | itemId | ) |
Definition at line 89 of file Container.cc.
Referenced by ora::Database::fetchItem(), and cond::DbSession::getObject().
|
private |
Definition at line 93 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
void ora::Container::flush | ( | ) |
Definition at line 137 of file Container.cc.
Referenced by cond::IOVService::deleteAll(), cond::DbSession::deleteObject(), and cond::DbSession::updateObject().
bool ora::Container::getNames | ( | std::vector< std::string > & | destination | ) |
Definition at line 146 of file Container.cc.
int ora::Container::id | ( | void | ) |
Definition at line 59 of file Container.cc.
Referenced by ora::Database::insert(), ora::Database::insertItem(), and cond::DbSession::storeObject().
|
inline |
Definition at line 123 of file Container.h.
Referenced by BeautifulSoup.PageElement::append(), and ora::Database::insert().
int ora::Container::insertItem | ( | const Object & | data | ) |
Definition at line 101 of file Container.cc.
References ora::Object::address(), ora::throwException(), and ora::Object::type().
Referenced by ora::Database::insertItem().
|
private |
Definition at line 110 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
ora::ContainerIterator ora::Container::iterator | ( | ) |
const std::string & ora::Container::mappingVersion | ( | ) |
Definition at line 71 of file Container.cc.
const std::string & ora::Container::name | ( | ) |
Definition at line 63 of file Container.cc.
Referenced by BeautifulSoup.Tag::_invert(), cond::MetaData::getToken(), and python.Vispa.Views.PropertyView.Property::valueChanged().
ora::Container & ora::Container::operator= | ( | const Container & | rhs | ) |
void ora::Container::setItemName | ( | const std::string & | name, |
int | itemId | ||
) |
size_t ora::Container::size | ( | void | ) |
Definition at line 75 of file Container.cc.
|
inline |
Definition at line 129 of file Container.h.
Referenced by python.seqvaluedict.seqdict::__setslice__(), python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), python.Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), python.Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), python.Vispa.Gui.FindDialog.FindDialog::reset(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), python.Vispa.Gui.VispaWidget.VispaWidget::setTitle(), python.Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), python.Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), ora::Database::update(), python.Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and cond::DbSession::updateObject().
void ora::Container::updateItem | ( | int | itemId, |
const Object & | data | ||
) |
Definition at line 116 of file Container.cc.
References ora::Object::address(), ora::throwException(), and ora::Object::type().
Referenced by ora::Database::updateItem().
|
private |
Definition at line 126 of file Container.cc.
References ora::ClassUtils::lookupDictionary().
|
private |
Definition at line 98 of file Container.h.
Referenced by operator=().