Kinetis Bootloader Host  2.0.0
Host Tools for Kinetis devices
KeyblobEntry.h
1 /*
2 * File: KeyblobEntry.h
3 *
4 * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5 * See included license file for license details.
6 */
7 #if !defined(_KeyblobEntry_h_)
8 #define _KeyblobEntry_h_
9 
10 #include "smart_ptr.h"
11 #include "OptionContext.h"
12 
13 namespace elftosb
14 {
19 {
20 public:
21  KeyblobEntry()
22  : m_id(0)
23  , m_options(0)
24  {
25  }
26  KeyblobEntry(uint32_t identifier)
27  : m_id(identifier)
28  , m_options(0)
29  {
30  }
31  virtual ~KeyblobEntry() {}
32  void setIdentifier(uint32_t identifier) { m_id = identifier; }
33  uint32_t getIdentifier() const { return m_id; }
38  inline void setOptions(OptionContext *context) { m_options = context; }
40  inline const OptionContext *getOptions() const { return m_options; }
41 protected:
42  uint32_t m_id;
44 };
45 
46 }; // namespace elftosb
47 
48 #endif // _KeyblobEntry_h_
void setOptions(OptionContext *context)
Set the option context.
Definition: KeyblobEntry.h:38
Base class for data model of sections of the output file.
Definition: KeyblobEntry.h:18
smart_ptr< OptionContext > m_options
Options associated with just this keyblob entry.
Definition: KeyblobEntry.h:43
const OptionContext * getOptions() const
Return the option context.
Definition: KeyblobEntry.h:40
Simple, standard smart pointer class.
Definition: apps/elftosb/common/smart_ptr.h:18
Definition: BootImage.h:13
Pure abstract interface class to a table of options.
Definition: apps/elftosb/common/OptionContext.h:18
uint32_t m_id
Unique identifier.
Definition: KeyblobEntry.h:42