kvh_diagnostics_container.hpp
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (Apache 2.0)
3  *
4  * Copyright (c) 2019, The MITRE Corporation.
5  * All rights reserved.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * https://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * Sections of this project contains content developed by The MITRE Corporation.
20  * If this code is used in a deployment or embedded within another project,
21  * it is requested that you send an email to opensource@mitre.org in order to
22  * let us know where this software is being used.
23  *********************************************************************/
24 
31 #pragma once
32 
34 
35 namespace mitre
36 {
37  namespace KVH
38  {
40  {
41  public:
43 
45  //All of these functions interpret and store data from messages.
46  //They are NOT the functions called by the DiagnosticUpdater callbacks.
48  void SetSystemStatus(uint16_t _status) {systemStatus_ = _status; receivedSystemStatus_ = true;}
49  void SetFilterStatus(uint16_t _status) {filterStatus_ = _status; receivedFilterStatus_ = true;}
50 
52  // Callback functions for different diagnostics
53  // Each of these may aggregate data from multiple systems
57 
58  private:
59  uint16_t systemStatus_{0xFFFF}; // Assume all errors until stated otherwise
60  bool receivedSystemStatus_{false};
61  uint16_t filterStatus_{0x0000}; // Assume no initialization until stated otherwise
62  bool receivedFilterStatus_{false};
63  }; //end: class DiagnosticsContainer
64  } //end: namespace KVH
65 } //end: namespace mitre
void UpdateSystemStatus(diagnostic_updater::DiagnosticStatusWrapper &stat)
void UpdateFilterStatus(diagnostic_updater::DiagnosticStatusWrapper &stat)


kvh_geo_fog_3d_driver
Author(s): Trevor Bostic , Zach LaCelle
autogenerated on Fri Jan 24 2020 03:18:17