BdsApi  3.0.2
This is the Blacknest BDS API.
Public Member Functions | List of all members
Bds::AdminAccess Class Reference

This is the AdminAccess Access API interface. More...

#include <BdsC.h>

Inheritance diagram for Bds::AdminAccess:
BoapClientObject BSocket BSocket

Public Member Functions

 AdminAccess (BString name="")
 
BError connect (BString user, BString password)
 Provides user/password information. 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 userGetList (BList< User > &users)
 Get list of Users. More...
 
BError userUpdate (BInt32 append, User user, BUInt32 &id)
 Update or append a user entry. More...
 
BError userDelete (BUInt32 id)
 Delete a user entry. More...
 
BError userGetFromId (BUInt32 id, User &user)
 Get user info given user ID. More...
 
BError userGet (User &user)
 Get user info. More...
 
BError userSet (User user)
 Set user info. More...
 
BError userGetGroups (BList< BString > &groups)
 Get list of groups the user belongs to. More...
 
BError userGetOptions (BDict< BString > &items)
 Get user options. More...
 
BError userSetOptions (BDict< BString > &items)
 Set user options. More...
 
BError groupGetList (BList< Group > &groups)
 Get list of Groups. More...
 
BError groupUpdate (BInt32 append, Group group, BUInt32 &id)
 Update or append a group entry. More...
 
BError groupDelete (BUInt32 id)
 Delete a group entry. More...
 
BError accessGroupGetList (BList< AccessGroup > &accessGroups)
 Get list of AccessGroups. More...
 
BError accessGroupUpdate (BInt32 append, AccessGroup group, BUInt32 &id)
 Update or append an AccessGroup entry. More...
 
BError accessGroupDelete (BUInt32 id)
 Delete an AccessGroup entry. More...
 
BError getSelectionInfo (SelectionGroup group, Selection selectionIn, SelectionInfo &selectionInfo)
 Get information on possible selections. Use in GUI programs to list options available. More...
 
BError getSelections (SelectionGroup group, Selection selectionIn, Selection &selectionOut)
 Get selection list. More...
 
BError networkGetList (BList< Network > &networks)
 Get list of Networks. More...
 
BError networkUpdate (BInt32 append, Network network, BUInt32 &id)
 Add or update a Network entry. More...
 
BError networkDelete (BUInt32 id)
 Delete a Network entry. More...
 
BError stationGetList (Selection sel, BList< Station > &stations)
 Get list of Stations. More...
 
BError stationUpdate (BInt32 append, Station station, BUInt32 &id)
 Add or update a Station entry. More...
 
BError stationDelete (BUInt32 id)
 Delete a Station entry. More...
 
BError locationGetList (Selection sel, BList< Location > &locations)
 Get list of Station Locations. More...
 
BError locationUpdate (BInt32 append, Location location, BUInt32 &id)
 Add or update a Station Location entry. More...
 
BError locationDelete (BUInt32 id)
 Delete a Station Location entry. More...
 
BError channelGetList (Selection sel, BList< Channel > &channels)
 Get list of Channels. More...
 
BError channelGet (BUInt32 id, Channel &channel)
 Get a channel. More...
 
BError channelUpdate (BInt32 append, Channel channel, BUInt32 &id)
 Add or update a Channel entry. More...
 
BError channelDelete (BUInt32 id)
 Delete a Channel entry. More...
 
BError sourceGetList (BList< Source > &sources)
 Get list of Sources. More...
 
BError sourceUpdate (BInt32 append, Source source, BUInt32 &id)
 Add or update a Source entry. More...
 
BError sourceDelete (BUInt32 id)
 Delete a Source entry. More...
 
BError sourcePriorityGetList (BList< SourcePriority > &sourcePrioritys)
 Get list of SourcePriorities. More...
 
BError sourcePriorityUpdate (BInt32 append, SourcePriority sourcePriority, BUInt32 &id)
 
BError sourcePriorityDelete (BUInt32 id)
 
