// FilterAll.h #ifndef FilterAll_H #define FilterAll_H // Filter which flags all tracks in the same way. The default is to // keep all but construtor argument can be used to change this to // reject all. // // ObjStream example: // // [ myfilt FilterAll state=true ] // #include #include "Filter.h" namespace trf { class FilterAll : public Filter { public: // static methods // Return the type name. static TypeName get_type_name() { return "FilterAll"; } // Return the creator. static ObjCreator get_creator(); // Return the type. static Type get_static_type() { return get_creator(); } private: // attributes // state for all tracks (true to keep, false to reject) bool _state; private: // methods // output stream void ostr(std::ostream& stream) const; public: // methods // constructor FilterAll(bool state =true); // Return the type. Type get_type() const { return get_static_type(); } // Write the object data. ObjData write_data() const; // Return max chi-square. bool get_state() const { return _state; } // process a list of tracks FlagArray process(MTrackArray& trms) const; }; } // end namespace trf #endif