Structural deformable models
Macros | Functions
SensorColl.cpp File Reference
#include <typeinfo>
#include "SensorColl.h"
#include "SensorSet.h"
#include "Data.h"
#include "Errors.h"
#include "Model.h"
Include dependency graph for SensorColl.cpp:

Go to the source code of this file.

Macros

#define SHOW(a)
 

Functions

ostream & operator<< (ostream &os, const SensorCollection &sc)
 

Macro Definition Documentation

#define SHOW (   a)

Definition at line 13 of file SensorColl.cpp.

Referenced by SensorCollection::addSensor(), and SensorCollection::readSensor().

Function Documentation

ostream& operator<< ( std::ostream &  os,
const SensorCollection sc 
)

Definition at line 85 of file SensorColl.cpp.

References SensorCollection::isPrinted().

86 {
87  ((SensorCollection*)&sc)->m_Printlist.clear();
88  for(map<string,sensor_ptr>::const_iterator s=sc.begin(); s!=sc.end(); s++) {
89  if (s->second->getID() != "0" && // zero sensor
90  !s->second->getID().empty() && // uninitialized sensor
91  s->second->getID() != "d0" &&
92  !sc.isPrinted(s->second->getID())
93  )
94  {
95  s->second->hprint(os, (SensorCollection*)&sc);
96  }
97  }
98  return os;
99 }