|
Last change
on this file since 120 was
88,
checked in by rosiere, 17 years ago
|
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
|
File size:
783 bytes
|
| Line | |
|---|
| 1 | #include "../include/Segment.h" |
|---|
| 2 | #include <sstream> |
|---|
| 3 | |
|---|
| 4 | namespace environment { |
|---|
| 5 | namespace data { |
|---|
| 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 | } |
|---|
| 23 | |
|---|
| 24 | std::ostream& operator<< (std::ostream& output, Segment & x) |
|---|
| 25 | { |
|---|
| 26 | output << x.print(0); |
|---|
| 27 | |
|---|
| 28 | return output; |
|---|
| 29 | }; |
|---|
| 30 | |
|---|
| 31 | }; |
|---|
| 32 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.