|
| | CHistorian (int nMaxSamples=10) |
| | Constructs historian object. More...
|
| |
| void | SetMaxSamples (unsigned int nMaxSamples) |
| | Sets maximum samples stored. More...
|
| |
| unsigned int | GetMaxSamples () const |
| | Returns number indicating maximum samples stored. More...
|
| |
|
unsigned int | GetNumOfSamplesStored () |
| | Returns number indicating how many samples were stored were added to the object from the beginning of its existance.
|
| |
| void | AddSample (double dSample) |
| | Insert a sample to the history record. More...
|
| |
std::unique_ptr< std::vector
< double > > | RetriveNSamples (int nN=0) const |
| | Return N samples stored. If The number of stored samples is lower than desired the returned vector will have last nN - numOfSamplesStored set to 0. More...
|
| |
| void | RetriveNSamples (std::vector< double > &v, int nN=0) const |
| | Return N samples stored. If The number of stored samples is lower than desired the returned vector will have last nN - numOfSamplesStored set to 0. More...
|
| |
| void | SetHistory (std::vector< double > &v) |
| | Clears stored samples and copies values from vector. More...
|
| |
|
void | Clear () |
| | Clears stored samples.
|
| |
|
double | LastSample () |
| | Returns last stored sample.
|
| |
Handles storing and dispensing given amount of samples.
- Using double-ended queue internally to ensure high performance when adding and retrieving samples.