Go to the documentation of this file.
49 using ReferenceManager::SafePointer;
50 using ReferenceManager::SectionKey;
51 using ReferenceManager::FileOffsetKey;
52 using ReferenceManager::SectionIndexKey;
102 std::pair<HalfWord, ResourceElement::ResourceType> > checkMultiple;
112 std::pair<HalfWord, ResourceElement::ResourceType>
113 pairToFind(elem->
id(), elem->
type());
118 if (checkMultiple.find(pairToFind) != checkMultiple.end()) {
119 bool multipleResourcesWithSameIdAndType =
false;
120 assert(multipleResourcesWithSameIdAndType);
122 checkMultiple.insert(pairToFind);
void writeHalfWord(HalfWord halfword)
TPEFResourceSectionWriter()
void writeWord(Word word)
ResourceType type() const
unsigned int writePosition()
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
#define assert(condition)
SectionElement * element(Word index) const
static void registerSectionWriter(const SectionWriter *sWriter)
Word FileOffset
Type for storing absolute file offsets.
virtual void actualWriteData(BinaryStream &stream, const Section *section) const
void writeByte(Byte byte)
static const TPEFResourceSectionWriter instance_
An unique instance of class.
static void setSize(const SafePointable *obj, Word size)
virtual ~TPEFResourceSectionWriter()
virtual Section::SectionType type() const
static const Word elementSize_
The fixed size element.
@ ST_MR
Machine resources section.
Word elementCount() const
virtual Word elementSize(const Section *section) const