The Storage Library allows read and write access to the binary data files.
More...
|
typedef unsigned short | DbrType |
| DbrType is used to hold dbr_time_xxx types.
|
|
typedef unsigned short | DbrCount |
| DbrCount is used to hold the array size of CA channels.
|
|
typedef uint32_t | FileOffset |
| FileOffset is used as a system independent type for, well, offsets into files. More...
|
|
|
enum | Index::ReadWrite { ReadOnly,
ReadAndWrite
} |
| Modes used for open.
|
|
enum | RawValueSpecialSeverities {
ARCH_BASE_MASK = 0x0007,
ARCH_EST_REPEAT = 0x0f80,
ARCH_DISCONNECT = 0x0f40,
ARCH_STOPPED = 0x0f20,
ARCH_REPEAT = 0x0f10,
ARCH_DISABLED = 0x0f08
} |
| Non-CA events to the archiver; some are archived - some are directives. More...
|
|
The Storage Library allows read and write access to the binary data files.
@{
-*- c++ -*-
It replaces LibIO, for those who used the ChannelArchiver for EPICS R3.13.
To get started, see Index and DataReader.
FileOffset is used as a system independent type for, well, offsets into files.
Non-CA events to the archiver; some are archived - some are directives.
virtual Result* Index::addChannel |
( |
const stdString & |
channel | ) |
|
|
pure virtual |
Add a channel to the index.
A channel has to be added before data blocks get defined for the channel. When channel is already in index, existing tree gets returned.
- Returns
- Result. Caller must delete.
- Exceptions
-
Implemented in IndexFile, and AutoIndex.
virtual void Index::close |
( |
| ) |
|
|
pure virtual |
virtual Result* Index::findChannel |
( |
const stdString & |
channel | ) |
|
|
pure virtual |
Obtain the RTree for a channel.
Directory is set to the path/directory of the index, which together with the data block in the RTree will then lead to the actual data files.
- Returns
- Result or 0. Caller must delete.
- Exceptions
-
Implemented in IndexFile, and AutoIndex.
const std::string& Index::getDirectory |
( |
| ) |
|
|
inline |
Get the directory.
- Returns
- Dirname of this index.
- See Also
- getFilename()
const stdString& Index::Result::getDirectory |
( |
| ) |
const |
|
inline |
- Returns
- Base directory for all file names in the RTree.
const std::string& Index::getFilename |
( |
| ) |
|
|
inline |
const stdString& Index::getFullName |
( |
| ) |
|
|
inline |
virtual const stdString& Index::NameIterator::getName |
( |
| ) |
const |
|
pure virtual |
- Returns
- Current channel name.
RTree* Index::Result::getRTree |
( |
| ) |
const |
|
inline |
- Returns
- RTree part of the result.
virtual bool Index::NameIterator::isValid |
( |
| ) |
const |
|
pure virtual |
virtual NameIterator* Index::iterator |
( |
| ) |
|
|
pure virtual |
virtual void Index::NameIterator::next |
( |
| ) |
|
|
pure virtual |
virtual void Index::open |
( |
const stdString & |
filename, |
|
|
ReadWrite |
readwrite = ReadOnly |
|
) |
| |
|
pure virtual |
Index::Result::Result |
( |
RTree * |
tree, |
|
|
const stdString & |
directory |
|
) |
| |
Construct result.
Only used inside Index implementation.
Index::Result::~Result |
( |
| ) |
|
Destructor, deletes the RTree pointer.