/* ======================================================================== *\
!
! *
! * This file is part of MARS, the MAGIC Analysis and Reconstruction
! * Software. It is distributed to you in the hope that it can be a useful
! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
! * It is distributed WITHOUT ANY WARRANTY.
! *
! * Permission to use, copy, modify and distribute this software and its
! * documentation for any purpose is hereby granted without fee,
! * provided that the above copyright notice appear in all copies and
! * that both that copyright notice and this permission notice appear
! * in supporting documentation. It is provided "as is" without express
! * or implied warranty.
! *
!
!
!   Author(s): Thomas Bretz  04/2002 <mailto:tbretz@uni-sw.gwdg.de>
!
!   Copyright: MAGIC Software Development, 2000-2002
!
!
\* ======================================================================== */

/////////////////////////////////////////////////////////////////////////////
//
//   MData
//
//   This base class defines an interface to a generalized value.
//   This value can be a simple number, it can also be a data member
//   of a class or some kind of concatenation of MData objects.
//
//   A class inheriting from MData must implement:
//
//    - Double_t GetValue() const
//      which return the value corresponding to the object
//
//    - Bool_t IsValid() const
//      should tell whether the object is valid (eg if the object parses
//      a string the result might be invalid)
//
//    - Bool_t PreProcess(const MParList *plist)
//      which can be used to get some necessary data (befor processing)
//      from the parlist.
//
/////////////////////////////////////////////////////////////////////////////

#include "MData.h"

#include <ostream.h>

ClassImp(MData);

Bool_t MData::AsciiWrite(ostream &out) const
{
    out << GetValue() << " ";
    return kTRUE;
}

