Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvGenFUUpdater.h
1// *****************************************************************************
2//
3// Copyright (c) 2024, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PVGENFUUPDATER_H__
8#define __PVGENFUUPDATER_H__
9
10#include <memory>
11#include <string>
12
13#include <PvUpdaterLib.h>
14#include <PvDeviceInfo.h>
15
16namespace PvUpdaterLib
17{
18 class PleoraGenFUUpdater;
19 class ZipFwFileReader;
20}
21
36{
37public:
38 virtual ~IUpdaterObserver() = default;
39
45 virtual void UpdateProgressLabel( const char* aMsg ) = 0;
46
52 virtual void UpdateProgressValue( int aValue ) = 0;
53};
54
68class PV_UPDATER_API PvGenFUUpdater final
69{
70public:
80 PvGenFUUpdater( const char* aPath, const char* aFileName,
81 const PvDeviceInfo* aDeviceInfo, const char* aDeviceId, bool aDeviceReset );
82
87
97 void Attach( IUpdaterObserver* aObserver );
98
106 void Detach( IUpdaterObserver* aObserver );
107
118 void Start();
119
129 bool IsDone() const;
130
140
141private:
142 PvUpdaterLib::PleoraGenFUUpdater* mThis;
143 PvUpdaterLib::ZipFwFileReader* mGufFileReader = nullptr;
144};
145
146
147#endif
Interface used to receive progress updates from the PvGenFUUpdater.
Definition PvGenFUUpdater.h:36
virtual void UpdateProgressLabel(const char *aMsg)=0
Callback for progress messages.
virtual void UpdateProgressValue(int aValue)=0
Callback for progress value.
Information identifying a device.
Definition PvDeviceInfo.h:27
Class used to perform a GenICam firmware update on a device.
Definition PvGenFUUpdater.h:69
PvGenFUUpdater(const char *aPath, const char *aFileName, const PvDeviceInfo *aDeviceInfo, const char *aDeviceId, bool aDeviceReset)
Constructor.
void Start()
Start the GenICam firmware update.
bool IsDone() const
Check if update has completed.
PvResult GetResult() const
Gets result of the update.
~PvGenFUUpdater()
Destructor.
void Detach(IUpdaterObserver *aObserver)
Detach observer.
void Attach(IUpdaterObserver *aObserver)
Attach an observer.
Result information.
Definition PvResult.h:30

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com