BdsApi  3.0.8
This is the Blacknest BDS API.
BdsC.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BdsC.h Produced by Bidl
3  *******************************************************************************
4  */
5 
6 #ifndef BDSC_H
7 #define BDSC_H 1
8 
9 #include <stdlib.h>
10 #include <stdint.h>
11 #include <Boap.h>
12 #include <BString.h>
13 #include <BList.h>
14 #include <BArray.h>
15 #include <BdsD.h>
16 
17 
18 namespace Bds {
19  const BUInt32 apiVersion = 0;
20 
25 
26  class DataAccess : public BoapClientObject {
27  public:
28  DataAccess(BString name = "");
29  BError connect(BString user, BString password);
30  BError validateUser(BString user, BString email);
31  BError setUser(BString user, BString email);
33  BError getVersion(BString& version, BString& name);
34  // User functions
35  BError userGetFromId(BUInt32 id, User& user);
36  BError userGet(User& user);
37  BError userSet(User user);
42  // Information functions
52  BError digitiserGet(BUInt32 id, Digitiser& digitiser);
54  BError sensorGet(BUInt32 id, Sensor& sensor);
62  // Selections
63  BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo& selectionInfo);
64  BError getSelections(SelectionGroup group, Selection selectionIn, Selection& selectionOut);
65  // Data access functions
66  BError dataAvailability(Selection selection, BUInt32 num, BArray<DataAvailChan >& dataAvailChans);
67  BError dataSearch(Selection selection, DataInfo& dataInfo);
68  BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos& channelInfos);
69  BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle& dataHandle);
70  BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo& dataInfo);
71  BError dataGetNotes(DataHandle dataHandle, BList<Note >& notes);
72  BError dataGetWarnings(DataHandle dataHandle, BList<BString >& warnings);
73  BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32& blockNumber);
74  BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock& data);
75  BError dataClose(DataHandle dataHandle, BError error, BInt32 del);
78  // Real-time data functions
80  BError dataRealtimeGet(BUInt32 numBlocks, BUInt32& numBlocksAvailable, BList<DataBlockChannel >& dataBlocks);
82  BError noteUpdate(BInt32 append, Note note, BUInt32& id);
85  BError logUpdate(BInt32 append, Log log, BUInt32& id);
86  BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description);
87  // Management functions
88  BError modeSet(Mode mode, Mode& previousMode);
90  BError clean(CleanOptions cleanOptions);
92  // Information functions
96  private:
97  };
104  public:
105  DataAddAccess(BString name = "");
106  BError connect(BString user, BString password);
107  BError validateUser(BString user, BString email);
108  BError setUser(BString user, BString email);
109  BError setUserReal();
110  BError getVersion(BString& version, BString& name);
111  // User functions
112  BError userGetFromId(BUInt32 id, User& user);
113  BError userGet(User& user);
114  BError userSet(User user);
119  // Information functions
129  BError digitiserGet(BUInt32 id, Digitiser& digitiser);
131  BError sensorGet(BUInt32 id, Sensor& sensor);
136  BError eventUpdate(BInt32 append, Event event, BUInt32& id);
141  // Selections
142  BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo& selectionInfo);
143  BError getSelections(SelectionGroup group, Selection selectionIn, Selection& selectionOut);
144  // Data access functions
145  BError dataAvailability(Selection selection, BUInt32 num, BArray<DataAvailChan >& dataAvailChans);
146  BError dataSearch(Selection selection, DataInfo& dataInfo);
147  BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos& channelInfos);
148  BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle& dataHandle);
149  BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo& dataInfo);
150  BError dataGetNotes(DataHandle dataHandle, BList<Note >& notes);
151  BError dataGetWarnings(DataHandle dataHandle, BList<BString >& warnings);
152  BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32& blockNumber);
153  BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock& data);
154  BError dataSetInfo(DataHandle dataHandle, DataInfo dataInfo);
156  BError dataClose(DataHandle dataHandle, BError error, BInt32 del);
159  // Real-time data functions
161  BError dataRealtimeGet(BUInt32 numBlocks, BUInt32& numBlocksAvailable, BList<DataBlockChannel >& dataBlocks);
163  BError noteUpdate(BInt32 append, Note note, BUInt32& id);
166  BError logUpdate(BInt32 append, Log log, BUInt32& id);
167  BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description);
168  // Management functions
169  BError modeSet(Mode mode, Mode& previousMode);
171  BError clean(CleanOptions cleanOptions);
173  // Information functions
177  private:
178  };
183  class AdminAccess : public BoapClientObject {
184  public:
185  AdminAccess(BString name = "");
186  BError connect(BString user, BString password);
187  BError validateUser(BString user, BString email);
188  BError setUser(BString user, BString email);
189  BError setUserReal();
190  BError getVersion(BString& version, BString& name);
191  // User functions
193  BError userUpdate(BInt32 append, User user, BUInt32& id);
195  BError userGetFromId(BUInt32 id, User& user);
196  BError userGet(User& user);
197  BError userSet(User user);
202  BError groupUpdate(BInt32 append, Group group, BUInt32& id);
205  BError accessGroupUpdate(BInt32 append, AccessGroup group, BUInt32& id);
207  // Selections
208  BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo& selectionInfo);
209  BError getSelections(SelectionGroup group, Selection selectionIn, Selection& selectionOut);
211  BError networkUpdate(BInt32 append, Network network, BUInt32& id);
214  BError stationUpdate(BInt32 append, Station station, BUInt32& id);
217  BError locationUpdate(BInt32 append, Location location, BUInt32& id);
220  BError channelGet(BUInt32 id, Channel& channel);
221  BError channelUpdate(BInt32 append, Channel channel, BUInt32& id);
224  BError sourceUpdate(BInt32 append, Source source, BUInt32& id);
227  BError sourcePriorityUpdate(BInt32 append, SourcePriority sourcePriority, BUInt32& id);
230  BError channelInstrumentUpdate(BInt32 append, ChannelInstrument channelInstrument, BUInt32& id);
233  BError digitiserGet(BUInt32 id, Digitiser& digitiser);
234  BError digitiserUpdate(BInt32 append, Digitiser digitiser, BUInt32& id);
237  BError sensorGet(BUInt32 id, Sensor& sensor);
238  BError sensorUpdate(BInt32 append, Sensor sensor, BUInt32& id);
241  BError calibrationUpdate(BInt32 append, Calibration calibration, BUInt32& id);
244  BError responseUpdate(BInt32 append, Response response, BUInt32& id);
247  BError eventUpdate(BInt32 append, Event event, BUInt32& id);
250  BError specialChannelUpdate(BInt32 append, SpecialChannel specialChannel, BUInt32& id);
254  // Data access functions
256  BError dataFileUpdate(BInt32 append, DataFileInfo dataFile, BUInt32& id);
259  BError dataChannelUpdate(BInt32 append, DataChannel dataChannel, BUInt32& id);
261  BError dataAvailability(Selection selection, BUInt32 num, BArray<DataAvailChan >& dataAvailChans);
262  BError dataSearch(Selection selection, DataInfo& dataInfo);
263  BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos& channelInfos);
264  BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle& dataHandle);
265  BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo& dataInfo);
266  BError dataGetNotes(DataHandle dataHandle, BList<Note >& notes);
267  BError dataGetWarnings(DataHandle dataHandle, BList<BString >& warnings);
268  BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock& data);
269  BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32& blockNumber);
270  BError dataSetInfo(DataHandle dataHandle, DataInfo dataInfo);
272  BError dataClose(DataHandle dataHandle, BError error, BInt32 del);
275  // Real-time data functions
277  BError dataRealtimeGet(BUInt32 numBlocks, BUInt32& numBlocksAvailable, BList<DataBlockChannel >& dataBlocks);
278  // Change/Logging functions
279  BError changeGroupStart(ChangeGroup changeGroup);
282  BError changeGroupDelete(BTimeStamp beforeDate, BString type, BInt32 empty);
284  BError changeGetList(BUInt32 id, ListRange range, BList<Change >& changes);
285  BError changeDelete(BTimeStamp beforeDate, BString type);
287  BError noteUpdate(BInt32 append, Note note, BUInt32& id);
291  BError logGetList(LogSelect sel, BList<Log >& logs);
292  BError logUpdate(BInt32 append, Log log, BUInt32& id);
293  BError logDelete(BUInt32 id);
294  BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description);
295  // Information functions
299  // Management functions
301  BError transactionEnd(BInt32 abort);
302  BError modeSet(Mode mode, Mode& previousMode);
304  BError clean(CleanOptions cleanOptions);
307  // Low level functions
308  BError sqlQuery(BString query, BList<BDict<BString > >& result);
309  BError extraCall(BUInt32 function, BString args, BString& result);
310  private:
311  };
312 }
313 #endif
BUInt32 format
BUInt32 length
uint32_t BUInt32
int32_t BInt32
uint64_t BUInt64
BOAP data class definitions for: Bds.
BInt16 number
char data[8]
BUInt16 error
This holds information on data access groups.
Definition: BdsD.h:762
This is the AdminAccess Access API interface.
Definition: BdsC.h:183
BError metadataGetFormatted(Selection sel, BString format, BArray< BUInt8 > &data)
Return the channel MetaData in a particular format.
Definition: BdsC.cc:11366
BError userGetOptions(BDict< BString > &items)
Get user options.
Definition: BdsC.cc:8495
BError validateUser(BString user, BString email)
Checks the user given name or email.
Definition: BdsC.cc:8074
BError sensorGet(BUInt32 id, Sensor &sensor)
Get a Sensor object given its ID.
Definition: BdsC.cc:10198
BError getSelections(SelectionGroup group, Selection selectionIn, Selection &selectionOut)
Get selection list.
Definition: BdsC.cc:8903
BError networkGetList(BList< Network > &networks)
Get list of Networks.
Definition: BdsC.cc:8987
BError logGetList(LogSelect sel, BList< Log > &logs)
Get list of log entries.
Definition: BdsC.cc:13514
BError extraCall(BUInt32 function, BString args, BString &result)
A special function to add new functions to the API prior to a full API update.
Definition: BdsC.cc:14050
BError changeGetList(BUInt32 id, ListRange range, BList< Change > &changes)
Get a list of Changes.
Definition: BdsC.cc:13209
BError stationDelete(BUInt32 id)
Delete a Station entry.
Definition: BdsC.cc:9236
BError channelDelete(BUInt32 id)
Delete a Channel entry.
Definition: BdsC.cc:9563
BError dataGetWarnings(DataHandle dataHandle, BList< BString > &warnings)
Get information on the data file.
Definition: BdsC.cc:12558
BError dataFormatGetList(BList< DataFormat > &formats)
Get list of supported data formats.
Definition: BdsC.cc:13741
BError changeGroupStart(ChangeGroup changeGroup)
Start a new ChangeGroup when making a set of changes to the BDS's database.
Definition: BdsC.cc:13040
BError accessGroupDelete(BUInt32 id)
Delete an AccessGroup entry.
Definition: BdsC.cc:8756
BError sourceDelete(BUInt32 id)
Delete a Source entry.
Definition: BdsC.cc:9669
BError channelInstrumentGetList(Selection sel, BList< ChannelInstrument > &channelInstruments)
Get list of Channel Instruments.
Definition: BdsC.cc:9804
BError digitiserDelete(BUInt32 id)
Delete a Digitiser entry.
Definition: BdsC.cc:10095
AdminAccess(BString name="")
Definition: BdsC.cc:8041
BError channelGetList(Selection sel, BList< Channel > &channels)
Get list of Channels.
Definition: BdsC.cc:9411
BError changeGroupDelete(BTimeStamp beforeDate, BString type, BInt32 empty)
Delete a ChangeGroup.
Definition: BdsC.cc:13148
BError dataFormattedGetLength(DataHandle dataHandle, BUInt64 &length)
Read the raw data from the file.
Definition: BdsC.cc:12911
BError groupGetList(BList< Group > &groups)
Get list of Groups.
Definition: BdsC.cc:8575
BError locationGetList(Selection sel, BList< Location > &locations)
Get list of Station, Channel or both Locations depending on the sel.locationSelect parameter.
Definition: BdsC.cc:9265
BError locationUpdate(BInt32 append, Location location, BUInt32 &id)
Add or update a Station Location entry.
Definition: BdsC.cc:9340
BError databaseBackup(BString &ref)
Backup the database.
Definition: BdsC.cc:13941
BError modeSet(Mode mode, Mode &previousMode)
Changes the system mode from Master to slave.
Definition: BdsC.cc:13851
BError groupUpdate(BInt32 append, Group group, BUInt32 &id)
Update or append a group entry.
Definition: BdsC.cc:8615
BError channelInstrumentDelete(BUInt32 id)
Delete an Instrument entry.
Definition: BdsC.cc:9911
BError specialChannelDelete(BUInt32 id)
Delete a SpecialChannel entry.
Definition: BdsC.cc:11053
BError dataFileGetList(Selection sel, BList< DataFileInfo > &dataFile)
Get list of DataFiles.
Definition: BdsC.cc:11427
BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description)
Append a log item.
Definition: BdsC.cc:13628
BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo &dataInfo)
Get information on the data file.
Definition: BdsC.cc:12385
BError sourceUpdate(BInt32 append, Source source, BUInt32 &id)
Add or update a Source entry.
Definition: BdsC.cc:9634
BError serverConfigurationGet(BDict< BString > &items)
Get server configuration parameters.
Definition: BdsC.cc:13701
BError userGet(User &user)
Get user info.
Definition: BdsC.cc:8368
BError noteGetList(Selection sel, BList< Note > &notes)
Get a list of Notes.
Definition: BdsC.cc:13286
BError noteUpdate(BInt32 append, Note note, BUInt32 &id)
Add or update a Note.
Definition: BdsC.cc:13367
BError connect(BString user, BString password)
Provides user/password information.
Definition: BdsC.cc:8044
BError channelUpdate(BInt32 append, Channel channel, BUInt32 &id)
Add or update a Channel entry.
Definition: BdsC.cc:9523
BError logDelete(BUInt32 id)
Delete a Log item.
Definition: BdsC.cc:13599
BError networkDelete(BUInt32 id)
Delete a Network entry.
Definition: BdsC.cc:9077
BError networkUpdate(BInt32 append, Network network, BUInt32 &id)
Add or update a Network entry.
Definition: BdsC.cc:9037
BError eventGetList(Selection sel, BList< Event > &events)
Get list of Events.
Definition: BdsC.cc:10745
BError logUpdate(BInt32 append, Log log, BUInt32 &id)
Add or Update a Log item.
Definition: BdsC.cc:13562
BError locationDelete(BUInt32 id)
Delete a Station Location entry.
Definition: BdsC.cc:9382
BError dataSetInfo(DataHandle dataHandle, DataInfo dataInfo)
Set the info when writing to a file.
Definition: BdsC.cc:12696
BError stationGetList(Selection sel, BList< Station > &stations)
Get list of Stations.
Definition: BdsC.cc:9106
BError responseGetList(Selection sel, BList< Response > &responses)
Get list of Responses.
Definition: BdsC.cc:10470
BError dataPutBlock(DataHandle dataHandle, DataBlock data)
Send a block of data.
Definition: BdsC.cc:12790
BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle &dataHandle)
Open a data file.
Definition: BdsC.cc:12288
BError digitiserUpdate(BInt32 append, Digitiser digitiser, BUInt32 &id)
Add or update a Digitiser entry.
Definition: BdsC.cc:10054
BError sourcePriorityDelete(BUInt32 id)
Definition: BdsC.cc:9775
BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber)
Searches for a data block matching the time given.
Definition: BdsC.cc:12662
BError dataChannelDelete(BUInt32 id)
Delete a DataChannel entry.
Definition: BdsC.cc:11716
BError changeGetListNumber(BUInt32 id, BUInt32 &number)
Get the number of changes in a ChangeGroup.
Definition: BdsC.cc:13179
BError userGetList(BList< User > &users)
Get list of Users.
Definition: BdsC.cc:8192
BError sourceGetList(BList< Source > &sources)
Get list of Sources.
Definition: BdsC.cc:9592
BError specialChannelGetList(Selection sel, BList< SpecialChannel > &specialChannels)
Get list of Special Channels.
Definition: BdsC.cc:10944
BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data)
Return a block of data.
Definition: BdsC.cc:12598
BError dataAvailability(Selection selection, BUInt32 num, BArray< DataAvailChan > &dataAvailChans)
Return availability for data matching the given selection parameters. If num > 0 segment ito this num...
Definition: BdsC.cc:11745
BError sqlQuery(BString query, BList< BDict< BString > > &result)
A low level SQL access function.
Definition: BdsC.cc:14000
BError calibrationGetList(Selection sel, BList< Calibration > &calibrations)
Get list of Calibrations.
Definition: BdsC.cc:10308
BError responseUpdate(BInt32 append, Response response, BUInt32 &id)
Add or update a Response entry.
Definition: BdsC.cc:10617
BError setUser(BString user, BString email)
Sets user to given name or email.
Definition: BdsC.cc:8104
BError accessGroupUpdate(BInt32 append, AccessGroup group, BUInt32 &id)
Update or append an AccessGroup entry.
Definition: BdsC.cc:8720
BError transactionStart()
Starts a set of transactions.
Definition: BdsC.cc:13794
BError specialChannelUpdate(BInt32 append, SpecialChannel specialChannel, BUInt32 &id)
Add or update a SpecialChannel entry.
Definition: BdsC.cc:11015
BError changeDelete(BTimeStamp beforeDate, BString type)
Delete a Change.
Definition: BdsC.cc:13256
BError dataFileDelete(BUInt32 id)
Delete a DataFile entry.
Definition: BdsC.cc:11542
BError responseDelete(BUInt32 id)
Delete a Response entry.
Definition: BdsC.cc:10716
BError userSetOptions(BDict< BString > &items)
Set user options.
Definition: BdsC.cc:8535
BError dataRealtimeGet(BUInt32 numBlocks, BUInt32 &numBlocksAvailable, BList< DataBlockChannel > &dataBlocks)
Returns the number of data blocks available and up to numBlocks of these.
Definition: BdsC.cc:12997
BError dataChannelGetList(Selection sel, BList< DataChannel > &dataChannel)
Get list of DataChannels.
Definition: BdsC.cc:11571
BError noteDelete(BUInt32 id)
Delete a Note.
Definition: BdsC.cc:13415
BError userUpdate(BInt32 append, User user, BUInt32 &id)
Update or append a user entry.
Definition: BdsC.cc:8247
BError sourcePriorityUpdate(BInt32 append, SourcePriority sourcePriority, BUInt32 &id)
Definition: BdsC.cc:9740
BError stationUpdate(BInt32 append, Station station, BUInt32 &id)
Add or update a Station entry.
Definition: BdsC.cc:9189
BError noteWriteDocument(BUInt32 id, BString format, BArray< BUInt8 > data)
Given a Note write a document associated with it.
Definition: BdsC.cc:13444
BError calibrationDelete(BUInt32 id)
Delete a Calibration entry.
Definition: BdsC.cc:10441
BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:11966
BError dataClose(DataHandle dataHandle, BError error, BInt32 del)
Close a file.
Definition: BdsC.cc:12842
BError dataGetNotes(DataHandle dataHandle, BList< Note > &notes)
Get notes on the data file.
Definition: BdsC.cc:12501
BError sensorGetList(Selection sel, BList< Sensor > &sensors)
Get list of Sensors.
Definition: BdsC.cc:10124
BError accessGroupGetList(BList< AccessGroup > &accessGroups)
Get list of AccessGroups.
Definition: BdsC.cc:8677
BError digitiserGet(BUInt32 id, Digitiser &digitiser)
Get a Digitiser object given its ID.
Definition: BdsC.cc:10014
BError userGetFromId(BUInt32 id, User &user)
Get user info given user ID.
Definition: BdsC.cc:8321
BError channelGet(BUInt32 id, Channel &channel)
Get a channel.
Definition: BdsC.cc:9484
BError digitiserGetList(Selection sel, BList< Digitiser > &digitisers)
Get list of Digitisers.
Definition: BdsC.cc:9940
BError statisticsGet(BDict< BString > &info)
Get a list of system statistics.
Definition: BdsC.cc:13661
BError changeGroupGetList(ListRange range, BList< ChangeGroup > &changeGroups)
Return a list of ChangeGroups.
Definition: BdsC.cc:13102
BError dataRealtimeConfig(BInt32 enable, Selection sel)
Configures the sending of real-time data blocks.
Definition: BdsC.cc:12942
BError dataSearch(Selection selection, DataInfo &dataInfo)
Search for data matching the given selection parameters.
Definition: BdsC.cc:11827
BError sensorUpdate(BInt32 append, Sensor sensor, BUInt32 &id)
Add or update a Sensor entry.
Definition: BdsC.cc:10238
BError dataChannelUpdate(BInt32 append, DataChannel dataChannel, BUInt32 &id)
Add or update a DataChannel entry.
Definition: BdsC.cc:11662
BError calibrationUpdate(BInt32 append, Calibration calibration, BUInt32 &id)
Add or update a Calibration entry.
Definition: BdsC.cc:10391
BError clean(CleanOptions cleanOptions)
Cleans the system logs and Changes information.
Definition: BdsC.cc:13910
BError databaseRestore(BString ref, BString type)
Restore the database.
Definition: BdsC.cc:13970
BError metadataGetChannelInfo(Selection sel, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:11082
BError channelInstrumentUpdate(BInt32 append, ChannelInstrument channelInstrument, BUInt32 &id)
Add or update a Instrument entry.
Definition: BdsC.cc:9874
BError userSet(User user)
Set user info.
Definition: BdsC.cc:8414
BError modeSnapshotPause(BInt32 on)
Enables/disables backup synchronisation pause.
Definition: BdsC.cc:13881
BError groupDelete(BUInt32 id)
Delete a group entry.
Definition: BdsC.cc:8648
BError setUserReal()
Sets user back to real user.
Definition: BdsC.cc:8134
BError sourcePriorityGetList(BList< SourcePriority > &sourcePrioritys)
Get list of SourcePriorities.
Definition: BdsC.cc:9698
BError transactionEnd(BInt32 abort)
Ends a set of transactions.
Definition: BdsC.cc:13822
BError getVersion(BString &version, BString &name)
Gets the software version and server name.
Definition: BdsC.cc:8162
BError changeGroupEnd()
End a ChangeGroup.
Definition: BdsC.cc:13074
BError eventDelete(BUInt32 id)
Delete a Event entry.
Definition: BdsC.cc:10915
BError sensorDelete(BUInt32 id)
Delete a Sensor entry.
Definition: BdsC.cc:10279
BError userDelete(BUInt32 id)
Delete a user entry.
Definition: BdsC.cc:8292
BError userGetGroups(BList< BString > &groups)
Get list of groups the user belongs to.
Definition: BdsC.cc:8457
BError noteReadDocument(BUInt32 id, BString &format, BArray< BUInt8 > &data)
Read a document associated with a Note.
Definition: BdsC.cc:13478
BError dataFileUpdate(BInt32 append, DataFileInfo dataFile, BUInt32 &id)
Add or update a DataFile entry.
Definition: BdsC.cc:11501
BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo &selectionInfo)
Get information on possible selections. Use in GUI programs to list options available.
Definition: BdsC.cc:8785
BError dataFormattedRead(DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data)
Read the raw data from the file.
Definition: BdsC.cc:12874
BError eventUpdate(BInt32 append, Event event, BUInt32 &id)
Add or update a Event entry.
Definition: BdsC.cc:10850
This class defines a calibration setting.
Definition: BdsD.h:345
This holds information on a set of Changes.
Definition: BdsD.h:804
This class provides metadata information on a set of channels.
Definition: BdsD.h:554
This class defines a Channel's instrument.
Definition: BdsD.h:428
This class defines a seismic data Channel.
Definition: BdsD.h:451
This defines the set of clean options used in the clean() function.
Definition: BdsD.h:887
This is the Data Access API interface.
Definition: BdsC.h:26
BError noteReadDocument(BUInt32 id, BString &format, BArray< BUInt8 > &data)
Read a document associated with a Note.
Definition: BdsC.cc:3547
BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo &selectionInfo)
Get information on possible selections. Use in GUI programs to list options available.
Definition: BdsC.cc:2033
BError dataChannelGetList(Selection sel, BList< DataChannel > &dataChannel)
Get list of DataChannels.
Definition: BdsC.cc:818
BError networkGetList(BList< Network > &networks)
Get list of Networks.
Definition: BdsC.cc:454
BError serverConfigurationGet(BDict< BString > &items)
Get server configuration parameters.
Definition: BdsC.cc:3812
BError metadataGetChannelInfo(Selection sel, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:1688
BError dataRealtimeGet(BUInt32 numBlocks, BUInt32 &numBlocksAvailable, BList< DataBlockChannel > &dataBlocks)
Returns the number of data blocks available and up to numBlocks of these.
Definition: BdsC.cc:3341
BError userSet(User user)
Set user info.
Definition: BdsC.cc:253
BError dataFormattedGetLength(DataHandle dataHandle, BUInt64 &length)
Read the raw data from the file.
Definition: BdsC.cc:3255
DataAccess(BString name="")
Definition: BdsC.cc:9
BError responseGetList(Selection sel, BList< Response > &responses)
Get list of Responces.
Definition: BdsC.cc:1290
BError digitiserGet(BUInt32 id, Digitiser &digitiser)
Get a Digitiser object given its ID.
Definition: BdsC.cc:1053
BError stationGetList(Selection sel, BList< Station > &stations)
Get list of Stations.
Definition: BdsC.cc:504
BError setUserReal()
Sets user back to real user.
Definition: BdsC.cc:102
BError dataSearch(Selection selection, DataInfo &dataInfo)
Search for data matching the given selection parameters.
Definition: BdsC.cc:2317
BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:2456
BError noteWriteDocument(BUInt32 id, BString format, BArray< BUInt8 > data)
Given a Note write a document associated with it.
Definition: BdsC.cc:3513
BError dataFormattedRead(DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data)
Read the raw data from the file.
Definition: BdsC.cc:3218
BError calibrationGetList(Selection sel, BList< Calibration > &calibrations)
Get list of Calibrations.
Definition: BdsC.cc:1207
BError dataFormatGetList(BList< DataFormat > &formats)
Get list of data formats.
Definition: BdsC.cc:3852
BError digitiserGetList(Selection sel, BList< Digitiser > &digitisers)
Get list of Digitisers.
Definition: BdsC.cc:979
BError setUser(BString user, BString email)
Sets user to given name or email.
Definition: BdsC.cc:72
BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber)
Searches for a data block matching the time given.
Definition: BdsC.cc:3088
BError noteGetList(Selection sel, BList< Note > &notes)
Return a list of Notes.
Definition: BdsC.cc:3384
BError dataGetWarnings(DataHandle dataHandle, BList< BString > &warnings)
Get information on the data file.
Definition: BdsC.cc:3048
BError databaseBackup(BString &ref)
Backup the database.
Definition: BdsC.cc:3743
BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo &dataInfo)
Get information on the data file.
Definition: BdsC.cc:2875
BError eventGetList(Selection sel, BList< Event > &events)
Get list of Events.
Definition: BdsC.cc:1512
BError sensorGetList(Selection sel, BList< Sensor > &sensors)
Get list of Sensors.
Definition: BdsC.cc:1093
BError validateUser(BString user, BString email)
Checks the user given name or email.
Definition: BdsC.cc:42
BError dataFileGetList(Selection sel, BList< DataFileInfo > &dataFile)
Get list of DataFiles.
Definition: BdsC.cc:744
BError channelInstrumentGetList(Selection sel, BList< ChannelInstrument > &channelInstruments)
Get list of Instruments.
Definition: BdsC.cc:909
BError userGet(User &user)
Get user info.
Definition: BdsC.cc:207
BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle &dataHandle)
Open a data file.
Definition: BdsC.cc:2778
BError dataAvailability(Selection selection, BUInt32 num, BArray< DataAvailChan > &dataAvailChans)
Return availability for data matching the given selection parameters. If num > 0 segment ito this num...
Definition: BdsC.cc:2235
BError dataRealtimeConfig(BInt32 enable, Selection sel)
Configures the sending of real-time data blocks.
Definition: BdsC.cc:3286
BError statisticsGet(BDict< BString > &info)
Get a list of system statistics.
Definition: BdsC.cc:3772
BError channelGetList(Selection sel, BList< Channel > &channels)
Get list of Channels.
Definition: BdsC.cc:587
BError sensorGet(BUInt32 id, Sensor &sensor)
Get a Sensor object given its ID.
Definition: BdsC.cc:1167
BError noteUpdate(BInt32 append, Note note, BUInt32 &id)
Add or update a Note.
Definition: BdsC.cc:3465
BError getSelections(SelectionGroup group, Selection selectionIn, Selection &selectionOut)
Get selection list.
Definition: BdsC.cc:2151
BError logUpdate(BInt32 append, Log log, BUInt32 &id)
Add or update a Log item.
Definition: BdsC.cc:3583
BError specialChannelGetList(Selection sel, BList< SpecialChannel > &specialChannels)
Get list of Special Channels.
Definition: BdsC.cc:1617
BError userGetFromId(BUInt32 id, User &user)
Get user info given user ID.
Definition: BdsC.cc:160
BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description)
Append a log item.
Definition: BdsC.cc:3620
BError clean(CleanOptions cleanOptions)
Cleans the system logs and Changes information.
Definition: BdsC.cc:3712
BError locationGetList(Selection sel, BList< Location > &locations)
Get list of Station, Channel or both Locations depending on the sel.locationSelect parameter.
Definition: BdsC.cc:1437
BError connect(BString user, BString password)
Provides user/password information for secure connection.
Definition: BdsC.cc:12
BError dataClose(DataHandle dataHandle, BError error, BInt32 del)
Close a file.
Definition: BdsC.cc:3186
BError sourceGetList(BList< Source > &sources)
Get list of Sources.
Definition: BdsC.cc:660
BError modeSnapshotPause(BInt32 on)
Enables/disables backup synchronisation pause.
Definition: BdsC.cc:3683
BError getVersion(BString &version, BString &name)
Gets the software version and server name.
Definition: BdsC.cc:130
BError groupGetList(BList< Group > &groups)
Get list of Groups.
Definition: BdsC.cc:414
BError metadataGetFormatted(Selection sel, BString format, BArray< BUInt8 > &data)
Return the channel MetaData in a particular format.
Definition: BdsC.cc:1972
BError modeSet(Mode mode, Mode &previousMode)
Changes the system mode from Master to slave.
Definition: BdsC.cc:3653
BError userGetOptions(BDict< BString > &items)
Get user options.
Definition: BdsC.cc:334
BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data)
Return a block of data.
Definition: BdsC.cc:3122
BError sourcePriorityGetList(BList< SourcePriority > &sourcePrioritys)
Get list of SourcePriorities.
Definition: BdsC.cc:702
BError userSetOptions(BDict< BString > &items)
Set user options.
Definition: BdsC.cc:374
BError userGetGroups(BList< BString > &groups)
Get list of groups the user belongs to.
Definition: BdsC.cc:296
BError dataGetNotes(DataHandle dataHandle, BList< Note > &notes)
Get notes on the data file.
Definition: BdsC.cc:2991
This is the DataAdd Access API interface.
Definition: BdsC.h:103
BError dataSearch(Selection selection, DataInfo &dataInfo)
Search for data matching the given selection parameters.
Definition: BdsC.cc:6307
BError dataPutBlock(DataHandle dataHandle, DataBlock data)
Send a block of data.
Definition: BdsC.cc:7270
BError eventGetList(Selection sel, BList< Event > &events)
Get list of Events.
Definition: BdsC.cc:5408
BError sourcePriorityGetList(BList< SourcePriority > &sourcePrioritys)
Get list of SourcePriorities.
Definition: BdsC.cc:4598
BError specialChannelGetList(Selection sel, BList< SpecialChannel > &specialChannels)
Get list of Special Channels.
Definition: BdsC.cc:5607
BError dataClose(DataHandle dataHandle, BError error, BInt32 del)
Close a file.
Definition: BdsC.cc:7322
BError channelGetList(Selection sel, BList< Channel > &channels)
Get list of Channels.
Definition: BdsC.cc:4483
BError dataGetChannelInfo(DataInfo dataInfo, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:6446
BError serverConfigurationGet(BDict< BString > &items)
Get server configuration parameters.
Definition: BdsC.cc:7948
BError dataGetBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data)
Return a block of data.
Definition: BdsC.cc:7112
BError userSetOptions(BDict< BString > &items)
Set user options.
Definition: BdsC.cc:4270
BError modeSnapshotPause(BInt32 on)
Enables/disables backup synchronisation pause.
Definition: BdsC.cc:7819
BError metadataGetChannelInfo(Selection sel, ChannelInfos &channelInfos)
Return the channel MetaData in structured form.
Definition: BdsC.cc:5678
BError statisticsGet(BDict< BString > &info)
Get a list of system statistics.
Definition: BdsC.cc:7908
BError setUser(BString user, BString email)
Sets user to given name or email.
Definition: BdsC.cc:3968
BError databaseBackup(BString &ref)
Backup the database.
Definition: BdsC.cc:7879
BError eventUpdate(BInt32 append, Event event, BUInt32 &id)
Add or update a Event entry.
Definition: BdsC.cc:5513
BError dataSetInfo(DataHandle dataHandle, DataInfo dataInfo)
Set the info when writing to a file.
Definition: BdsC.cc:7176
BError setUserReal()
Sets user back to real user.
Definition: BdsC.cc:3998
BError stationGetList(Selection sel, BList< Station > &stations)
Get list of Stations.
Definition: BdsC.cc:4400
BError dataOpen(DataInfo dataInfo, BString mode, BString format, BUInt32 flags, DataHandle &dataHandle)
Open a data file.
Definition: BdsC.cc:6768
BError dataFileGetList(Selection sel, BList< DataFileInfo > &dataFile)
Get list of DataFiles.
Definition: BdsC.cc:4640
BError responseGetList(Selection sel, BList< Response > &responses)
Get list of Responses.
Definition: BdsC.cc:5186
BError sensorGetList(Selection sel, BList< Sensor > &sensors)
Get list of Sensors.
Definition: BdsC.cc:4989
BError noteGetList(Selection sel, BList< Note > &notes)
Return a list of Notes.
Definition: BdsC.cc:7520
BError dataGetInfo(DataHandle dataHandle, BUInt32 infoExtra, DataInfo &dataInfo)
Get information on the data file.
Definition: BdsC.cc:6865
BError getSelections(SelectionGroup group, Selection selectionIn, Selection &selectionOut)
Get selection list.
Definition: BdsC.cc:6141
BError dataAvailability(Selection selection, BUInt32 num, BArray< DataAvailChan > &dataAvailChans)
Return availability for data matching the given selection parameters. If num > 0 segment ito this num...
Definition: BdsC.cc:6225
BError noteWriteDocument(BUInt32 id, BString format, BArray< BUInt8 > data)
Given a Note write a document associated with it.
Definition: BdsC.cc:7649
BError userGetGroups(BList< BString > &groups)
Get list of groups the user belongs to.
Definition: BdsC.cc:4192
BError getVersion(BString &version, BString &name)
Gets the software version and server name.
Definition: BdsC.cc:4026
BError sourceGetList(BList< Source > &sources)
Get list of Sources.
Definition: BdsC.cc:4556
BError dataChannelGetList(Selection sel, BList< DataChannel > &dataChannel)
Get list of DataChannels.
Definition: BdsC.cc:4714
BError groupGetList(BList< Group > &groups)
Get list of Groups.
Definition: BdsC.cc:4310
BError connect(BString user, BString password)
Provides user/password information.
Definition: BdsC.cc:3908
BError validateUser(BString user, BString email)
Checks the user given name or email.
Definition: BdsC.cc:3938
BError noteUpdate(BInt32 append, Note note, BUInt32 &id)
Add or update a Note.
Definition: BdsC.cc:7601
BError dataFormattedGetLength(DataHandle dataHandle, BUInt64 &length)
The total length in bytes of the formated data.
Definition: BdsC.cc:7391
BError dataGetNotes(DataHandle dataHandle, BList< Note > &notes)
Get notes on the data file.
Definition: BdsC.cc:6981
BError digitiserGetList(Selection sel, BList< Digitiser > &digitisers)
Get list of Channels.
Definition: BdsC.cc:4875
BError userSet(User user)
Set user info.
Definition: BdsC.cc:4149
BError modeSet(Mode mode, Mode &previousMode)
Changes the system mode from Master to slave.
Definition: BdsC.cc:7789
BError eventDelete(BUInt32 id)
Delete a Event entry.
Definition: BdsC.cc:5578
BError digitiserGet(BUInt32 id, Digitiser &digitiser)
Get a Digitiser object given its ID.
Definition: BdsC.cc:4949
BError logUpdate(BInt32 append, Log log, BUInt32 &id)
Append a log item ///< Add or update a Log item.
Definition: BdsC.cc:7719
BError noteReadDocument(BUInt32 id, BString &format, BArray< BUInt8 > &data)
Read a document associated with a Note.
Definition: BdsC.cc:7683
BError dataRealtimeConfig(BInt32 enable, Selection sel)
Configures the sending of real-time data blocks.
Definition: BdsC.cc:7422
BError dataGetWarnings(DataHandle dataHandle, BList< BString > &warnings)
Get information on the data file.
Definition: BdsC.cc:7038
BError sensorGet(BUInt32 id, Sensor &sensor)
Get a Sensor object given its ID.
Definition: BdsC.cc:5063
BError networkGetList(BList< Network > &networks)
Get list of Networks.
Definition: BdsC.cc:4350
BError dataSeekBlock(DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber)
Searches for a data block matching the time given.
Definition: BdsC.cc:7078
BError getSelectionInfo(SelectionGroup group, Selection selectionIn, SelectionInfo &selectionInfo)
Get information on possible selections. Use in GUI programs to list options available.
Definition: BdsC.cc:6023
BError channelInstrumentGetList(Selection sel, BList< ChannelInstrument > &channelInstruments)
Get list of Instruments.
Definition: BdsC.cc:4805
BError calibrationGetList(Selection sel, BList< Calibration > &calibrations)
Get list of Calibrations.
Definition: BdsC.cc:5103
BError metadataGetFormatted(Selection sel, BString format, BArray< BUInt8 > &data)
Return the channel MetaData in a particular format.
Definition: BdsC.cc:5962
BError userGetOptions(BDict< BString > &items)
Get user options.
Definition: BdsC.cc:4230
DataAddAccess(BString name="")
Definition: BdsC.cc:3905
BError dataRealtimeGet(BUInt32 numBlocks, BUInt32 &numBlocksAvailable, BList< DataBlockChannel > &dataBlocks)
Returns the number of data blocks available and up to numBlocks of these.
Definition: BdsC.cc:7477
BError dataFormatGetList(BList< DataFormat > &formats)
Get list of data formats.
Definition: BdsC.cc:7988
BError userGet(User &user)
Get user info.
Definition: BdsC.cc:4103
BError logAppend(BString type, BUInt32 priority, BString subSystem, BString title, BString description)
Append a log item.
Definition: BdsC.cc:7756
BError locationGetList(Selection sel, BList< Location > &locations)
Get list of Station, Channel or both Locations depending on the sel.locationSelect parameter.
Definition: BdsC.cc:5333
BError dataFormattedRead(DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data)
Read the raw data from the stream.
Definition: BdsC.cc:7354
BError userGetFromId(BUInt32 id, User &user)
Get user info given user ID.
Definition: BdsC.cc:4056
BError clean(CleanOptions cleanOptions)
Cleans the system logs and Changes information.
Definition: BdsC.cc:7848
This class provides the actual seismic data values contained within a single data block.
Definition: BdsD.h:697
This class defines information on a single channels set of data stored in a file.
Definition: BdsD.h:595
This class defines information on a sensor data file.
Definition: BdsD.h:566
This defines a handle to a sensor data stream/file when opened for read or write.
Definition: BdsD.h:677
This class defines information on a set of data.
Definition: BdsD.h:630
This class defines a seismic Digitiser.
Definition: BdsD.h:378
This class defines a seismic event.
Definition: BdsD.h:934
This holds information on a user security group.
Definition: BdsD.h:745
This class defines an integer based range.
Definition: BdsD.h:82
This class defines the physical location of a Station.
Definition: BdsD.h:203
This defines the selection cirteria when requesting a set of log entries.
Definition: BdsD.h:876
This holds information on a Log entry.
Definition: BdsD.h:857
This class defines a seismic Network organisation.
Definition: BdsD.h:98
This holds information on a Note for general information.
Definition: BdsD.h:825
This class defines a seismic Response characteristic.
Definition: BdsD.h:307
This class defines the set of metadata or siesmic data selected when getSelectionInfo() is use.
Definition: BdsD.h:474
This class defines a generic metadata or seismic data selection.
Definition: BdsD.h:507
This class defines a seismic Sensor.
Definition: BdsD.h:402
This class defines a Source Priority entry.
Definition: BdsD.h:138
This class defines a seismic data Source.
Definition: BdsD.h:118
Definition: BdsD.h:913
This class defines a seismic station.
Definition: BdsD.h:187
This holds information on a user.
Definition: BdsD.h:722
Definition: BdsC.cc:8
const BUInt32 apiVersion
Definition: BdsC.h:19
Mode
BdsServer mode.
Definition: BdsD.h:35
SelectionGroup
The Selection group when making selections.
Definition: BdsD.h:41