Astra SDK  v2.1.3
FrameListener.hpp
1 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
2 // Copyright (c) 2015-2017 Orbbec 3D
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // Be excellent to each other.
17 #ifndef ASTRA_FRAMELISTENER_HPP
18 #define ASTRA_FRAMELISTENER_HPP
19 
20 namespace astra {
21 
22  class StreamReader;
23  class Frame;
24 
31  {
32  public:
33  virtual ~FrameListener() = default;
34  virtual void on_frame_ready(StreamReader& reader, Frame& frame) = 0;
35  };
36 
37  inline bool operator==(const FrameListener& l, const FrameListener& r)
38  {
39  return &l == &r;
40  }
41 }
42 
43 #endif // ASTRA_FRAMELISTENER_HPP
Frame class
Definition: Frame.hpp:32
Frame Listener class
Definition: FrameListener.hpp:31
Stream Reader class
Definition: StreamReader.hpp:39
bool operator==(const ImageStreamMode &lhs, const ImageStreamMode &rhs)
compare is ImageStreamMode equal
Definition: Image.hpp:230