From OpenSCADAWiki
Public methods:
- int subVer( ); — Subsystem's version.
- int messPeriod( ); — Period of archiving of messages from the buffer (seconds).
- int valPeriod( ); — Acquisition of values period for the active archivers (milliseconds).
- int valPrior( ); — Priority of the tasks of the values acquisition for the active archivers.
- bool valForceCurTm( ); — Points to force of current time as the time-stamp of the getting values.
- AutoIdMode autoIdMode( ); — Gets the mode of forming ID of the automatic created archives.
- void setMessPeriod( int ivl ); — Setting the period of the archiving of messages from the buffer (seconds).
- void setValPeriod( int ivl ); — Setting the values' acquisition period for active archivers (milliseconds).
- void setValPrior( int ivl ); — Setting the priority of the values' acquisition task for the active archivers.
- void setValForceCurTm( bool vl ); — Force of current time as the time-stamp of the getting values.
- void setAutoIdMode( AutoIdMode vl ); — Sets the mode vl of forming ID of the automatic created archives.
- void setToUpdate( ); — Planing update flag set.
- void subStart( ); — Start of the subsystem.
- void subStop( ); — Stop of the system.
- void valList( vector<string> &list ) const; — The list of the values'archives in the subsystem.
- bool valPresent( const string &id ) const; — Check for the availability of the values' archive id.
- string valAdd( const string &id, const string &idb = DB_GEN ); — Addition of the new values' archive id. Returns the end created identifier.
- void valDel( const string &id, bool db = false ); — Deleting of the values' archive id.
- AutoHD<TVArchive> valAt( const string &id ) const; — Connection/addressing to the values' archive id.
- void setActMess( TMArchivator *a, bool val ); — Setting of the messages archivator a into the active status val. Active archivator will be provided by the subsystem with the flow of messages.
- void setActVal( TVArchive *a, bool val ); — Setting of the value archive a into the active status val. Active archive will be provided by the subsystem with the periodic flow of values (is determined by the periodicity of the archive).
- AutoHD<TTypeArchivator> at( const string &name ); — Connection/addressing to the archiver's type (module) name.
- void messPut( time_t tm, int utm, const string &categ, int8_t level, const string &mess, const string &arch = "" ); void messPut( const TMess::SRec &rec, const string &arch = "" ); — Location of the message mess with the level of the category categ and time tm+utm, or the complete TMess::SRec structure rec, into the buffer, and then into the messages' archive or direct to the pointed archivators arch (separated by symbol ';').
- void messPut( const vector<TMess::SRec> &recs, const string &arch = "" ); — Location of the group of values recs into the buffer, and then into the messages' archive or direct to the pointed archivators arch (separated by symbol ';').
- time_t messGet( time_t bTm, time_t eTm, vector<TMess::SRec> &recs, const string &category = "", int8_t level = TMess::Debug, const string &arch = "", time_t upTo = 0 ); — Values' request reqs for the specified period of time bTm, eTm for the specified category (by the template) category and level level from the archivators arch (separated by symbol ';'). Return time of the request stop, useful for continue from the point.
- time_t messBeg( const string &arch = "" ); — Beginning of the messages' archive as a whole or for the specified archiver arch.
- time_t messEnd( const string &arch = "" ); — End of the messages' archive as a whole or for the specified archiver arch.
- time_t rdTm( ); — Time of the last redundancy operation, maximum for message archivers in the active redundancy.
- double rdRestDtOverTm( ); — Overtime of the reserve history reload at start in days.
- void setRdRestDtOverTm( double vl ); — Setting of overtime of the reserve history reload at start in days.
- void rdActArchMList( vector<string> &ls, bool isRun = false ); — The list of active message archivators working in the redundancy scheme. When we indicate isRun there will be in the list only running message archvators in this station.
- string rdStRequest( const string &arch, XMLNode &req, const string &prevSt = "", bool toRun = true ); — Request req to the redundant station on behalf of the message archivator arch. The station for the request is selected after specified in prevSt for the running remotely message archivators when indicating toRun.
- TElem &messE( ); — DB structure of the messages' archivers.
- TElem &valE( ); — DB structure of the values' archivers.
- TElem &aValE( ); — DB structure of the values' archives.