IFeatureObserver.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*=============================================================================
  2. Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
  3. Redistribution of this file, in original or modified form, without
  4. prior written consent of Allied Vision Technologies is prohibited.
  5. -------------------------------------------------------------------------------
  6. File: IFeatureObserver.h
  7. Description: Definition of interface AVT::VmbAPI::IFeatureObserver.
  8. -------------------------------------------------------------------------------
  9. THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  10. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
  11. NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  12. DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
  13. INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  14. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  15. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  16. AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  17. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  18. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  19. =============================================================================*/
  20. #ifndef AVT_VMBAPI_IFEATUREOBSERVER_H
  21. #define AVT_VMBAPI_IFEATUREOBSERVER_H
  22. #include <VimbaCPP/Include/VimbaCPPCommon.h>
  23. #include <VimbaCPP/Include/SharedPointerDefines.h>
  24. #include <VimbaCPP/Include/Feature.h>
  25. #include <vector>
  26. namespace AVT {
  27. namespace VmbAPI {
  28. class IFeatureObserver
  29. {
  30. public:
  31. //
  32. // Method: FeatureChanged()
  33. //
  34. // Purpose: The event handler function that gets called whenever
  35. // a feature has changed
  36. //
  37. // Parameters:
  38. //
  39. // [in] const FeaturePtr& pFeature The frame that has changed
  40. //
  41. IMEXPORT virtual void FeatureChanged( const FeaturePtr &pFeature ) = 0;
  42. //
  43. // Method: IFeatureObserver destructor
  44. //
  45. // Purpose: Destroys an instance of class IFeatureObserver
  46. //
  47. IMEXPORT virtual ~IFeatureObserver() {}
  48. protected:
  49. IMEXPORT IFeatureObserver() {}
  50. IMEXPORT IFeatureObserver( const IFeatureObserver& ) { /* No copy ctor */ }
  51. };
  52. typedef std::vector<IFeatureObserverPtr> IFeatureObserverPtrVector;
  53. }} // namespace AVT::VmbAPI
  54. #endif