Changeset 490 in Sophya for trunk/SophyaLib/NTools/histos.cc


Ignore:
Timestamp:
Oct 21, 1999, 5:25:53 PM (26 years ago)
Author:
ansari
Message:

Merge avec PEIDA++ (~V 3.8) et nettoyage pour nouveau PPersist Reza+cmv 21/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/histos.cc

    r307 r490  
    11//
    2 // $Id: histos.cc,v 1.3 1999-05-19 15:57:59 ansari Exp $
     2// $Id: histos.cc,v 1.4 1999-10-21 15:25:45 ansari Exp $
    33//
    44
     
    17371737///////////////////////////////////////////////////////////
    17381738
    1739 FIO_Histo::FIO_Histo()
    1740 {
    1741 dobj=new Histo;
    1742 ownobj=true;
    1743 }
    1744 
    1745 FIO_Histo::FIO_Histo(string const & filename)
    1746 {
    1747 dobj=new Histo;
    1748 ownobj=true;
    1749 Read(filename);
    1750 }
    1751 
    1752 FIO_Histo::FIO_Histo(const Histo & obj)
    1753 {
    1754 dobj = new Histo(obj);
    1755 ownobj=true;
    1756 }
    1757 
    1758 FIO_Histo::FIO_Histo(Histo * obj)
    1759 {
    1760 dobj = obj;
    1761 ownobj=false;
    1762 }
    1763 
    1764 FIO_Histo::~FIO_Histo()
    1765 {
    1766 if (ownobj && dobj) delete dobj;
    1767 }
    1768 
    1769 AnyDataObj* FIO_Histo::DataObj()
    1770 {
    1771 return(dobj);
    1772 }
    1773 
    1774 void FIO_Histo::ReadSelf(PInPersist& is)
     1739void ObjFileIO<Histo>::ReadSelf(PInPersist& is)
    17751740{
    17761741char strg[256];
     
    18131778}
    18141779
    1815 void FIO_Histo::WriteSelf(POutPersist& os) const
     1780void ObjFileIO<Histo>::WriteSelf(POutPersist& os) const
    18161781{
    18171782if (dobj == NULL)   return;
     
    18561821return;
    18571822}
     1823
     1824#ifdef __CXX_PRAGMA_TEMPLATES__
     1825#pragma define_template ObjFileIO<Histo>
     1826#endif
     1827
     1828#if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES)
     1829template class ObjFileIO<Histo>;
     1830#endif
Note: See TracChangeset for help on using the changeset viewer.