![]() |
EPANET-RTX
1.1
real-time extension for the EPANET toolkit
|
Public Types | |
|
typedef boost::circular_buffer < Point > | PointBuffer_t |
|
typedef std::pair < PointBuffer_t, boost::shared_ptr < boost::signals2::mutex > > | BufferMutexPair_t |
|
typedef std::map< std::string, BufferMutexPair_t > | KeyedBufferMutexMap_t |
|
typedef boost::shared_ptr < BufferPointRecord > | sharedPointer |
Public Types inherited from RTX::PointRecord | |
|
typedef boost::shared_ptr < PointRecord > | sharedPointer |
| typedef std::pair< time_t, time_t > | time_pair_t |
Public Member Functions | |
| BufferPointRecord (int defaultCapacity=100) | |
| virtual std::string | registerAndGetIdentifier (std::string recordName, Units dataUnits) |
| virtual std::vector< std::string > | identifiers () |
| virtual Point | point (const string &identifier, time_t time) |
| Get a Point with a specific name at a specific time. More... | |
| virtual Point | pointBefore (const string &identifier, time_t time) |
| virtual Point | pointAfter (const string &identifier, time_t time) |
| virtual std::vector< Point > | pointsInRange (const string &identifier, time_t startTime, time_t endTime) |
| Get a vector of Points with a specific name within a specific time range. More... | |
| virtual void | addPoint (const string &identifier, Point point) |
| virtual void | addPoints (const string &identifier, std::vector< Point > points) |
| virtual void | reset () |
| virtual void | reset (const string &identifier) |
| virtual Point | firstPoint (const string &id) |
| virtual Point | lastPoint (const string &id) |
| virtual time_pair_t | range (const string &id) |
| virtual std::ostream & | toStream (std::ostream &stream) |
Public Member Functions inherited from RTX::PointRecord | |
| std::string | name () |
| void | setName (std::string name) |
| virtual void | invalidate (const string &identifier) |
Additional Inherited Members | |
Protected Attributes inherited from RTX::PointRecord | |
| std::string | _cachedPointId |
| Point | _cachedPoint |
| std::map< std::string, Point > | _pointCache |
|
virtual |
Get a Point with a specific name at a specific time.
| name | The name of the data source (tag name). |
| time | The requested time. |
Reimplemented from RTX::PointRecord.
Reimplemented in RTX::DbPointRecord.
|
virtual |
Get a vector of Points with a specific name within a specific time range.
| name | The name of the data source (tag name). |
| startTime | The beginning of the requested time range. |
| endTime | The end of the requested time range. |
Reimplemented from RTX::PointRecord.
Reimplemented in RTX::DbPointRecord.