KeyblobEntry.h
/*
* File: KeyblobEntry.h
*
* Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
* See included license file for license details.
*/
#if !defined(_KeyblobEntry_h_)
#define _KeyblobEntry_h_
#include "smart_ptr.h"
#include "OptionContext.h"
namespace elftosb
{
class KeyblobEntry
{
public:
KeyblobEntry()
: m_id(0)
, m_options(0)
{
}
KeyblobEntry(uint32_t identifier)
: m_id(identifier)
, m_options(0)
{
}
virtual ~KeyblobEntry() {}
void setIdentifier(uint32_t identifier) { m_id = identifier; }
uint32_t getIdentifier() const { return m_id; }
inline void setOptions(OptionContext *context) { m_options = context; }
inline const OptionContext *getOptions() const { return m_options; }
protected:
uint32_t m_id;
smart_ptr<OptionContext> m_options;
};
}; // namespace elftosb
#endif // _KeyblobEntry_h_
elftosb::KeyblobEntry::setOptions
void setOptions(OptionContext *context)
Set the option context.
Definition: KeyblobEntry.h:38
elftosb::KeyblobEntry
Base class for data model of sections of the output file.
Definition: KeyblobEntry.h:18
elftosb::KeyblobEntry::m_options
smart_ptr< OptionContext > m_options
Options associated with just this keyblob entry.
Definition: KeyblobEntry.h:43
elftosb::KeyblobEntry::getOptions
const OptionContext * getOptions() const
Return the option context.
Definition: KeyblobEntry.h:40
smart_ptr
Simple, standard smart pointer class.
Definition: apps/elftosb/common/smart_ptr.h:18
elftosb
Definition: BootImage.h:13
elftosb::OptionContext
Pure abstract interface class to a table of options.
Definition: apps/elftosb/common/OptionContext.h:18
elftosb::KeyblobEntry::m_id
uint32_t m_id
Unique identifier.
Definition: KeyblobEntry.h:42