Changeset 13921
- Timestamp:
- 05/26/12 15:30:42 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/tngweather.cc
r13887 r13921 19 19 #include "tools.h" 20 20 21 #include "HeadersTNGWeather.h" 22 21 23 #include <Soprano/Soprano> 22 24 … … 26 28 27 29 using namespace std; 28 29 // ------------------------------------------------------------------------ 30 31 struct DimWeather 32 { 33 DimWeather() { memset(this, 0, sizeof(DimWeather)); } 34 35 float fTemp10M; 36 float fTemp5M; 37 float fTemp2M; 38 float fTempGround; 39 float fDewPoint; 40 float fHumidity; 41 float fAirPressure; 42 float fWindSpeed; 43 float fWindDirection; 44 float fDeltaM1; 45 float fDustTotal; 46 float fSeeing; 47 48 } __attribute__((__packed__)); 49 50 51 // ------------------------------------------------------------------------ 30 using namespace TNGWeather; 31 52 32 53 33 class ConnectionWeather : public Connection … … 420 400 S fWeather; 421 401 422 enum states_t423 {424 kStateDisconnected = 1,425 kStateConnected,426 kStateReceiving,427 };428 429 402 bool CheckEventSize(size_t has, const char *name, size_t size) 430 403 { … … 500 473 501 474 // State names 502 AddStateName(kStateDisconnected, "NoConnection",475 T::AddStateName(State::kDisconnected, "NoConnection", 503 476 "No connection to web-server could be established recently"); 504 477 505 AddStateName(kStateConnected, "Invalid",478 T::AddStateName(State::kConnected, "Invalid", 506 479 "Connection to webserver can be established, but received data is not recent or invalid"); 507 480 508 AddStateName(kStateReceiving, "Valid",481 T::AddStateName(State::kReceiving, "Valid", 509 482 "Connection to webserver can be established, receint data received"); 510 483
Note:
See TracChangeset
for help on using the changeset viewer.