Ignore:
Timestamp:
01/23/04 20:02:02 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MGeomApply.cc

    r2749 r2899  
    1818!   Author(s): Thomas Bretz, 09/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2003
     20!   Copyright: MAGIC Software Development, 2000-2004
    2121!
    2222!
     
    4949//////////////////////////////////////////////////////////////////////////////
    5050#include "MGeomApply.h"
     51
     52#include <fstream>
    5153
    5254#include "MLog.h"
     
    134136    return kTRUE;
    135137}
     138
     139// --------------------------------------------------------------------------
     140//
     141// Implementation of SavePrimitive. Used to write the call to a constructor
     142// to a macro. In the original root implementation it is used to write
     143// gui elements to a macro-file.
     144//
     145void MGeomApply::StreamPrimitive(ofstream &out) const
     146{
     147    out << "   " << ClassName() << " " << GetUniqueName() << "(\"";
     148    out << "\"" << fName << "\", \"" << fTitle << "\");" << endl;
     149
     150    if (fGeomName.IsNull())
     151        return;
     152
     153    out << "   " << GetUniqueName() << ".SetGeometry(\"";
     154    out << fGeomName << "\");" << endl;
     155}
Note: See TracChangeset for help on using the changeset viewer.