mirror of
https://github.com/nasa/trick.git
synced 2025-06-21 08:29:39 +00:00
Refactor ICG
Hey buddy. I wanted to tell you this before you heard it from someone else... I refactored ICG. Now, it's gonna look a little scary at first. But I promise you'll like it when you get used to it. It'll be fine. You can trust me. #341
This commit is contained in:
@ -17,26 +17,3 @@ void EnumValues::setHasDefinition( bool in ) {
|
||||
bool EnumValues::getHasDefinition() {
|
||||
return has_definition ;
|
||||
}
|
||||
|
||||
std::ostream & operator << (std::ostream & os , EnumValues & ev ) {
|
||||
os << " name = " << ev.name << std::endl ;
|
||||
os << " file_name = " << ev.file_name << std::endl ;
|
||||
os << " namespaces =" ;
|
||||
ConstructValues::NamespaceIterator it ;
|
||||
for ( it = ev.namespace_begin() ; it != ev.namespace_end() ; it++ ) {
|
||||
os << " " << *it ;
|
||||
}
|
||||
os << std::endl ;
|
||||
os << " parent classes =" ;
|
||||
for ( it = ev.container_class_begin() ; it != ev.container_class_end() ; it++ ) {
|
||||
os << " " << *it ;
|
||||
}
|
||||
os << std::endl ;
|
||||
|
||||
EnumValues::NameValueIterator eit ;
|
||||
for ( eit = ev.begin() ; eit != ev.end() ; eit++ ) {
|
||||
os << " " << (*eit).first << " " << (*eit).second << std::endl ;
|
||||
}
|
||||
|
||||
return os ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user