BError channelInstrumentGetList (Selection sel, BList< ChannelInstrument > &channelInstruments)
 Get list of Channel Instruments. More...
 
BError channelInstrumentUpdate (BInt32 append, ChannelInstrument channelInstrument, BUInt32 &id)
 Add or update a Instrument entry. More...
 
BError channelInstrumentDelete (BUInt32 id)
 Delete an Instrument entry. More...
 
BError digitiserGetList (Selection sel, BList< Digitiser > &digitisers)
 Get list of Digitisers. More...
 
BError digitiserGet (BUInt32 id, Digitiser &digitiser)
 Get a Digitiser object given its ID. More...
 
BError digitiserUpdate (BInt32 append, Digitiser digitiser, BUInt32 &id)
 Add or update a Digitiser entry. More...
 
BError digitiserDelete (BUInt32 id)
 Delete a Digitiser entry. More...
 
BError sensorGetList (Selection sel, BList< Sensor > &sensors)
 Get list of Sensors. More...
 
BError sensorGet (BUInt32 id, Sensor &sensor)
 Get a Sensor object given its ID. More...
 
BError sensorUpdate (BInt32 append, Sensor sensor, BUInt32 &id)
 Add or update a Sensor entry. More...
 
BError sensorDelete (BUInt32 id)
 Delete a Sensor entry. More...
 
BError calibrationGetList (Selection sel, BList< Calibration > &calibrations)
 Get list of Calibrations. More...
 
BError calibrationUpdate (BInt32 append, Calibration calibration, BUInt32 &id)
 Add or update a Calibration entry. More...
 
BError calibrationDelete (BUInt32 id)
 Delete a Calibration entry. More...
 
BError responseGetList (Selection sel, BList< Response > &responses)
 Get list of Responses. More...
 
BError responseUpdate (BInt32 append, Response response, BUInt32 &id)
 Add or update a Response entry. More...
 
BError responseDelete (BUInt32 id)
 Delete a Response entry. More...
 
BError eventGetList (Selection sel, BList< Event > &events)
 Get list of Events. More...
 
BError eventUpdate (BInt32 append, Event event, BUInt32 &id)
 Add or update a Event entry. More...
 
BError eventDelete (BUInt32 id)
 Delete a Event entry. More...
 
BError specialChannelGetList (Selection sel, BList< SpecialChannel > &specialChannels)
 Get list of Special Channels. More...
 
BError specialChannelUpdate (BInt32 append, SpecialChannel specialChannel, BUInt32 &id)
 Add or update a SpecialChannel entry. More...
 
BError specialChannelDelete (BUInt32 id)
 Delete a SpecialChannel entry. More...
 
BError metadataGetChannelInfo (Selection sel, ChannelInfos &channelInfos)
 Return the channel MetaData in structured form. More...
 
BError metadataGetFormatted (Selection sel, BString format, BArray< BUInt8 > &data)
 Return the channel MetaData in a particular format. More...
 
BError dataFileGetList (Selection sel, BList< DataFileInfo > &dataFile)
 Get list of DataFiles. More...
 
BError dataFileUpdate (BInt32 append, DataFileInfo dataFile, BUInt32 &id)
 Add or update a DataFile entry. More...
 
BError dataFileDelete (BUInt32 id)
 Delete a DataFile entry. More...
 
BError dataChannelGetList (Selection sel, BList< DataChannel > &dataChannel)
 Get list of DataChannels. More...
 
BError dataChannelUpdate (BInt32 append, DataChannel dataChannel, BUInt32 &id)
 Add or update a DataChannel entry. More...
 
BError dataChannelDelete (BUInt32 id)
 Delete a DataChannel entry. More...
 
BError dataAvailability (Selection selection, BUInt32 num, BArray< DataAvailChan > &dataAvailChans)
 Return availability for data matching the given selection parameters. If num > 0 segment ito this number of fixed time segments. 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 file. More...
 
