QCPm3Param.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 <string.h>
00021 
00022 #include "QCPm3Param.hpp"
00023 
00024 
00028 const int      QCPm3Param::NB_TERM_REP_DEVEL;
00029 
00030 const string   QCPm3Param::A_GAUS1 ("AGaus1");
00031 const string   QCPm3Param::A_GAUS2 ("AGaus2");
00032 const string   QCPm3Param::B_GAUS1 ("BGaus1");
00033 const string   QCPm3Param::B_GAUS2 ("BGaus2");
00034 const string   QCPm3Param::C_GAUS1 ("CGaus1");
00035 const string   QCPm3Param::C_GAUS2 ("CGaus2");
00036 
00037 
00038 
00042 QCPm3Param::QCPm3Param (void) : 
00043   QCMndoParam() 
00044 {
00045   memset(aRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00046   memset(bRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00047   memset(cRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00048 }
00049 
00050 
00051 
00055 void
00056 QCPm3Param::readSetOfParameters (QCReader *reader) {
00057 
00058   QCMndoParam::readSetOfParameters(reader);
00059 
00060   reader->readLiteralAndVal(A_GAUS1, aRepDevel[0]);
00061   reader->readLiteralAndVal(A_GAUS2, aRepDevel[1]);
00062   reader->readLiteralAndVal(B_GAUS1, bRepDevel[0]);
00063   reader->readLiteralAndVal(B_GAUS2, bRepDevel[1]);
00064   reader->readLiteralAndVal(C_GAUS1, cRepDevel[0]);
00065   reader->readLiteralAndVal(C_GAUS2, cRepDevel[1]);
00066 }
00067 
00068 
00069 
00073 ostream&
00074 operator << (ostream& out, const QCPm3Param& param) {
00075   
00076   out << param.QCMndoParam::asBase();
00077 
00078   out << " * AGaus1:           " << param.aRepDevel[0]
00079       << "\n * AGaus2:           " << param.aRepDevel[1]
00080       << "\n * BGaus1:           " << param.bRepDevel[0]
00081       << "\n * BGaus2:           " << param.bRepDevel[1]
00082       << "\n * CGaus1:           " << param.cRepDevel[0]
00083       << "\n * CGaus2:           " << param.cRepDevel[1]
00084       << endl;
00085      
00086   return out;
00087 }

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