49using ReferenceManager::SafePointer;
50using ReferenceManager::SectionKey;
51using ReferenceManager::FileOffsetKey;
52using 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);
#define assert(condition)
void writeByte(Byte byte)
void writeHalfWord(HalfWord halfword)
unsigned int writePosition()
void writeWord(Word word)
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
ResourceType type() const
static void setSize(const SafePointable *obj, Word size)
static void registerSectionWriter(const SectionWriter *sWriter)
@ ST_MR
Machine resources section.
SectionElement * element(Word index) const
Word elementCount() const
virtual Word elementSize(const Section *section) const
virtual Section::SectionType type() const
static const Word elementSize_
The fixed size element.
static const TPEFResourceSectionWriter instance_
An unique instance of class.
virtual ~TPEFResourceSectionWriter()
TPEFResourceSectionWriter()
virtual void actualWriteData(BinaryStream &stream, const Section *section) const
Word FileOffset
Type for storing absolute file offsets.