#ifndef COLLECT_PRESSURE_FROM_MDYNAMIX_H
#define COLLECT_PRESSURE_FROM_MDYNAMIX_H

#ifndef COLLECT_SCALAR_H
#include "Collect_scalar.h"
#endif

#include "Collect_scalar_to_file.h" //fix  to .cpp

namespace MM
{

class Collect_pressure_from_mDynaMix : public Collect_scalar
{
    double      current_value_;

public:
    explicit Collect_pressure_from_mDynaMix (Atom_group & atom_group)
    :
        Collect_scalar (atom_group, "Simulator"),
        current_value_ (0.)
    {
        //adopt_file_presentation
        //    (new Collect_scalar_to_file ("_md_pressure.xls"));
        new_graph_presentation ("pressure");
    }

//    MD_monitor * clone (Atom_group & atom_group, Text const & args) const
    Monitor * clone (Atom_group & atom_group, Text const &, Text) const
    {
        return new Collect_pressure_from_mDynaMix (atom_group);
    }

    Text         title      () const {return "Pressure";}
    Text         class_name () const {return "Collect_pressure_from_mDynaMix";}

    double       extract_current_value ()       {return current_value_;}
    void         set_current_value (double v)   {current_value_ = v;}
};

}//MM

#endif //COLLECT_PRESSURE_FROM_MDYNAMIX_H
