FirmwareUpdateProgressObserver.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2016-2017 by Basler AG
3 // Project: GenApi
4 // Author: Andreas Gau
5 //
6 // License: This file is published under the license of the EMVA GenICam Standard Group.
7 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
8 // If for some reason you are missing this file please contact the EMVA or visit the website
9 // (http://www.genicam.org) for a full copy.
10 //
11 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
12 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
13 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
14 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
15 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
16 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
17 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
18 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
19 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
20 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
21 // POSSIBILITY OF SUCH DAMAGE.
22 //-----------------------------------------------------------------------------
27 #ifndef GENFW_FIRMWAREUPDATEPROGRESSOBSERVER_H
28 #define GENFW_FIRMWAREUPDATEPROGRESSOBSERVER_H
29 
30 #include <GenICamFwd.h>
31 #include <Base/GCException.h>
36 
37 namespace GENAPI_NAMESPACE
38 {
44  {
53  };
54 
55 
60  class GENFW_DECL_ABSTRACT IFirmwareUpdateProgressObserver : public IDestructible
61  {
62  public:
70  virtual void OnFirmwareUpdateBegin(const CFirmwareUpdateInfo& FirmwareUpdateInfo, unsigned int EstimatedDurationMs) = 0;
71 
72 
80  virtual void OnFirmwareUpdateProgressStepBegin(EFirmwareUpdateProgressStepType ProgressStepType, unsigned int EstimatedDurationMs, const char* Description) = 0;
81 
82 
92  virtual void OnFirmwareUpdateProgressStepPartialProgress(EFirmwareUpdateProgressStepType ProgressStepType, double ProgressPercentOfDone) = 0;
93 
94 
103  virtual void OnFirmwareUpdateProgressStepEnd(EFirmwareUpdateProgressStepType ProgressStepType, unsigned int EstimatedDurationMs) = 0;
104 
105 
111  virtual void OnFirmwareUpdateEnd() = 0;
112 
113 
122  virtual void OnFirmwareUpdateError(const GENICAM_NAMESPACE::GenericException& TheError) = 0;
123  };
124 }
125 
126 #endif // GENFW_FIRMWAREUPDATEPROGRESSOBSERVER_H
Identifies a single firmware update and holds information about the firmware update.
Defines to be used for FirmwareUpdate library.
helpers for pragma linkage
Checks that everything required for the update is available.
Destructible object to ensure destruction via interface.
Definition: Destructible.h:37
Forward declarations for GenICam types.
Asserts a GenICam feature&#39;s value matches a regular expression.
Compares all conditions of the update with the device.
Uploads a file to the device using the GenICam FileAccess feature.
Writes the value to a GenICam feature of the device.
Declaration of CFirmwareUpdateInfo.
GenICam&#39;s exception class.
Definition: GCException.h:63
Lexical analyzer for CIntSwissKnife.
Definition: Destructible.h:30
Declaration of of IDestructible base class.
EFirmwareUpdateProgressStepType
The steps that can be performed in a firmware update.


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Sun Jun 18 2023 02:43:55