BError dataGetInfo (DataHandle dataHandle, BUInt32 infoExtra, DataInfo &dataInfo)
 Get information on the data file. More...
 
BError dataGetNotes (DataHandle dataHandle, BList< Note > &notes)
 Get notes on the data file. More...
 
BError dataGetWarnings (DataHandle dataHandle, BList< BString > &warnings)
 Get information on the data file. More...
 
BError dataGetBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BUInt32 blockNumber, DataBlock &data)
 Return a block of data. More...
 
BError dataSeekBlock (DataHandle dataHandle, BUInt32 channel, BUInt32 segment, BTimeStamp time, BUInt32 &blockNumber)
 Searches for a data block matching the time given. More...
 
BError dataSetInfo (DataHandle dataHandle, DataInfo dataInfo)
 Set the info when writing to a file. More...
 
BError dataPutBlock (DataHandle dataHandle, DataBlock data)
 Send a block of data. More...
 
BError dataClose (DataHandle dataHandle, BError error, BInt32 del)
 Close a file. More...
 
BError dataFormattedRead (DataHandle dataHandle, BUInt32 number, BArray< BUInt8 > &data)
 Read the raw data from the file. More...
 
BError dataFormattedGetLength (DataHandle dataHandle, BUInt64 &length)
 Read the raw data from the file. More...
 
BError dataRealtimeConfig (BInt32 enable, Selection sel)
 Configures the sending of real-time data blocks. More...
 
BError dataRealtimeGet (BUInt32 numBlocks, BUInt32 &numBlocksAvailable, BList< DataBlockChannel > &dataBlocks)
 Returns the number of data blocks available and up to numBlocks of these. More...
 
BError changeGroupStart (ChangeGroup changeGroup)
 Start a new ChangeGroup when making a set of changes to the BDS's database. More...
 
BError changeGroupEnd ()
 End a ChangeGroup. More...
 
BError changeGroupGetList (ListRange range, BList< ChangeGroup > &changeGroups)
 Return a list of ChangeGroups. More...
 
BError changeGroupDelete (BTimeStamp beforeDate, BString type, BInt32 empty)
 Delete a ChangeGroup. More...
 
BError changeGetListNumber (BUInt32 id, BUInt32 &number)
 Get the number of changes in a ChangeGroup. More...
 
BError changeGetList (BUInt32 id, ListRange range, BList< Change > &changes)
 Get a list of Changes. More...
 
BError changeDelete (BTimeStamp beforeDate, BString type)
 Delete a Change. More...
 
BError noteGetList (Selection sel, BList< Note > &notes)
 Get a list of Notes. More...
 
BError noteUpdate (BInt32 append, Note note, BUInt32 &id)
 Add or update a Note. More...
 
BError noteDelete (BUInt32 id)
 Delete a Note. More...
 
BError noteWriteDocument (BUInt32 id, BString format, BArray< BUInt8 > data)
 Given a Note write a document associated with it. More...
 
BError noteReadDocument (BUInt32 id, BString &format, BArray< BUInt8 > &data)
 Read a document associated with a Note. More...
 
BError logGetList (LogSelect sel, BList< Log > &logs)
 Get list of log entries. More...
 
BError logUpdate (BInt32 append, Log log, BUInt32 &id)
 Add or Update a Log item. More...
 
BError logDelete (BUInt32 id)
 Delete a Log item. More...
 
BError logAppend (BString type, BUInt32 priority, BString subSystem, BString title, BString description)
 Append a log item. More...
 
BError statisticsGet (BDict< BString > &info)
 Get a list of system statistics. More...
 
BError serverConfigurationGet (BDict< BString > &items)
 Get server configuration parameters. More...
 
BError dataFormatGetList (BList< DataFormat > &formats)
 Get list of supported data formats. More...
 
BError transactionStart ()
 Starts a set of transactions. More...
 
BError transactionEnd (BInt32 abort)
 Ends a set of transactions. 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 databaseRestore (BString ref, BString type)
 Restore the database. More...
 
