#include <BdsC.h>
Public Member Functions | |
DataAddAccess (BString name="") | |
BError | connect (BString user, BString password) |
Provides user/password information. | |
BError | validateUser (BString user, BString email) |
Checks the user given name or email. | |
BError | setUser (BString user, BString email) |
Sets user to given name or email. | |
BError | setUserReal () |
Sets user back to real user. | |
BError | getVersion (BString &version) |
Gets the software version. | |
BError | userGetGroups (BList< BString > &groups) |
BError | networkGetList (BList< Network > &networks) |
Get list of groups the user belongs to Get list of Networks. | |
BError | stationGetList (Selection sel, BList< Station > &stations) |
Get list of Stations. | |
BError | channelGetList (Selection sel, BList< Channel > &channels) |
Get list of Channels. | |
BError | sourceGetList (BList< Source > &sources) |
Get list of Sources. | |
BError | sourcePriorityGetList (BList< SourcePriority > &sourcePrioritys) |
Get list of Source Error sourceGetList(out List<Source> sources); ///< Get list of SourcePriorities. | |
BError | dataFileGetList (Selection sel, BList< DataFileInfo > &dataFile) |
Get list of DataFiles. | |
BError | dataChannelGetList (Selection sel, BList< DataChannel > &dataChannel) |
Get list of DataChannels. | |
BError | getSelectionInfo (SelectionGroup group, SelectionInfo &selectionInfo) |
Get selection info. | |
BError | getSelections (SelectionGroup group, Selection selectionIn, Selection &selectionOut) |
Get selection list. | |
BError | dataSearch (Selection selection, DataInfo &dataInfo) |
Search for data matching the given selection parameters. | |
BError | dataGetChannelInfo (DataInfo dataInfo, BList< ChannelInfo > &channelInfos) |
Return the channel MetaData in structured form. | |
BError | dataOpen (DataInfo dataInfo, BString mode, BString format, DataHandle &dataHandle) |
Open a data stream. | |
BError | dataGetInfo (DataHandle dataHandle, DataInfo &dataInfo) |
Get information on the data stream. | |
BError | dataGetWarnings (DataHandle dataHandle, BList< BString > &warnings) |
Get information on the data stream. | |
BError | dataSeekBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber) |
Searches for a data block matching the time given. | |
BError | dataGetBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data) |
Return a block of data. | |
BError | dataSetInfo (DataHandle dataHandle, DataInfo dataInfo) |
Set the info when writing to a stream. | |
BError | dataPutBlock (DataHandle dataHandle, DataBlock data) |
Send a block of data. | |
BError | dataClose (DataHandle dataHandle) |
Close a stream. | |
BError | dataFormattedRead (DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data) |
Read the raw data from the stream. | |
BError | dataFormattedGetLength (DataHandle dataHandle, BUInt64 &length) |
The total length in bytes of the formated data. | |
BError | noteUpdate (BInt32 append, Note note, BUInt32 &id) |
BError | modeSet (Mode mode, Mode &previousMode) |
Changes the system mode from Master to slave. | |
BError | modeSnapshotPause (BInt32 on) |
Enables/disables backup synchronisation pause. | |
BError | statisticsGet (BDict< BString > &info) |
BError | dataFormatGetList (BList< DataFormat > &formats) |
Get list of data formats. |
Bds::DataAddAccess::DataAddAccess | ( | BString | name = "" |
) |
Get list of Channels.
BError Bds::DataAddAccess::connect | ( | BString | user, | |
BString | password | |||
) |
Provides user/password information.
BError Bds::DataAddAccess::dataChannelGetList | ( | Selection | sel, | |
BList< DataChannel > & | dataChannel | |||
) |
Get list of DataChannels.
BError Bds::DataAddAccess::dataClose | ( | DataHandle | dataHandle | ) |
Close a stream.
BError Bds::DataAddAccess::dataFileGetList | ( | Selection | sel, | |
BList< DataFileInfo > & | dataFile | |||
) |
Get list of DataFiles.
BError Bds::DataAddAccess::dataFormatGetList | ( | BList< DataFormat > & | formats | ) |
Get list of data formats.
BError Bds::DataAddAccess::dataFormattedGetLength | ( | DataHandle | dataHandle, | |
BUInt64 & | length | |||
) |
The total length in bytes of the formated data.
BError Bds::DataAddAccess::dataFormattedRead | ( | DataHandle | dataHandle, | |
BUInt32 | number, | |||
BArray< BUInt8 > & | data | |||
) |
Read the raw data from the stream.
BError Bds::DataAddAccess::dataGetBlock | ( | DataHandle | dataHandle, | |
BUInt32 | channel, | |||
BUInt32 | segment, | |||
BUInt32 | blockNumber, | |||
DataBlock & | data | |||
) |
Return a block of data.
BError Bds::DataAddAccess::dataGetChannelInfo | ( | DataInfo | dataInfo, | |
BList< ChannelInfo > & | channelInfos | |||
) |
Return the channel MetaData in structured form.
BError Bds::DataAddAccess::dataGetInfo | ( | DataHandle | dataHandle, | |
DataInfo & | dataInfo | |||
) |
Get information on the data stream.
BError Bds::DataAddAccess::dataGetWarnings | ( | DataHandle | dataHandle, | |
BList< BString > & | warnings | |||
) |
Get information on the data stream.
BError Bds::DataAddAccess::dataOpen | ( | DataInfo | dataInfo, | |
BString | mode, | |||
BString | format, | |||
DataHandle & | dataHandle | |||
) |
Open a data stream.
BError Bds::DataAddAccess::dataPutBlock | ( | DataHandle | dataHandle, | |
DataBlock | data | |||
) |
Send a block of data.
Search for data matching the given selection parameters.
BError Bds::DataAddAccess::dataSeekBlock | ( | DataHandle | dataHandle, | |
BUInt32 | channel, | |||
BUInt32 | segment, | |||
BTimeStamp | time, | |||
BUInt32 & | blockNumber | |||
) |
Searches for a data block matching the time given.
BError Bds::DataAddAccess::dataSetInfo | ( | DataHandle | dataHandle, | |
DataInfo | dataInfo | |||
) |
Set the info when writing to a stream.
BError Bds::DataAddAccess::getSelectionInfo | ( | SelectionGroup | group, | |
SelectionInfo & | selectionInfo | |||
) |
Get selection info.
BError Bds::DataAddAccess::getSelections | ( | SelectionGroup | group, | |
Selection | selectionIn, | |||
Selection & | selectionOut | |||
) |
Get selection list.
BError Bds::DataAddAccess::getVersion | ( | BString & | version | ) |
Gets the software version.
Changes the system mode from Master to slave.
BError Bds::DataAddAccess::modeSnapshotPause | ( | BInt32 | on | ) |
Enables/disables backup synchronisation pause.
BError Bds::DataAddAccess::networkGetList | ( | BList< Network > & | networks | ) |
Get list of groups the user belongs to Get list of Networks.
BError Bds::DataAddAccess::noteUpdate | ( | BInt32 | append, | |
Note | note, | |||
BUInt32 & | id | |||
) |
BError Bds::DataAddAccess::setUser | ( | BString | user, | |
BString | ||||
) |
Sets user to given name or email.
BError Bds::DataAddAccess::setUserReal | ( | ) |
Sets user back to real user.
BError Bds::DataAddAccess::sourceGetList | ( | BList< Source > & | sources | ) |
Get list of Sources.
BError Bds::DataAddAccess::sourcePriorityGetList | ( | BList< SourcePriority > & | sourcePrioritys | ) |
Get list of Source Error sourceGetList(out List<Source> sources); ///< Get list of SourcePriorities.
Get list of Stations.
BError Bds::DataAddAccess::statisticsGet | ( | BDict< BString > & | info | ) |
BError Bds::DataAddAccess::userGetGroups | ( | BList< BString > & | groups | ) |
BError Bds::DataAddAccess::validateUser | ( | BString | user, | |
BString | ||||
) |
Checks the user given name or email.