Last change
on this file since 138 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
783 bytes
|
Rev | Line | |
---|
[81] | 1 | #include "../include/Segment.h" |
---|
[88] | 2 | #include <sstream> |
---|
[81] | 3 | |
---|
| 4 | namespace environment { |
---|
| 5 | namespace data { |
---|
[88] | 6 | |
---|
| 7 | std::string Segment::print(uint32_t depth) |
---|
| 8 | { |
---|
| 9 | std::ostringstream out(""); |
---|
| 10 | std::string tab = std::string(depth,'\t'); |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | out << tab << "Segment \"" << name << "\"" << std::endl |
---|
| 14 | << std::hex |
---|
| 15 | << tab << " * base : " << std::setw(8) << std::setfill('0') << base << std::endl |
---|
| 16 | << tab << " * size : " << std::setw(8) << std::setfill('0') << size << std::endl |
---|
| 17 | << std::dec |
---|
| 18 | << tab << " * uncached : " << uncached << std::endl |
---|
| 19 | << tab << " * type : " << type; |
---|
| 20 | |
---|
| 21 | return out.str(); |
---|
| 22 | } |
---|
[81] | 23 | |
---|
| 24 | std::ostream& operator<< (std::ostream& output, Segment & x) |
---|
| 25 | { |
---|
[88] | 26 | output << x.print(0); |
---|
[81] | 27 | |
---|
| 28 | return output; |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | }; |
---|
| 32 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.