BError sqlQuery (BString query, BList< BDict< BString > > &result)
 A low level SQL access function. More...
 
BError extraCall (BUInt32 function, BString args, BString &result)
 A special function to add new functions to the API prior to a full API update. More...
 
- Public Member Functions inherited from BoapClientObject
 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)
 
- Public Member Functions inherited from BSocket
 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

- Public Types inherited from BSocket
enum  NType
 
enum  Priority
 
- Public Attributes inherited from BSocket
 STREAM
 
 DGRAM
 
 PriorityLow
 
 PriorityNormal
 
 PriorityHigh
 
- Protected Member Functions inherited from BoapClientObject
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)
 
- Protected Attributes inherited from BoapClientObject
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 is the AdminAccess Access API interface.

This object provides the set of API functions that make RPC network calls to a BdsServer. It provides the full unresiticed data access API allowring all data read and write operations to be performed.

Constructor & Destructor Documentation

◆ AdminAccess()

AdminAccess::AdminAccess ( BString  name = "")

Member Function Documentation

◆ accessGroupDelete()

BError AdminAccess::accessGroupDelete ( BUInt32  id)

Delete an AccessGroup entry.

◆ accessGroupGetList()

BError AdminAccess::accessGroupGetList ( BList< AccessGroup > &  accessGroups)

Get list of AccessGroups.

◆ accessGroupUpdate()

BError AdminAccess::accessGroupUpdate ( BInt32  append,
AccessGroup  group,
BUInt32 &  id 
)

Update or append an AccessGroup entry.

◆ calibrationDelete()

BError AdminAccess::calibrationDelete ( BUInt32  id)

Delete a Calibration entry.

◆ calibrationGetList()

BError AdminAccess::calibrationGetList ( Selection  sel,
BList< Calibration > &  calibrations 
)

Get list of Calibrations.

◆ calibrationUpdate()

BError AdminAccess::calibrationUpdate ( BInt32  append,
Calibration  calibration,
BUInt32 &  id 
)

Add or update a Calibration entry.

◆ changeDelete()

BError AdminAccess::changeDelete ( BTimeStamp  beforeDate,
BString  type 
)

Delete a Change.

◆ changeGetList()

BError AdminAccess::changeGetList ( BUInt32  id,
ListRange  range,
BList< Change > &  changes 
)

Get a list of Changes.

◆ changeGetListNumber()

BError AdminAccess::changeGetListNumber ( BUInt32  id,
BUInt32 &  number 
)

Get the number of changes in a ChangeGroup.

◆ changeGroupDelete()

BError AdminAccess::changeGroupDelete ( BTimeStamp  beforeDate,
BString  type,
BInt32  empty 
)

Delete a ChangeGroup.

◆ changeGroupEnd()

BError AdminAccess::changeGroupEnd ( )

End a ChangeGroup.

◆ changeGroupGetList()

BError AdminAccess::changeGroupGetList ( ListRange  range,
BList< ChangeGroup > &  changeGroups 
)

Return a list of ChangeGroups.

◆ changeGroupStart()

BError AdminAccess::changeGroupStart ( ChangeGroup  changeGroup)

Start a new ChangeGroup when making a set of changes to the BDS's database.

◆ channelDelete()

BError AdminAccess::channelDelete ( BUInt32  id)

Delete a Channel entry.

◆ channelGet()

BError AdminAccess::channelGet ( BUInt32  id,
Channel &  channel 
)

Get a channel.

◆ channelGetList()

BError AdminAccess::channelGetList ( Selection  sel,
BList< Channel > &  channels 
)

Get list of Channels.

◆ channelInstrumentDelete()

BError AdminAccess::channelInstrumentDelete ( BUInt32  id)

Delete an Instrument entry.

◆ channelInstrumentGetList()

BError AdminAccess::channelInstrumentGetList ( Selection  sel,
BList< ChannelInstrument > &  channelInstruments 
)

Get list of Channel Instruments.

