Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Shifter/include/Parameters.h" |
---|
9 | #include <sstream> |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace generic { |
---|
15 | namespace shifter { |
---|
16 | |
---|
17 | |
---|
18 | string Parameters::print (uint32_t depth) |
---|
19 | { |
---|
20 | string tab = string(depth,'\t'); |
---|
21 | ostringstream msg; |
---|
22 | msg << tab << "<shifter>" << endl |
---|
23 | << tab << "\t<size_data value=\"" << _size_data << "\" />" << endl |
---|
24 | << tab << "\t<nb_port value=\"" << _nb_port << "\" />" << endl |
---|
25 | << tab << "\t<shift_value value=\"" << _shift_value << "\" />" << endl |
---|
26 | << tab << "\t<rotate value=\"" << toString_rotate (_rotate ) << "\" />" << endl |
---|
27 | << tab << "\t<direction value=\"" << toString_direction (_direction) << "\" />" << endl |
---|
28 | << tab << "\t<carry value=\"" << toString_carry (_carry ) << "\" />" << endl |
---|
29 | << tab << "\t<!-- port_completion is type bool : " << toString(_type_completion_bool) << " -->" << endl |
---|
30 | << tab << "</shifter>" << endl; |
---|
31 | |
---|
32 | return msg.str(); |
---|
33 | }; |
---|
34 | |
---|
35 | ostream& operator<< (ostream& output_stream , |
---|
36 | morpheo::behavioural::generic::shifter::Parameters & x) |
---|
37 | { |
---|
38 | output_stream << x.print(0); |
---|
39 | |
---|
40 | return output_stream; |
---|
41 | }; |
---|
42 | |
---|
43 | }; // end namespace shifter |
---|
44 | }; // end namespace generic |
---|
45 | |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.