/*
 * (C) Copyright 1996- ECMWF.
 *
 * This software is licensed under the terms of the Apache Licence Version 2.0
 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
 * In applying this licence, ECMWF does not waive the privileges and immunities
 * granted to it by virtue of its status as an intergovernmental organisation nor
 * does it submit to any jurisdiction.
 */

/// @author Baudouin Raoult
/// @author Pedro Maciel
/// @date Apr 2015


#ifndef mir_action_GlobaliseFilter_h
#define mir_action_GlobaliseFilter_h

#include "mir/action/plan/Action.h"


namespace mir {
namespace action {


class GlobaliseFilter : public Action {
public:

    // -- Exceptions
    // None

    // -- Contructors

    GlobaliseFilter(const param::MIRParametrisation&);

    // -- Destructor

    virtual ~GlobaliseFilter(); // Change to virtual if base class

    // -- Convertors
    // None

    // -- Operators
    // None

    // -- Methods
    // None

    // -- Overridden methods
    // None

    // -- Class members
    // None

    // -- Class methods
    // None

protected:

    // -- Members
    // None

    // -- Methods
    // None

    // -- Overridden methods

    void print(std::ostream&) const;
    bool deleteWithNext(const Action&);

    // -- Class members
    // None

    // -- Class methods
    // None

private:

    // No copy allowed

    GlobaliseFilter(const GlobaliseFilter&);
    GlobaliseFilter& operator=(const GlobaliseFilter&);

    // -- Members


    // -- Methods
    // None

    // -- Overridden methods

    virtual void execute(context::Context & ctx) const;
    virtual bool sameAs(const Action& other) const;
    virtual const char* name() const;


    // -- Class members
    // None

    // -- Class methods
    // None

    // -- Friends

    //friend ostream& operator<<(ostream& s,const GlobaliseFilter& p)
    //	{ p.print(s); return s; }

};


}  // namespace action
}  // namespace mir


#endif