◆ channelInstrumentUpdate()

BError AdminAccess::channelInstrumentUpdate ( BInt32  append,
ChannelInstrument  channelInstrument,
BUInt32 &  id 
)

Add or update a Instrument entry.

◆ channelUpdate()

BError AdminAccess::channelUpdate ( BInt32  append,
Channel  channel,
BUInt32 &  id 
)

Add or update a Channel entry.

◆ clean()

BError AdminAccess::clean ( CleanOptions  cleanOptions)

Cleans the system logs and Changes information.

◆ connect()

BError AdminAccess::connect ( BString  user,
BString  password 
)

Provides user/password information.

◆ dataAvailability()

BError AdminAccess::dataAvailability ( Selection  selection,
BUInt32  num,
BArray< DataAvailChan > &  dataAvailChans 
)

Return availability for data matching the given selection parameters. If num > 0 segment ito this number of fixed time segments.

◆ databaseBackup()

BError AdminAccess::databaseBackup ( BString &  ref)

Backup the database.

◆ databaseRestore()

BError AdminAccess::databaseRestore ( BString  ref,
BString  type 
)

Restore the database.

◆ dataChannelDelete()

BError AdminAccess::dataChannelDelete ( BUInt32  id)

Delete a DataChannel entry.

◆ dataChannelGetList()

BError AdminAccess::dataChannelGetList ( Selection  sel,
BList< DataChannel > &  dataChannel 
)

Get list of DataChannels.

◆ dataChannelUpdate()

BError AdminAccess::dataChannelUpdate ( BInt32  append,
DataChannel  dataChannel,
BUInt32 &  id 
)

Add or update a DataChannel entry.

◆ dataClose()

BError AdminAccess::dataClose ( DataHandle  dataHandle,
BError  error,
BInt32  del 
)

Close a file.

◆ dataFileDelete()

BError AdminAccess::dataFileDelete ( BUInt32  id)

Delete a DataFile entry.

◆ dataFileGetList()

BError AdminAccess::dataFileGetList ( Selection  sel,
BList< DataFileInfo > &  dataFile 
)

Get list of DataFiles.

◆ dataFileUpdate()

BError AdminAccess::dataFileUpdate ( BInt32  append,
DataFileInfo  dataFile,
BUInt32 &  id 
)

Add or update a DataFile entry.

◆ dataFormatGetList()

BError AdminAccess::dataFormatGetList ( BList< DataFormat > &  formats)

Get list of supported data formats.

◆ dataFormattedGetLength()

BError AdminAccess::dataFormattedGetLength ( DataHandle  dataHandle,
BUInt64 &  length 
)

Read the raw data from the file.

◆ dataFormattedRead()

BError AdminAccess::dataFormattedRead ( DataHandle  dataHandle,
BUInt32  number,
BArray< BUInt8 > &  data 
)

Read the raw data from the file.

◆ dataGetBlock()

BError AdminAccess::dataGetBlock ( DataHandle  dataHandle,
BUInt32  channel,
BUInt32  segment,
BUInt32  blockNumber,
DataBlock &  data 
)

Return a block of data.

◆ dataGetChannelInfo()

BError AdminAccess::dataGetChannelInfo ( DataInfo  dataInfo,
ChannelInfos &  channelInfos 
)

Return the channel MetaData in structured form.

◆ dataGetInfo()

BError AdminAccess::dataGetInfo ( DataHandle  dataHandle,
BUInt32  infoExtra,
DataInfo &  dataInfo 
)

Get information on the data file.

◆ dataGetNotes()

BError AdminAccess::dataGetNotes ( DataHandle  dataHandle,
BList< Note > &  notes 
)

Get notes on the data file.

◆ dataGetWarnings()

BError AdminAccess::dataGetWarnings ( DataHandle  dataHandle,
BList< BString > &  warnings 
)

Get information on the data file.

◆ dataOpen()

