hepmc - Diff between revs 117 and 128

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 117 Rev 128
Line 13... Line 13...
13 namespace HepMC { 13 namespace HepMC {
14 14
15     IO_Ascii::IO_Ascii( const char* filename, std::ios::openmode mode ) 15     IO_Ascii::IO_Ascii( const char* filename, std::ios::openmode mode )
16         : m_mode(mode), m_file(filename, mode), m_finished_first_event_io(0) 16         : m_mode(mode), m_file(filename, mode), m_finished_first_event_io(0)
17     { 17     {
-   18         std::cout << "-------------------------------------------------------" << std::endl;
-   19         std::cout << "Use of HepMC/IO_Ascii is deprecated" << std::endl;
-   20         std::cout << "-------------------------------------------------------" << std::endl;
18         if ( (m_mode&std::ios::out && m_mode&std::ios::in) || 21         if ( (m_mode&std::ios::out && m_mode&std::ios::in) ||
19              (m_mode&std::ios::app && m_mode&std::ios::in) ) { 22              (m_mode&std::ios::app && m_mode&std::ios::in) ) {
20             std::cerr << "IO_Ascii::IO_Ascii Error, open of file requested " 23             std::cerr << "IO_Ascii::IO_Ascii Error, open of file requested "
21                       << "of input AND output type. Not allowed. Closing file." 24                       << "of input AND output type. Not allowed. Closing file."
22                       << std::endl; 25                       << std::endl;
23             m_file.close(); 26             m_file.close();
-   27             return;
24         } 28         }
25         // precision 16 (# digits following decimal point) is the minimum that 29         // precision 16 (# digits following decimal point) is the minimum that
26         //  will capture the full information stored in a double 30         //  will capture the full information stored in a double
27         m_file.precision(16); 31         m_file.precision(16);
28         // we use decimal to store integers, because it is smaller than hex! 32         // we use decimal to store integers, because it is smaller than hex!