120 virtual std::ostream & streamify(std::ostream & cout )
const = 0;
122 virtual std::string getBiosVersion()
const = 0;
123 virtual void getHdrVersion(
unsigned int &major,
unsigned int &minor)
const = 0;
124 virtual const u32 *getSystemIdList()
const = 0;
125 virtual void doUpdate()
const = 0;
126 virtual FILE *getFh()
const = 0;
130 void operator =(
const IRbuHdr & );
DECLARE_EXCEPTION(RbuException)
const int SYSID_OVERRIDE
Definition: DellRbu.h:51
AbstractFactory that produces IRbuHdr objects.
Definition: DellRbu.h:72
void dellBiosUpdate(const IRbuHdr &hdr, packet_type force_type)
Update BIOS on Dell systems.
Interface definition for RBU HDR operations.
Definition: DellRbu.h:107
DECLARE_EXCEPTION_EX(RbuNotSupported, rbu, RbuException)
bool checkSystemId(const IRbuHdr &hdr, u16 sysId)
Check to see if a HDR file supports a specific System ID.
packet_type
Definition: DellRbu.h:45
driver_type
Definition: DellRbu.h:49
const int BIOSVER_OVERRIDE
Definition: DellRbu.h:52
virtual IRbuHdr * makeNew(std::string filename)=0
Create a new IRbuHdr object that the caller must delete. (NOT RECOMMENDED)
std::ostream & operator<<(std::ostream &cout, const IRbuHdr &item)
int compareBiosVersion(std::string ver1, std::string ver2)
Compare BIOS Versions.
static RbuFactory * getFactory()
Create a factory object that you can use to create IRbuHdr objects.
unsigned int u32
Definition: types.h:35
void cancelDellBiosUpdate()
Cancel BIOS Update on Dell systems.
unsigned short u16
Definition: types.h:31
Base class for all Abstract Factories.
Definition: IFactory.h:39
RbuFactory()
Use getFactory() to get a factory.