BError AdminAccess::dataOpen ( DataInfo  dataInfo,
BString  mode,
BString  format,
BUInt32  flags,
DataHandle &  dataHandle 
)

Open a data file.

Parameters
[in]dataInfoThe sensor data to open selection
[in]modeThe open format. The mode should be set to "w" for writing data, "a" when appending data and "r" for reading data.
[in]formatWhat format to open the data stream as. This can be API for raw BDS API access or one of the supported formats that the BDS is able to convert to.
[in]flagsA bitset of flags as defined by Bds::DataFlags.
[out]dataHandleThe handle for the open data set

◆ dataPutBlock()

BError AdminAccess::dataPutBlock ( DataHandle  dataHandle,
DataBlock  data 
)

Send a block of data.

◆ dataRealtimeConfig()

BError AdminAccess::dataRealtimeConfig ( BInt32  enable,
Selection  sel 
)

Configures the sending of real-time data blocks.

◆ dataRealtimeGet()

BError AdminAccess::dataRealtimeGet ( BUInt32  numBlocks,
BUInt32 &  numBlocksAvailable,
BList< DataBlockChannel > &  dataBlocks 
)

Returns the number of data blocks available and up to numBlocks of these.

◆ dataSearch()

BError AdminAccess::dataSearch ( Selection  selection,
DataInfo &  dataInfo 
)

Search for data matching the given selection parameters.

◆ dataSeekBlock()

BError AdminAccess::dataSeekBlock ( DataHandle  dataHandle,
BUInt32  channel,
BUInt32  segment,
BTimeStamp  time,
BUInt32 &  blockNumber 
)

Searches for a data block matching the time given.

◆ dataSetInfo()

BError AdminAccess::dataSetInfo ( DataHandle  dataHandle,
DataInfo  dataInfo 
)

Set the info when writing to a file.

◆ digitiserDelete()

BError AdminAccess::digitiserDelete ( BUInt32  id)

Delete a Digitiser entry.

◆ digitiserGet()

BError AdminAccess::digitiserGet ( BUInt32  id,
Digitiser &  digitiser 
)

Get a Digitiser object given its ID.

◆ digitiserGetList()

BError AdminAccess::digitiserGetList ( Selection  sel,
BList< Digitiser > &  digitisers 
)

Get list of Digitisers.

◆ digitiserUpdate()

BError AdminAccess::digitiserUpdate ( BInt32  append,
Digitiser  digitiser,
BUInt32 &  id 
)

Add or update a Digitiser entry.

◆ eventDelete()

BError AdminAccess::eventDelete ( BUInt32  id)

Delete a Event entry.

◆ eventGetList()

BError AdminAccess::eventGetList ( Selection  sel,
BList< Event > &  events 
)

Get list of Events.

◆ eventUpdate()

BError AdminAccess::eventUpdate ( BInt32  append,
Event  event,
BUInt32 &  id 
)

Add or update a Event entry.

◆ extraCall()

BError AdminAccess::extraCall ( BUInt32  function,
BString  args,
BString &  result 
)

A special function to add new functions to the API prior to a full API update.

◆ getSelectionInfo()

BError AdminAccess::getSelectionInfo ( SelectionGroup  group,
Selection  selectionIn,
SelectionInfo &  selectionInfo 
)

Get information on possible selections. Use in GUI programs to list options available.

◆ getSelections()

BError AdminAccess::getSelections ( SelectionGroup  group,
Selection  selectionIn,
Selection &  selectionOut 
)

Get selection list.

◆ getVersion()

BError AdminAccess::getVersion ( BString &  version,
BString &  name 
)

Gets the software version and server name.

◆ groupDelete()

BError AdminAccess::groupDelete ( BUInt32  id)

Delete a group entry.

◆ groupGetList()

BError AdminAccess::groupGetList ( BList< Group > &  groups)

Get list of Groups.

◆ groupUpdate()

BError AdminAccess::groupUpdate ( BInt32  append,
Group  group,
BUInt32 &  id 
)

Update or append a group entry.

