QCFiles.cpp

Go to the documentation of this file.
00001 //*****************************************************************************//
00002 //                                                                             //
00003 //   Copyright (c) 2001                                                        //
00004 //      INRIA                                                                  //
00005 //      54600 VILLERS LES NANCY                                                //
00006 //      France                                                                 //
00007 //                                                                             //
00008 //*****************************************************************************//
00009 //                                                                             //
00010 //               *** NOTICE OF PROPRIETARY INFORMATION ***                     //
00011 //                                                                             //
00012 // The information contained in this file is considered proprietary and the    //
00013 // exclusive property of  INRIA. This information may not be disclosed,        //
00014 // duplicated or used, in whole or in part, for  any purpose  whatsoever       //
00015 // without express written authorization from INRIA                            //
00016 //                                                                             //
00017 //*****************************************************************************//
00018 
00019 
00020 #include "QCFiles.hpp"
00021 #include "QCReader.hpp"
00022 
00023 
00027 QCFiles::QCFiles (void) : _generalFile(""), _parameterFile(""),
00028                           _atomsFile(""), _resultFile(""),
00029                           _partitionFile(""), _densityFile(""),
00030                           _refs()
00031 {
00032   _refs[QCReader::GENERAL_FILE]      = &_generalFile;
00033   _refs[QCReader::PARAMETER_FILE]    = &_parameterFile;
00034   _refs[QCReader::ATOMS_FILE]        = &_atomsFile;
00035   _refs[QCReader::RESULT_FILE]       = &_resultFile;
00036   _refs[QCReader::DENSITY_FILE]      = &_densityFile;
00037   _refs[QCReader::PARTITION_FILE]    = &_partitionFile;
00038 }
00039 
00040 QCFiles::~QCFiles (void){
00041   QC_TRACE_END("BEGIN QCFiles::~QCFiles ");  
00042   QC_TRACE_END("   this : " << this << std::endl  <<  *this <<std::endl);
00043   
00044   QC_TRACE_END("END   QCFiles::~QCFiles ");  
00045 
00046 }
00047 
00051 ostream& 
00052 operator << (ostream& out, const QCFiles& files) {
00053   
00054   out << " * General File:   " << files.getGeneralFile() <<std::endl 
00055       << " * ParameterFile:  " << files.getParameterFile()<<std::endl 
00056       << " * Atoms File:     " << files.getAtomsFile()<<std::endl 
00057       << " * ResultFile:     " << files.resultFile() <<std::endl ;
00058 
00059   if(files.getDensityFile() != "") {
00060     out << " * Density File:   " << files.getDensityFile()<<std::endl ; 
00061   }
00062   if ( files.getPartitionFile() != "") {
00063     out << " * Partition File: " << files.getPartitionFile() <<std::endl ;
00064   }
00065   out   << std::endl;
00066   return out;
00067 }
00068 

Generated on Sat Jan 28 21:07:26 2006 for QC++ by  doxygen 1.4.4