Changeset 342 for bdm

Show
Ignore:
Timestamp:
05/14/09 17:16:45 (15 years ago)
Author:
smidl
Message:

Barcelona

Location:
bdm/stat
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r340 r342  
    629629        //!access function 
    630630        const RV& _urv() const {return Urv;} 
     631        //! set random rvariables 
     632        virtual void set_drv (const  RV &drv, const RV &urv) { Drv=drv;Urv=urv;} 
    631633}; 
    632634 
  • bdm/stat/libDS.h

    r313 r342  
    6868        //! returns number of data in the file; 
    6969        int ndat(){return Data.cols();} 
     70        //! no sense to log this type 
     71        void log_add ( logger &L ) {}; 
     72        //! no sense to log this type 
     73        void logit ( logger &L ) {}; 
    7074}; 
    7175 
     
    7680 
    7781*/ 
    78 class ItppFileDS: public FileDS { 
    79  
    80 public: 
    81         ItppFileDS ( const string &fname, const string &varname ) :FileDS() { 
     82class ITppFileDS: public FileDS { 
     83 
     84public: 
     85        ITppFileDS ( const string &fname, const string &varname ) :FileDS() { 
    8286                it_file it ( fname ); 
    8387                it << Name ( varname );  
     
    8589                time = 0; 
    8690                //rowid and delays are ignored 
    87         } 
     91        }; 
    8892}; 
    8993 
  • bdm/stat/libDS_ui.h

    r280 r342  
    122122}; 
    123123UIREGISTER ( UIstateDS ); 
     124 
     125/*! \brief UI for reading data from files 
     126 
     127\code 
     128\endcode 
     129*/ 
     130 
     131class UIITppFileDS : public UIbuilder { 
     132        public: 
     133                UIITppFileDS() :UIbuilder ( "ITppFileDS" ) {}; 
     134                bdmroot* build ( Setting &S ) const { 
     135                        RV* rvtmp; 
     136                        UIbuild(S["rv"], rvtmp); 
     137                        ITppFileDS *DS=new ITppFileDS(S["filename"],S["varname"]); 
     138                        DS->set_drv(*rvtmp,RV()); 
     139                        return DS; 
     140                } 
     141}; 
     142UIREGISTER ( UIITppFileDS ); 
     143 
    124144#endif // DS_UI_H