◆ locationDelete()

BError AdminAccess::locationDelete ( BUInt32  id)

Delete a Station Location entry.

◆ locationGetList()

BError AdminAccess::locationGetList ( Selection  sel,
BList< Location > &  locations 
)

Get list of Station Locations.

◆ locationUpdate()

BError AdminAccess::locationUpdate ( BInt32  append,
Location  location,
BUInt32 &  id 
)

Add or update a Station Location entry.

◆ logAppend()

BError AdminAccess::logAppend ( BString  type,
BUInt32  priority,
BString  subSystem,
BString  title,
BString  description 
)

Append a log item.

◆ logDelete()

BError AdminAccess::logDelete ( BUInt32  id)

Delete a Log item.

◆ logGetList()

BError AdminAccess::logGetList ( LogSelect  sel,
BList< Log > &  logs 
)

Get list of log entries.

◆ logUpdate()

BError AdminAccess::logUpdate ( BInt32  append,
Log  log,
BUInt32 &  id 
)

Add or Update a Log item.

◆ metadataGetChannelInfo()

BError AdminAccess::metadataGetChannelInfo ( Selection  sel,
ChannelInfos &  channelInfos 
)

Return the channel MetaData in structured form.

◆ metadataGetFormatted()

BError AdminAccess::metadataGetFormatted ( Selection  sel,
BString  format,
BArray< BUInt8 > &  data 
)

Return the channel MetaData in a particular format.

◆ modeSet()

BError AdminAccess::modeSet ( Mode  mode,
Mode &  previousMode 
)

Changes the system mode from Master to slave.

◆ modeSnapshotPause()

BError AdminAccess::modeSnapshotPause ( BInt32  on)

Enables/disables backup synchronisation pause.

◆ networkDelete()

BError AdminAccess::networkDelete ( BUInt32  id)

Delete a Network entry.

◆ networkGetList()

BError AdminAccess::networkGetList ( BList< Network > &  networks)

Get list of Networks.

◆ networkUpdate()

BError AdminAccess::networkUpdate ( BInt32  append,
Network  network,
BUInt32 &  id 
)

Add or update a Network entry.

◆ noteDelete()

BError AdminAccess::noteDelete ( BUInt32  id)

Delete a Note.

◆ noteGetList()

BError AdminAccess::noteGetList ( Selection  sel,
BList< Note > &  notes 
)

Get a list of Notes.

◆ noteReadDocument()

BError AdminAccess::noteReadDocument ( BUInt32  id,
BString &  format,
BArray< BUInt8 > &  data 
)

Read a document associated with a Note.

◆ noteUpdate()

BError AdminAccess::noteUpdate ( BInt32  append,
Note  note,
BUInt32 &  id 
)

Add or update a Note.

◆ noteWriteDocument()

BError AdminAccess::noteWriteDocument ( BUInt32  id,
BString  format,
BArray< BUInt8 >  data 
)

Given a Note write a document associated with it.

◆ responseDelete()

BError AdminAccess::responseDelete ( BUInt32  id)

Delete a Response entry.

◆ responseGetList()

BError AdminAccess::responseGetList ( Selection  sel,
BList< Response > &  responses 
)

Get list of Responses.

◆ responseUpdate()

BError AdminAccess::responseUpdate ( BInt32  append,
Response  response,
BUInt32 &  id 
)

Add or update a Response entry.

◆ sensorDelete()

BError AdminAccess::sensorDelete ( BUInt32  id)

Delete a Sensor entry.

◆ sensorGet()

BError AdminAccess::sensorGet ( BUInt32  id,
Sensor &  sensor 
)

Get a Sensor object given its ID.

◆ sensorGetList()

BError AdminAccess::sensorGetList ( Selection  sel,
BList< Sensor > &  sensors 
)

Get list of Sensors.

◆ sensorUpdate()

BError AdminAccess::sensorUpdate ( BInt32  append,
Sensor  sensor,
BUInt32 &  id 
)

