#include <TimeSeries.h>
Public Member Functions | |
TimeSeries () | |
TimeSeries (const TimeSeries &ts) | |
TimeSeries (const JString &xml) | |
TimeSeries (XMLNode *node) | |
virtual | ~TimeSeries () |
const TimeSeries & | operator= (const TimeSeries &profile) |
Object * | clone () const |
virtual unsigned long | getPayloadSize () const |
Get total size of payload. | |
bool | contains (const JTime &time) |
int | getCount () |
Object * | get (int pos) |
Object * | get (const JTime &time) |
Will only return the first if more with same time exist. | |
Object * | getFirstAfter (const JTime &time) |
Object * | getLastBefore (const JTime &time) |
ObjectCollection * | getAllBetween (const JTime &t1, const JTime &t2) |
ObjectCollection * | getAllBefore (const JTime &time) |
ObjectCollection * | getAllAfter (const JTime &time) |
bool | put (const JTime &time, Object *obj) |
bool | remove (const JTime &time) |
bool | removeOldest () |
bool | removeNewest () |
bool | removeAllBetween (const JTime &t1, const JTime &t2) |
bool | removeAllBefore (const JTime &time) |
bool | removeAllAfter (const JTime &time) |
bool | removeAll () |
JTime | getTime (int pos) |
JTime | getFirstTime () |
JTime | getLastTime () |
JTime | getNextTime () |
JTime | getPreviousTime () |
Object * | getOldest () |
Object * | getNewest () |
long | getBinarySize (int chunk) |
Get the size of binary data chunk, -1 for all chunks. | |
int | getBinaryChunkCount () |
Get the number of data chunks. | |
long | toBinaryBuffer (int chunk, char *buffer, int maxlen) |
Write binary data to buffer at chunk number 'chunk'. | |
bool | fromBinaryBuffer (int chunk, char *buffer, long len) |
Set the data after separate reception. | |
JString | print () |
bool | unitTest () |
Protected Attributes | |
SortedCollection | times |
ObjectDictionary | dict |
Definition at line 36 of file TimeSeries.h.
cmlabs::TimeSeries::TimeSeries | ( | ) |
Definition at line 33 of file TimeSeries.cpp.
cmlabs::TimeSeries::TimeSeries | ( | const TimeSeries & | ts | ) |
Definition at line 42 of file TimeSeries.cpp.
cmlabs::TimeSeries::TimeSeries | ( | const JString & | xml | ) |
Definition at line 53 of file TimeSeries.cpp.
cmlabs::TimeSeries::TimeSeries | ( | XMLNode * | node | ) |
Definition at line 57 of file TimeSeries.cpp.
cmlabs::TimeSeries::~TimeSeries | ( | ) | [virtual] |
Definition at line 37 of file TimeSeries.cpp.
const TimeSeries & cmlabs::TimeSeries::operator= | ( | const TimeSeries & | profile | ) |
Definition at line 47 of file TimeSeries.cpp.
Object * cmlabs::TimeSeries::clone | ( | ) | const [virtual] |
unsigned long cmlabs::TimeSeries::getPayloadSize | ( | ) | const [virtual] |
Get total size of payload.
Reimplemented from cmlabs::Object.
Definition at line 75 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::contains | ( | const JTime & | time | ) |
Definition at line 85 of file TimeSeries.cpp.
int cmlabs::TimeSeries::getCount | ( | ) |
Definition at line 80 of file TimeSeries.cpp.
Object * cmlabs::TimeSeries::get | ( | int | pos | ) |
Definition at line 102 of file TimeSeries.cpp.
Will only return the first if more with same time exist.
Definition at line 106 of file TimeSeries.cpp.
Definition at line 119 of file TimeSeries.cpp.
Definition at line 123 of file TimeSeries.cpp.
ObjectCollection * cmlabs::TimeSeries::getAllBetween | ( | const JTime & | t1, | |
const JTime & | t2 | |||
) |
Definition at line 207 of file TimeSeries.cpp.
ObjectCollection * cmlabs::TimeSeries::getAllBefore | ( | const JTime & | time | ) |
Definition at line 223 of file TimeSeries.cpp.
ObjectCollection * cmlabs::TimeSeries::getAllAfter | ( | const JTime & | time | ) |
Definition at line 236 of file TimeSeries.cpp.
Definition at line 128 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::remove | ( | const JTime & | time | ) |
Definition at line 148 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::removeOldest | ( | ) |
Definition at line 158 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::removeNewest | ( | ) |
Definition at line 169 of file TimeSeries.cpp.
Definition at line 180 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::removeAllBefore | ( | const JTime & | time | ) |
Definition at line 189 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::removeAllAfter | ( | const JTime & | time | ) |
Definition at line 198 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::removeAll | ( | ) |
Definition at line 249 of file TimeSeries.cpp.
JTime cmlabs::TimeSeries::getTime | ( | int | pos | ) |
Definition at line 91 of file TimeSeries.cpp.
JTime cmlabs::TimeSeries::getFirstTime | ( | ) |
Definition at line 259 of file TimeSeries.cpp.
JTime cmlabs::TimeSeries::getLastTime | ( | ) |
Definition at line 270 of file TimeSeries.cpp.
JTime cmlabs::TimeSeries::getNextTime | ( | ) |
Definition at line 281 of file TimeSeries.cpp.
JTime cmlabs::TimeSeries::getPreviousTime | ( | ) |
Definition at line 292 of file TimeSeries.cpp.
Object * cmlabs::TimeSeries::getOldest | ( | ) |
Definition at line 111 of file TimeSeries.cpp.
Object * cmlabs::TimeSeries::getNewest | ( | ) |
Definition at line 115 of file TimeSeries.cpp.
long cmlabs::TimeSeries::getBinarySize | ( | int | chunk | ) | [virtual] |
Get the size of binary data chunk, -1 for all chunks.
Get the size of any binary data.
Reimplemented from cmlabs::Object.
Definition at line 339 of file TimeSeries.cpp.
int cmlabs::TimeSeries::getBinaryChunkCount | ( | ) | [virtual] |
Get the number of data chunks.
Reimplemented from cmlabs::Object.
Definition at line 344 of file TimeSeries.cpp.
long cmlabs::TimeSeries::toBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
int | maxlen | |||
) | [virtual] |
Write binary data to buffer at chunk number 'chunk'.
Get a pointer to the binary data at chunk number 'chunk'.
Reimplemented from cmlabs::Object.
Definition at line 349 of file TimeSeries.cpp.
bool cmlabs::TimeSeries::fromBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
long | len | |||
) | [virtual] |
Set the data after separate reception.
Reimplemented from cmlabs::Object.
Definition at line 354 of file TimeSeries.cpp.
JString cmlabs::TimeSeries::print | ( | ) | [virtual] |
bool cmlabs::TimeSeries::unitTest | ( | ) | [virtual] |
SortedCollection cmlabs::TimeSeries::times [protected] |
Definition at line 97 of file TimeSeries.h.
ObjectDictionary cmlabs::TimeSeries::dict [protected] |
Definition at line 98 of file TimeSeries.h.