1
#pragma once
2

            
3
#include "envoy/common/pure.h"
4
#include "envoy/stream_info/filter_state.h"
5

            
6
namespace Envoy {
7
namespace StreamInfo {
8

            
9
/**
10
 * A FilterState object that tracks a single boolean value.
11
 */
12
class BoolAccessor : public FilterState::Object {
13
public:
14
  /**
15
   * @return the tracked value.
16
   */
17
  virtual bool value() const PURE;
18
};
19

            
20
} // namespace StreamInfo
21
} // namespace Envoy