Add or update a Sensor entry.

◆ serverConfigurationGet()

BError AdminAccess::serverConfigurationGet ( BDict< BString > &  items)

Get server configuration parameters.

◆ setUser()

BError AdminAccess::setUser ( BString  user,
BString  email 
)

Sets user to given name or email.

◆ setUserReal()

BError AdminAccess::setUserReal ( )

Sets user back to real user.

◆ sourceDelete()

BError AdminAccess::sourceDelete ( BUInt32  id)

Delete a Source entry.

◆ sourceGetList()

BError AdminAccess::sourceGetList ( BList< Source > &  sources)

Get list of Sources.

◆ sourcePriorityDelete()

BError AdminAccess::sourcePriorityDelete ( BUInt32  id)

◆ sourcePriorityGetList()

BError AdminAccess::sourcePriorityGetList ( BList< SourcePriority > &  sourcePrioritys)

Get list of SourcePriorities.

◆ sourcePriorityUpdate()

BError AdminAccess::sourcePriorityUpdate ( BInt32  append,
SourcePriority  sourcePriority,
BUInt32 &  id 
)

◆ sourceUpdate()

BError AdminAccess::sourceUpdate ( BInt32  append,
Source  source,
BUInt32 &  id 
)

Add or update a Source entry.

◆ specialChannelDelete()

BError AdminAccess::specialChannelDelete ( BUInt32  id)

Delete a SpecialChannel entry.

◆ specialChannelGetList()

BError AdminAccess::specialChannelGetList ( Selection  sel,
BList< SpecialChannel > &  specialChannels 
)

Get list of Special Channels.

◆ specialChannelUpdate()

BError AdminAccess::specialChannelUpdate ( BInt32  append,
SpecialChannel  specialChannel,
BUInt32 &  id 
)

Add or update a SpecialChannel entry.

◆ sqlQuery()

BError AdminAccess::sqlQuery ( BString  query,
BList< BDict< BString > > &  result 
)

A low level SQL access function.

◆ stationDelete()

BError AdminAccess::stationDelete ( BUInt32  id)

Delete a Station entry.

◆ stationGetList()

BError AdminAccess::stationGetList ( Selection  sel,
BList< Station > &  stations 
)

Get list of Stations.

◆ stationUpdate()

BError AdminAccess::stationUpdate ( BInt32  append,
Station  station,
BUInt32 &  id 
)

Add or update a Station entry.

◆ statisticsGet()

BError AdminAccess::statisticsGet ( BDict< BString > &  info)

Get a list of system statistics.

◆ transactionEnd()

BError AdminAccess::transactionEnd ( BInt32  abort)

Ends a set of transactions.

◆ transactionStart()

BError AdminAccess::transactionStart ( )

Starts a set of transactions.

◆ userDelete()

BError AdminAccess::userDelete ( BUInt32  id)

Delete a user entry.

◆ userGet()

BError AdminAccess::userGet ( User &  user)

Get user info.

◆ userGetFromId()

BError AdminAccess::userGetFromId ( BUInt32  id,
User &  user 
)

Get user info given user ID.

◆ userGetGroups()

BError AdminAccess::userGetGroups ( BList< BString > &  groups)

Get list of groups the user belongs to.

◆ userGetList()

BError AdminAccess::userGetList ( BList< User > &  users)

Get list of Users.

◆ userGetOptions()

BError AdminAccess::userGetOptions ( BDict< BString > &  items)

Get user options.

◆ userSet()

BError AdminAccess::userSet ( User  user)

Set user info.

◆ userSetOptions()

BError AdminAccess::userSetOptions ( BDict< BString > &  items)

Set user options.

◆ userUpdate()

BError AdminAccess::userUpdate ( BInt32  append,
User  user,
BUInt32 &  id 
)

Update or append a user entry.

◆ validateUser()

BError AdminAccess::validateUser ( BString  user,
BString  email 
)

Checks the user given name or email.


The documentation for this class was generated from the following files: