34 explicit outputTopic(hazdevbroker::Producer * producer);
52 bool setup(
const json::Value &config);
80 void send(
const std::string &message);
120 RdKafka::Topic * m_OutputTopic;
125 hazdevbroker::Producer * m_OutputProducer;
137 int m_iRunningAverageCounter;
143 double m_dRunningSendTimeAverage;
149 int m_iMessageCounter;
154 time_t tLastPerformanceReport;
162 int m_iReportInterval;
165 #endif // OUTPUTTOPIC_H double m_dRightLongitude
the right side of the bounds rectangle in degrees of longitude.
Definition: outputTopic.h:109
double m_dTopLatitude
the top of the bounds rectangle in degrees of latitude.
Definition: outputTopic.h:94
std::string m_sTopicName
the std::string containing the topic name
Definition: outputTopic.h:114
glass3 output topic class
Definition: outputTopic.h:23
outputTopic(hazdevbroker::Producer *producer)
outputTopic constructor
Definition: outputTopic.cpp:12
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
void send(const std::string &message)
outputTopic send function The function sends the provided message using the producer pointer and the ...
Definition: outputTopic.cpp:187
bool setup(const json::Value &config)
outputTopic configuration function
Definition: outputTopic.cpp:34
bool isInBounds(double lat, double lon)
outputTopic bounds check function
Definition: outputTopic.cpp:177
double m_dBottomLatitude
the bottom of the bounds rectangle in degrees of latitude.
Definition: outputTopic.h:99
double m_dLeftLongitude
the left side of the bounds rectangle in degrees of longitude.
Definition: outputTopic.h:104
void clear()
outputTopic clear function
Definition: outputTopic.cpp:158
~outputTopic()
outputTopic destructor
Definition: outputTopic.cpp:29
void heartbeat()
outputTopic heartbeat function The function sends generates a heartbeat using the producer pointer an...
Definition: outputTopic.cpp:276