History

TimeSeriesPlatformLibrary: Added code to handle application of meta-data filters.

J. Ritchie Carroll committed 7 years ago

Commit 9939c551 parent b9d9ecb10 files · +206 −17Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/SubscriberHandler.cpp (1 of 10 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Samples/SubscriberHandler.cpp+5−6
@@ -32,9 +32,9 @@ using namespace std; · 31 unmodified lines
3232 using namespace GSF;
3333 using namespace GSF::TimeSeries;
3434
35−SubscriberHandler::SubscriberHandler(const string& name)
35+SubscriberHandler::SubscriberHandler(string name) :
36+ m_name(std::move(name))
3637 {
37− m_name = name;
3838 }
3939
4040 SubscriptionInfo SubscriberHandler::CreateSubscriptionInfo()
@@ -153,9 +153,9 @@ void SubscriberHandler::ReceivedNewMeasurements(const vector<MeasurementPtr>& me · 112 unmodified lines
153153
154154 static long processCount = 0;
155155 static char timestamp[MaxTimestampSize];
156− static const long interval = 5 * 60;
156+ static const long interval = 10 * 60;
157157 const long measurementCount = measurements.size();
158− const bool showMessage = true; // (processCount + measurementCount >= (processCount / interval + 1) * interval);
158+ const bool showMessage = (processCount + measurementCount >= (processCount / interval + 1) * interval);
159159
160160 processCount += measurementCount;
161161
@@ -194,8 +194,7 @@ void SubscriberHandler::HistoricalReadComplete() · 32 unmodified lines
194194
195195 void SubscriberHandler::ConnectionEstablished()
196196 {
197− StatusMessage("Connection established.");
198−
197+ StatusMessage("Connection established.");
199198 }
200199
201200 void SubscriberHandler::ConnectionTerminated()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t