Changeset 490 in Sophya for trunk/SophyaLib/NTools/histos.cc
- Timestamp:
- Oct 21, 1999, 5:25:53 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/histos.cc
r307 r490 1 1 // 2 // $Id: histos.cc,v 1. 3 1999-05-19 15:57:59ansari Exp $2 // $Id: histos.cc,v 1.4 1999-10-21 15:25:45 ansari Exp $ 3 3 // 4 4 … … 1737 1737 /////////////////////////////////////////////////////////// 1738 1738 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) 1739 void ObjFileIO<Histo>::ReadSelf(PInPersist& is) 1775 1740 { 1776 1741 char strg[256]; … … 1813 1778 } 1814 1779 1815 void FIO_Histo::WriteSelf(POutPersist& os) const1780 void ObjFileIO<Histo>::WriteSelf(POutPersist& os) const 1816 1781 { 1817 1782 if (dobj == NULL) return; … … 1856 1821 return; 1857 1822 } 1823 1824 #ifdef __CXX_PRAGMA_TEMPLATES__ 1825 #pragma define_template ObjFileIO<Histo> 1826 #endif 1827 1828 #if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES) 1829 template class ObjFileIO<Histo>; 1830 #endif
Note:
See TracChangeset
for help on using the changeset viewer.