Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Transport/DataSubscriber.h (1 of 28 files). Show all
Unified · Split
| @@ -134,7 +134,7 @@ namespace Transport · 133 unmodified lines | ||
| 134 | 134 | |
| 135 | 135 | class DataSubscriber // NOLINT |
| 136 | 136 | { |
| 137 | − private: | |
| 137 | + public: | |
| 138 | 138 | // Function pointer types |
| 139 | 139 | typedef std::function<void(DataSubscriber*, const std::vector<uint8_t>&)> DispatcherFunction; |
| 140 | 140 | typedef std::function<void(DataSubscriber*, const std::string&)> MessageCallback; |
| @@ -144,6 +144,7 @@ namespace Transport · 3 unmodified lines | ||
| 144 | 144 | typedef std::function<void(DataSubscriber*)> ConfigurationChangedCallback; |
| 145 | 145 | typedef std::function<void(DataSubscriber*)> ConnectionTerminatedCallback; |
| 146 | 146 | |
| 147 | + private: | |
| 147 | 148 | // Structure used to dispatch |
| 148 | 149 | // callbacks on the callback thread. |
| 149 | 150 | struct CallbackDispatcher |
| @@ -263,14 +264,14 @@ namespace Transport · 113 unmodified lines | ||
| 263 | 264 | // Callback registration |
| 264 | 265 | // |
| 265 | 266 | // Callback functions are defined with the following signatures: |
| 266 | − // void ProcessStatusMessage(DataSubscriber*, const string& message) | |
| 267 | − // void ProcessErrorMessage(DataSubscriber*, const string& message) | |
| 268 | − // void ProcessDataStartTime(DataSubscriber*, int64_t startTime) | |
| 269 | − // void ProcessMetadata(DataSubscriber*, const vector<uint8_t>& metadata) | |
| 270 | − // void ProcessNewMeasurements(DataSubscriber*, const vector<MeasurementPtr>& newMeasurements) | |
| 271 | − // void ProcessProcessingComplete(DataSubscriber*, const string& message) | |
| 272 | − // void ProcessConfigurationChanged(DataSubscriber*) | |
| 273 | − // void ProcessConnectionTerminated(DataSubscriber*) | |
| 267 | + // void ProcessStatusMessage(DataSubscriber* source, const string& message) | |
| 268 | + // void ProcessErrorMessage(DataSubscriber* source, const string& message) | |
| 269 | + // void ProcessDataStartTime(DataSubscriber* source, int64_t startTime) | |
| 270 | + // void ProcessMetadata(DataSubscriber* source, const vector<uint8_t>& metadata) | |
| 271 | + // void ProcessNewMeasurements(DataSubscriber* source, const vector<MeasurementPtr>& newMeasurements) | |
| 272 | + // void ProcessProcessingComplete(DataSubscriber* source, const string& message) | |
| 273 | + // void ProcessConfigurationChanged(DataSubscriber* source) | |
| 274 | + // void ProcessConnectionTerminated(DataSubscriber* source) | |
| 274 | 275 | // |
| 275 | 276 | // Metadata is provided to the user as zlib-compressed XML, |
| 276 | 277 | // and must be decompressed and interpreted before it can be used. |