![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <object.hpp>
Public Types | |
| typedef std::vector< std::string > | Names |
Public Member Functions | |
| Object () | |
| virtual | ~Object () |
| virtual ErrCode | open (const std::string &name, OpenMode mode)=0 |
| virtual OpenMode | openMode () const |
| virtual ErrCode | close ()=0 |
| virtual ErrCode | flush ()=0 |
| virtual std::string | name (ErrCode *rc=NULL) const =0 |
| virtual ErrCode | setName (const std::string &name_str)=0 |
| virtual ErrCode | remove (const std::string &name)=0 |
| virtual ErrCode | getList (Names &list) const =0 |
| virtual bool | exists (const std::string &name, ErrCode *rc=NULL) const |
| virtual size_t | dataSize (const std::string &name, ErrCode *rc=NULL) const =0 |
| virtual time_t | creationTime (const std::string &name, ErrCode *rc=NULL) const =0 |
| virtual time_t | modificationTime (const std::string &name, ErrCode *rc=NULL) const =0 |
Protected Attributes | |
| OpenMode | m_cur_open_mode |
Data base object interface.
| typedef std::vector<std::string> hds::db::Object::Names |
List of data base objects names.
| hds::db::Object::Object | ( | ) |
Construct data base object.
|
virtual |
Destructor.
|
pure virtual |
Try to close opened or created data. Return EC_NO_ERROR if all correct,
otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
pure virtual |
Get creation time of the object with provided name.
Return EC_NO_ERROR if all correct, otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
pure virtual |
Get size of the object data in bytes.
| name | Name of the object. |
| rc | Resulted error code if provided. |
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
virtual |
Check whether object with provided name exists in data base.
| name | Name of requested object. |
| rc | Will be set to resulted error code if provided. |
|
pure virtual |
Synchronizes modified data with database.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
Get list of data base objects names for current context.
Return EC_NO_ERROR if all correct, otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
pure virtual |
Get modification time of the object with provided name.
Return EC_NO_ERROR if all correct, otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
pure virtual |
Get name of the object.
rc will be EC_NO_ERROR if all correct, otherwise correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
Try to open data with provided name. Return EC_NO_ERROR if all correct,
otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
virtual |
Return current open mode.
|
pure virtual |
Try to remove data with provided name. Return EC_NO_ERROR if all correct,
otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
pure virtual |
Set name of the object (rename).
Return EC_NO_ERROR if all correct, otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql, and hds::db::ProjectQSql.
|
protected |
< Current open mode
1.8.5