Changeset 668 in Sophya for trunk/SophyaLib/SkyT/specrespvector.h


Ignore:
Timestamp:
Nov 29, 1999, 3:16:10 PM (26 years ago)
Author:
ansari
Message:

Ajout de classes deleguees PPersist et correction integration - Sophie 29/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyT/specrespvector.h

    r607 r668  
    22//--------------------------------------------------------------------------
    33// File and Version Information:
    4 //      $Id: specrespvector.h,v 1.2 1999-11-20 21:00:53 ansari Exp $
     4//      $Id: specrespvector.h,v 1.3 1999-11-29 14:16:09 ansari Exp $
    55//
    66// Description:
     
    1818#include "specresp.h"
    1919#include "tvector.h"
     20#include "objfio.h"
    2021
    2122//------------------------------------
     
    2930// ***IMPORTANT*** All frequencies are expressed in GHz  (10^9 Hz)
    3031
    31 class SpecRespVec :  public SpectralResponse
    32 {
     32namespace SOPHYA {
     33 
     34  class SpecRespVec :  public SpectralResponse
     35  {
    3336
    3437public:
    3538  //Constructor
     39  SpecRespVec();
    3640  SpecRespVec(Vector const & nu, Vector const & fdenu, double numin=0., double numax=1.);
    3741
     
    4751
    4852  // Acces to Nu and T(nu) vectors
    49   inline Vector& getNuVec() { return _vecOfNu; }
    50   inline Vector& getTNuVec() { return _vecOfFDeNu; }
    51 
     53  inline Vector&  getNuVec()  { return _vecOfNu; } ;
     54  inline Vector& getTNuVec()  { return _vecOfFDeNu; }
     55  inline double getNuVec(int i) const { return _vecOfNu(i); }
     56  inline double getTNuVec(int i) const { return _vecOfFDeNu(i); }
     57  inline int NbElts() const { return _size;}
     58 
    5259  virtual void      Print(ostream& os)  const;
    53 
    5460
    5561protected:
    5662  Vector _vecOfNu;
    5763  Vector _vecOfFDeNu;
     64  int _size;
    5865};
    5966
     67  // ObjFileIO<SpecRespVec> pour les PPersist
     68  inline POutPersist& operator << (POutPersist& os, SpecRespVec & obj)
     69    { ObjFileIO<SpecRespVec> fio(&obj); fio.Write(os); return(os);}
     70 
     71  inline PInPersist& operator >> (PInPersist& os, SpecRespVec & obj)
     72    { ObjFileIO<SpecRespVec> fio(&obj); fio.Read(os); return(os);}
    6073
     74};  // End of namespace
    6175#endif
Note: See TracChangeset for help on using the changeset viewer.