#include <FileSystemStore.h>
Inheritance diagram for oasys::FileSystemTable:

Definition at line 99 of file FileSystemStore.h.
Public Member Functions | |
| ~FileSystemTable () | |
| int | get (const SerializableObject &key, SerializableObject *data) |
| virtual from DurableTableInpl | |
| int | get (const SerializableObject &key, SerializableObject **data, TypeCollection::Allocator_t allocator) |
| virtual from DurableTableInpl | |
| int | put (const SerializableObject &key, TypeCollection::TypeCode_t typecode, const SerializableObject *data, int flags) |
| virtual from DurableTableInpl | |
| int | del (const SerializableObject &key) |
| virtual from DurableTableInpl | |
| size_t | size () const |
| virtual from DurableTableInpl | |
| DurableIterator * | itr () |
| virtual from DurableTableInpl | |
Private Member Functions | |
| FileSystemTable (const char *logpath, const std::string &table_name, const std::string &path, bool multitype, FileSystemStore::FdCache *cache) | |
| int | get_common (const SerializableObject &key, ExpandableBuffer *buf) |
Private Attributes | |
| std::string | path_ |
| FileSystemStore::FdCache * | cache_ |
Friends | |
| class | FileSystemStore |
| oasys::FileSystemTable::~FileSystemTable | ( | ) |
Definition at line 281 of file FileSystemStore.cc.
| oasys::FileSystemTable::FileSystemTable | ( | const char * | logpath, | |
| const std::string & | table_name, | |||
| const std::string & | path, | |||
| bool | multitype, | |||
| FileSystemStore::FdCache * | cache | |||
| ) | [private] |
Definition at line 269 of file FileSystemStore.cc.
| int oasys::FileSystemTable::get | ( | const SerializableObject & | key, | |
| SerializableObject * | data | |||
| ) | [virtual] |
virtual from DurableTableInpl
Implements oasys::DurableTableImpl.
Definition at line 286 of file FileSystemStore.cc.
References oasys::ScratchBuffer< _memory_t, _static_size >::buf(), oasys::Serialize::CONTEXT_LOCAL, oasys::DS_ERR, get_common(), oasys::ExpandableBuffer::len(), and oasys::DurableTableImpl::multitype_.
| int oasys::FileSystemTable::get | ( | const SerializableObject & | key, | |
| SerializableObject ** | data, | |||
| TypeCollection::Allocator_t | allocator | |||
| ) | [virtual] |
virtual from DurableTableInpl
Reimplemented from oasys::DurableTableImpl.
Definition at line 308 of file FileSystemStore.cc.
References oasys::ScratchBuffer< _memory_t, _static_size >::buf(), oasys::Serialize::CONTEXT_LOCAL, oasys::DS_ERR, get_common(), oasys::ExpandableBuffer::len(), and oasys::DurableTableImpl::multitype_.
| int oasys::FileSystemTable::put | ( | const SerializableObject & | key, | |
| TypeCollection::TypeCode_t | typecode, | |||
| const SerializableObject * | data, | |||
| int | flags | |||
| ) | [virtual] |
virtual from DurableTableInpl
Implements oasys::DurableTableImpl.
Definition at line 339 of file FileSystemStore.cc.
References oasys::Marshal::action(), oasys::KeyMarshal::action(), ASSERT, oasys::ScratchBuffer< _memory_t, _static_size >::buf(), cache_, oasys::IO::close(), oasys::Serialize::CONTEXT_LOCAL, oasys::DS_CREATE, oasys::DS_ERR, oasys::DS_EXCL, oasys::DS_EXISTS, oasys::DS_NOTFOUND, errno, oasys::OpenFdCache< _Key, _CloseFcn >::get_and_pin(), oasys::ExpandableBuffer::len(), log_debug, log_err, log_warn, oasys::IO::lseek(), oasys::DurableTableImpl::multitype_, path_, oasys::Marshal::process(), oasys::OpenFdCache< _Key, _CloseFcn >::put_and_pin(), oasys::OpenFdCache< _Key, _CloseFcn >::unpin(), and oasys::IO::writeall().
| int oasys::FileSystemTable::del | ( | const SerializableObject & | key | ) | [virtual] |
virtual from DurableTableInpl
Implements oasys::DurableTableImpl.
Definition at line 463 of file FileSystemStore.cc.
References oasys::KeyMarshal::action(), oasys::ScratchBuffer< _memory_t, _static_size >::buf(), cache_, oasys::OpenFdCache< _Key, _CloseFcn >::close(), oasys::DS_ERR, oasys::DS_NOTFOUND, errno, log_err, log_warn, and path_.
| size_t oasys::FileSystemTable::size | ( | ) | const [virtual] |
virtual from DurableTableInpl
Implements oasys::DurableTableImpl.
Definition at line 497 of file FileSystemStore.cc.
| DurableIterator * oasys::FileSystemTable::itr | ( | ) | [virtual] |
virtual from DurableTableInpl
Implements oasys::DurableTableImpl.
Definition at line 523 of file FileSystemStore.cc.
References path_.
| int oasys::FileSystemTable::get_common | ( | const SerializableObject & | key, | |
| ExpandableBuffer * | buf | |||
| ) | [private] |
Definition at line 530 of file FileSystemStore.cc.
References oasys::KeyMarshal::action(), ASSERT, oasys::ExpandableBuffer::at(), cache_, oasys::IO::close(), oasys::DS_ERR, oasys::DS_NOTFOUND, oasys::ExpandableBuffer::end(), errno, fd, oasys::OpenFdCache< _Key, _CloseFcn >::get_and_pin(), oasys::ExpandableBuffer::len(), log_debug, log_err, oasys::IO::lseek(), path_, oasys::OpenFdCache< _Key, _CloseFcn >::put_and_pin(), oasys::IO::read(), oasys::ExpandableBuffer::reserve(), oasys::ExpandableBuffer::set_len(), and oasys::OpenFdCache< _Key, _CloseFcn >::unpin().
Referenced by get().
friend class FileSystemStore [friend] |
Definition at line 100 of file FileSystemStore.h.
std::string oasys::FileSystemTable::path_ [private] |
Definition at line 125 of file FileSystemStore.h.
Referenced by del(), get_common(), itr(), put(), and size().
Shared Fd cache.
Definition at line 130 of file FileSystemStore.h.
Referenced by del(), get_common(), and put().
1.5.1