Account
BdsApi 2.0.11 |
This class defines an X,Y location. More...
#include <BdsC.h>

Public Member Functions | |
DataAccess (BString name="") | |
BError | connect (BString user, BString password) |
Provides user/password information for secure connection. More... | |
BError | validateUser (BString user, BString email) |
Checks the user given name or email. More... | |
BError | setUser (BString user, BString email) |
Sets user to given name or email. More... | |
BError | setUserReal () |
Sets user back to real user. More... | |
BError | getVersion (BString &version, BString &name) |
Gets the software version and server name. More... | |
BError | userGetFromId (BUInt32 id, User &user) |
BError | userGet (User &user) |
Get user info given user ID. More... | |
BError | userSet (User user) |
Get user info. More... | |
BError | userGetGroups (BList< BString > &groups) |
Set user info. More... | |
BError | groupGetList (BList< Group > &groups) |
Get list of groups the user belongs to. More... | |
BError | networkGetList (BList< Network > &networks) |
Get list of Networks. More... | |
BError | stationGetList (Selection sel, BList< Station > &stations) |
Get list of Stations. More... | |
BError | channelGetList (Selection sel, BList< Channel > &channels) |
Get list of Channels. More... | |
BError | sourceGetList (BList< Source > &sources) |
Get list of Sources. More... | |
BError | sourcePriorityGetList (BList< SourcePriority > &sourcePrioritys) |
Get list of Source Error sourceGetList(out List<Source> sources); ///< Get list of SourcePriorities. More... | |
BError | dataFileGetList (Selection sel, BList< DataFileInfo > &dataFile) |
Get list of DataFiles. More... | |
BError | dataChannelGetList (Selection sel, BList< DataChannel > &dataChannel) |
Get list of DataChannels. More... | |
BError | channelInstrumentGetList (Selection sel, BList< ChannelInstrument > &channelInstruments) |
Get list of Channel Instruments. More... | |
BError | digitiserGetList (Selection sel, BList< Digitiser > &digitisers) |
Get list of Channels. More... | |
BError | digitiserGet (BUInt32 id, Digitiser &digitiser) |
BError | sensorGetList (Selection sel, BList< Sensor > &sensors) |
Get list of Channels. More... | |
BError | sensorGet (BUInt32 id, Sensor &sensor) |
BError | calibrationGetList (Selection sel, BList< Calibration > &calibrations) |
Get list of Channels. More... | |
BError | responseGetList (Selection sel, BList< Response > &responses) |
Get list of Channels. More... | |
BError | locationGetList (Selection sel, BList< Location > &locations) |
Get list of Station Locations. More... | |
BError | getSelectionInfo (SelectionGroup group, Selection selectionIn, SelectionInfo &selectionInfo) |
Get selection info. More... | |
BError | getSelections (SelectionGroup group, Selection selectionIn, Selection &selectionOut) |
Get selection list. More... | |
BError | dataAvailability (Selection selection, BUInt32 num, BArray< DataAvailChan > &dataAvailChans) |
Return availability for data matching the given selection parameters. More... | |
BError | dataSearch (Selection selection, DataInfo &dataInfo) |
Search for data matching the given selection parameters. More... | |
BError | dataGetChannelInfo (DataInfo dataInfo, ChannelInfos &channelInfos) |
Return the channel MetaData in structured form. More... | |
BError | dataOpen (DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle &dataHandle) |
Open a data stream. More... | |
BError | dataGetInfo (DataHandle dataHandle, BUInt32 infoExtra, DataInfo &dataInfo) |
Get information on the data stream. More... | |
BError | dataGetNotes (DataHandle dataHandle, BList< Note > ¬es) |
Get notes on the data stream. More... | |
BError | dataGetWarnings (DataHandle dataHandle, BList< BString > &warnings) |
Get information on the data stream. More... | |
BError | dataSeekBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber) |
Searches for a data block matching the time given. More... | |
BError | dataGetBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data) |
Return a block of data. More... | |
BError | dataClose (DataHandle dataHandle, BError error, BInt32 del) |
Close a stream. More... | |
BError | dataFormattedRead (DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data) |
Read the raw data from the stream. More... | |
BError | dataFormattedGetLength (DataHandle dataHandle, BUInt64 &length) |
Read the raw data from the stream. More... | |
BError | noteGetList (Selection sel, BList< Note > ¬es) |
BError | noteUpdate (BInt32 append, Note note, BUInt32 &id) |
BError | noteWriteDocument (BUInt32 id, BString format, BArray< BUInt8 > data) |
BError | noteReadDocument (BUInt32 id, BString &format, BArray< BUInt8 > &data) |
BError | logUpdate (BInt32 append, Log log, BUInt32 &id) |
Append a log item. More... | |
BError | logAppend (BString type, BUInt32 priority, BString subSystem, BString title, BString description) |
Append a log item. More... | |
BError | modeSet (Mode mode, Mode &previousMode) |
Changes the system mode from Master to slave. More... | |
BError | modeSnapshotPause (BInt32 on) |
Enables/disables backup synchronisation pause. More... | |
BError | clean (CleanOptions cleanOptions) |
Cleans the system logs and Changes information. More... | |
BError | databaseBackup (BString &ref) |
Backup the database. More... | |
BError | statisticsGet (BDict< BString > &info) |
BError | dataFormatGetList (BList< DataFormat > &formats) |
Get list of data formats. More... | |
![]() | |
BoapClientObject (BString name="") | |
virtual | ~BoapClientObject () |
BError | connectService (BString name) |
BError | disconnectService () |
BString | getServiceName () |
BError | ping (BUInt32 &apiVersion) |
BError | setConnectionPriority (BoapPriority priority) |
void | setMaxLength (BUInt32 maxLength) |
void | setTimeout (int timeout) |
BoapClientObject (BString name) | |
BError | connectService (BString name) |
![]() | |
BSocket () | |
BSocket (int fd) | |
BSocket (NType type) | |
BSocket (int domain, int type, int protocol) | |
~BSocket () | |
BError | init (int domain, int type, int protocol) |
BError | init (NType type) |
void | setFd (int fd) |
int | getFd () |
BError | bind (const BSocketAddress &add) |
BError | connect (const BSocketAddress &add) |
BError | shutdown (int how) |
BError | close () |
BError | listen (int backlog=5) |
BError | accept (int &fd) |
BError | accept (int &fd, BSocketAddress &address) |
BError | send (const void *buf, BSize nbytes, BSize &nbytesSent, int flags=0) |
BError | sendTo (const BSocketAddress &address, const void *buf, BSize nbytes, BSize &nbytesSent, int flags=0) |
BError | sendChunks (const BDataChunk *chunks, BSize nChunks, BSize &nbytesSent, int flags=0) |
BError | recv (void *buf, BSize maxbytes, BSize &nbytesRecv, int flags=0) |
BError | recvFrom (BSocketAddress &address, void *buf, BSize maxbytes, BSize &nbytesRecv, int flags=0) |
BError | recvWithTimeout (void *buf, BSize maxbytes, BSize &nbytesRecv, int timeout, int flags=0) |
BError | recvFromWithTimeout (BSocketAddress &address, void *buf, BSize maxbytes, BSize &nbytesRecv, int timeout, int flags=0) |
BUInt | recvAvailable () |
BError | setSockOpt (int level, int optname, void *optval, unsigned int optlen) |
BError | getSockOpt (int level, int optname, void *optval, unsigned int *optlen) |
BError | setReuseAddress (int on) |
BError | setBroadCast (int on) |
BError | setPriority (Priority priority) |
BError | getMTU (uint32_t &mtu) |
BError | getAddress (BSocketAddress &address) |
Additional Inherited Members | |
![]() | |
enum | NType |
enum | Priority |
![]() | |
STREAM | |
DGRAM | |
PriorityLow | |
PriorityNormal | |
PriorityHigh | |
![]() | |
BError | pingLocked (BUInt32 &apiVersion) |
BError | checkApiVersion () |
BError | performCall (BoapPacket &tx, BoapPacket &rx) |
BError | performSend (BoapPacket &tx) |
BError | performRecv (BoapPacket &rx) |
virtual BError | handleReconnect (BError err) |
BError | performSend (BoapPacket &tx) |
BError | performRecv (BoapPacket &rx) |
BError | performCall (BoapPacket &tx, BoapPacket &rx) |
![]() | |
BString | oname |
BUInt32 | oapiVersion |
BoapPriority | opriority |
BoapService | oservice |
int | oconnected |
BUInt32 | omaxLength |
BoapPacket | otx |
BoapPacket | orx |
BMutex | olock |
int | otimeout |
int | oreconnect |
Detailed Description
This class defines an X,Y location.
The System Error List
The class simply stores the x and y point values. This class defines a TimePeriod
It has startTime and endTime fields. Note the endTime is not included in the period. This class defines an integer based range.
It is used for limit the number of items returned in selections etc. This class defines a Seismic Network organisation.
Typical Seisomic Networks are "BN", IDC" etc. This class defines a Seismic data Source
A Seismic data source allows different sources of data to be described and allows different Metadata sets to be used with the different data sources. It might be that there were two different digitisers in use or one data set was received real-time though a particular data processing chain while the other was via CD medium with a different processing chain. This class defines a Source Order entry This class defines a full channel name This class defines an arrays channel This class defines a Station This class defines a Location. This will be the stations location. This class defines a Pole/Zero Response This class defines a Amplitude/Phase Response This class defines a Pole/Zero Response This class defines a Pole/Zero Response This class defines a Response This class defines a calibration setting This class defines a Digitiser This class defines a Sensor This class defines a Channel to Digitiser/Sensor linkage This class defines a Channel This class defines the set of data selection critera This class defines the set of data selection critera This class defines the set of data selection critera This class provides information on a channel This class provides information on a set of channels This class defines information on a data file This class defines information on a single channels set of data This class defines information on a set of data This class defines information on a set of data This class defines information on a set of data This defines a handle to a data stream/file This class defines information on a set of data This holds information on a user This holds information on a groups This holds information on data access groups This holds information on a change This holds information on a change This holds information on a Note This holds information on a Note This is used for requesting log entries This is the clean options This holds information on a data format This class defines information on a data channel This is the Data Access API interface
Constructor & Destructor Documentation
◆ DataAccess()
Bds::DataAccess::DataAccess | ( | BString | name = "" | ) |
Member Function Documentation
◆ calibrationGetList()
BError Bds::DataAccess::calibrationGetList | ( | Selection | sel, |
BList< Calibration > & | calibrations | ||
) |
Get list of Channels.
◆ channelGetList()
Get list of Channels.
◆ channelInstrumentGetList()
BError Bds::DataAccess::channelInstrumentGetList | ( | Selection | sel, |
BList< ChannelInstrument > & | channelInstruments | ||
) |
Get list of Channel Instruments.
◆ clean()
BError Bds::DataAccess::clean | ( | CleanOptions | cleanOptions | ) |
Cleans the system logs and Changes information.
◆ connect()
Provides user/password information for secure connection.
◆ dataAvailability()
BError Bds::DataAccess::dataAvailability | ( | Selection | selection, |
BUInt32 | num, | ||
BArray< DataAvailChan > & | dataAvailChans | ||
) |
Return availability for data matching the given selection parameters.
◆ databaseBackup()
◆ dataChannelGetList()
BError Bds::DataAccess::dataChannelGetList | ( | Selection | sel, |
BList< DataChannel > & | dataChannel | ||
) |
Get list of DataChannels.
◆ dataClose()
BError Bds::DataAccess::dataClose | ( | DataHandle | dataHandle, |
BError | error, | ||
BInt32 | del | ||
) |
Close a stream.
◆ dataFileGetList()
BError Bds::DataAccess::dataFileGetList | ( | Selection | sel, |
BList< DataFileInfo > & | dataFile | ||
) |
Get list of DataFiles.
◆ dataFormatGetList()
BError Bds::DataAccess::dataFormatGetList | ( | BList< DataFormat > & | formats | ) |
Get list of data formats.
◆ dataFormattedGetLength()
BError Bds::DataAccess::dataFormattedGetLength | ( | DataHandle | dataHandle, |
BUInt64 & | length | ||
) |
Read the raw data from the stream.
◆ dataFormattedRead()
BError Bds::DataAccess::dataFormattedRead | ( | DataHandle | dataHandle, |
BUInt32 | number, | ||
BArray< BUInt8 > & | data | ||
) |
Read the raw data from the stream.
◆ dataGetBlock()
BError Bds::DataAccess::dataGetBlock | ( | DataHandle | dataHandle, |
BUInt32 | channel, | ||
BUInt32 | segment, | ||
BUInt32 | blockNumber, | ||
DataBlock & | data | ||
) |
Return a block of data.
◆ dataGetChannelInfo()
BError Bds::DataAccess::dataGetChannelInfo | ( | DataInfo | dataInfo, |
ChannelInfos & | channelInfos | ||
) |
Return the channel MetaData in structured form.
◆ dataGetInfo()
BError Bds::DataAccess::dataGetInfo | ( | DataHandle | dataHandle, |
BUInt32 | infoExtra, | ||
DataInfo & | dataInfo | ||
) |
Get information on the data stream.
◆ dataGetNotes()
BError Bds::DataAccess::dataGetNotes | ( | DataHandle | dataHandle, |
BList< Note > & | notes | ||
) |
Get notes on the data stream.
◆ dataGetWarnings()
BError Bds::DataAccess::dataGetWarnings | ( | DataHandle | dataHandle, |
BList< BString > & | warnings | ||
) |
Get information on the data stream.
◆ dataOpen()
BError Bds::DataAccess::dataOpen | ( | DataInfo | dataInfo, |
BString | mode, | ||
BString | format, | ||
BUInt32 | flags, | ||
DataHandle & | dataHandle | ||
) |
Open a data stream.
◆ dataSearch()
Search for data matching the given selection parameters.
◆ dataSeekBlock()
BError Bds::DataAccess::dataSeekBlock | ( | DataHandle | dataHandle, |
BUInt32 | channel, | ||
BUInt32 | segment, | ||
BTimeStamp | time, | ||
BUInt32 & | blockNumber | ||
) |
Searches for a data block matching the time given.
◆ digitiserGet()
◆ digitiserGetList()
Get list of Channels.
◆ getSelectionInfo()
BError Bds::DataAccess::getSelectionInfo | ( | SelectionGroup | group, |
Selection | selectionIn, | ||
SelectionInfo & | selectionInfo | ||
) |
Get selection info.
◆ getSelections()
BError Bds::DataAccess::getSelections | ( | SelectionGroup | group, |
Selection | selectionIn, | ||
Selection & | selectionOut | ||
) |
Get selection list.
◆ getVersion()
Gets the software version and server name.
◆ groupGetList()
Get list of groups the user belongs to.
Get list of Groups
◆ locationGetList()
Get list of Station Locations.
◆ logAppend()
BError Bds::DataAccess::logAppend | ( | BString | type, |
BUInt32 | priority, | ||
BString | subSystem, | ||
BString | title, | ||
BString | description | ||
) |
Append a log item.
◆ logUpdate()
◆ modeSet()
Changes the system mode from Master to slave.
◆ modeSnapshotPause()
Enables/disables backup synchronisation pause.
◆ networkGetList()
◆ noteGetList()
◆ noteReadDocument()
◆ noteUpdate()
◆ noteWriteDocument()
◆ responseGetList()
Get list of Channels.
◆ sensorGet()
◆ sensorGetList()
Get list of Channels.
◆ setUser()
◆ setUserReal()
BError Bds::DataAccess::setUserReal | ( | ) |
Sets user back to real user.
◆ sourceGetList()
◆ sourcePriorityGetList()
BError Bds::DataAccess::sourcePriorityGetList | ( | BList< SourcePriority > & | sourcePrioritys | ) |
Get list of Source Error sourceGetList(out List<Source> sources); ///< Get list of SourcePriorities.
◆ stationGetList()
Get list of Stations.
◆ statisticsGet()
◆ userGet()
◆ userGetFromId()
◆ userGetGroups()
◆ userSet()
◆ validateUser()
Checks the user given name or email.
The documentation for this class was generated from the following files:
Generated by
