Changeset 579 for trunk


Ignore:
Timestamp:
08/23/11 11:00:42 (9 months ago)
Author:
ddangelo
Message:

Function to print information about auditor fields added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-python/src/avango/Field.cpp

    r562 r579  
    6363  } 
    6464 
     65  void print_auditors(const av::Field* self) 
     66  { 
     67    std::cout << "print_auditors: "<< self->getNumberOfConnectedFields()<< std::endl; 
     68    const std::set< av::Field* > auditors = self->getAuditors(); 
     69    std::set< av::Field* >::const_iterator iter; 
     70    for(iter=auditors.begin();iter!=auditors.end();++iter) 
     71    { 
     72      std::cout << self->getName() << std::endl; 
     73    } 
     74  } 
     75 
    6576  list 
    6677  FieldGetConnectedFields(av::Field* self) 
     
    112123    .def("__eq__", Field_equals) 
    113124    .def("__hash__", Field_hash) 
     125    .def("print_auditors", print_auditors) 
    114126    ; 
    115127 
Note: See TracChangeset for help on using the changeset viewer.