CloudResult.h
Go to the documentation of this file.
1 
9 #ifndef _atm_CloudResult_h_
10 #define _atm_CloudResult_h_
11 
12 #include <iostream>
13 #include <string>
14 
15 namespace atm {
16 
43  class CloudResult {
44 
45  public:
46  CloudResult();
47  CloudResult(const float coverage,
48  const bool hasLidar,
49  const bool isValid = true);
50 
51  bool IsValid() const { return fIsValid; }
52  bool HaveLidar() const { return fHaveLidar; }
53  float GetCoverage() const { return fCloudCoverage; }
54 
55  std::string GetCoverageString() const;
56 
57  private:
58  bool fIsValid;
59  bool fHaveLidar;
61  };
62 
63  inline std::ostream& operator<<(std::ostream& os, const CloudResult& cr)
64  { return os << cr.GetCoverageString(); }
65 
66 }
67 
68 #endif // _atm_CloudResult_h_
69 
bool IsValid() const
Definition: CloudResult.h:51
std::ostream & operator<<(std::ostream &os, const CloudResult &cr)
Definition: CloudResult.h:63
bool HaveLidar() const
Definition: CloudResult.h:52
float fCloudCoverage
Definition: CloudResult.h:60
Store the obscuration of an FD pixel by a cloud in the field of view.
Definition: CloudResult.h:43
std::string GetCoverageString() const
Definition: CloudResult.cc:35
float GetCoverage() const
Definition: CloudResult.h:53

, generated on Tue Sep 26 2023.