OpenASIP  2.0
UDataSection.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file UDataSection.hh
26  *
27  * Declaration of UDataSection class.
28  *
29  * @author Mikael Lepistö 2003 (tmlepist-no.spam-cs.tut.fi)
30  * @note reviewed 22 October 2003 by ml, jn, ao, tr
31  *
32  * @note rating: yellow
33  */
34 
35 #ifndef TTA_UDATA_SECTION_HH
36 #define TTA_UDATA_SECTION_HH
37 
38 #include "Section.hh"
39 #include "BaseType.hh"
40 #include "Exception.hh"
41 
42 namespace TPEF {
43 
44 /**
45  * Uninitilized data section.
46  */
47 class UDataSection : public RawSection {
48 public:
49  virtual ~UDataSection();
50 
51  virtual SectionType type() const;
52 
53  virtual Byte byte(const Chunk* chunk) const;
54 
55 protected:
56  UDataSection(bool init);
57  virtual Section* clone() const;
58 
59 private:
60  /// Protorype instance of section.
62 };
63 }
64 
65 #endif
BaseType.hh
Exception.hh
Byte
unsigned char Byte
Definition: BaseType.hh:116
TPEF::Section
Definition: Section.hh:64
TPEF::UDataSection
Definition: UDataSection.hh:47
TPEF::UDataSection::clone
virtual Section * clone() const
Definition: UDataSection.cc:79
TPEF::UDataSection::byte
virtual Byte byte(const Chunk *chunk) const
Definition: UDataSection.cc:92
TPEF::RawSection
Definition: Section.hh:196
Section.hh
TPEF::Section::SectionType
SectionType
Definition: Section.hh:69
TPEF::UDataSection::type
virtual SectionType type() const
Definition: UDataSection.cc:69
TPEF::UDataSection::UDataSection
UDataSection(bool init)
Definition: UDataSection.cc:46
TPEF::RawSection::chunk
virtual Chunk * chunk(SectionOffset offset) const
Definition: Section.cc:212
TPEF::UDataSection::proto_
static UDataSection proto_
Protorype instance of section.
Definition: UDataSection.hh:61
TPEF::UDataSection::~UDataSection
virtual ~UDataSection()
Definition: UDataSection.cc:60
TPEF::Chunk
Definition: Chunk.hh:45
TPEF
Definition: Assembler.hh:43