Changeset 9737

Show
Ignore:
Timestamp:
10/07/08 17:24:31
Author:
jcorgan
Message:

wip

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/Makefile.am

    r9674 r9737  
    2424 
    2525ourinclude_HEADERS = \ 
    26     code_gen_1b.h 
     26    code_gen_1b.h \ 
     27    msequence_b.h 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/code_gen_1b.h

    r9674 r9737  
    2323#define INCLUDED_DSSS_CODE_GEN_1B_H 
    2424 
    25 #include <boost/shared_ptr.hpp
     25#include <gr_sync_block.h
    2626 
    2727namespace dsss { 
    2828 
    29   class code_gen_1b; 
    30   typedef boost::shared_ptr<code_gen_1b> code_gen_1b_sptr; 
    31  
    32   code_gen_1b_sptr make_code_gen_1b(); 
    33  
    34   class code_gen_1b 
     29  class code_gen_1b : public gr_sync_block 
    3530  { 
    36   private: 
    37     friend code_gen_1b_sptr make_code_gen_1b(); 
    38     code_gen_1b(); 
    39    
     31  protected: 
     32    code_gen_1b(const std::string &name); 
     33     
    4034  public: 
    4135    ~code_gen_1b(); 
    42    
    43     virtual unsigned char next(); 
    4436  }; 
    4537 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/Makefile.am

    r9674 r9737  
    3737# ---------------------------------------------------------------- 
    3838libgr_dsss_la_SOURCES = \ 
    39         code_gen_1b.cc 
     39        code_gen_1b.cc \ 
     40        msequence_b.cc 
    4041 
    4142libgr_dsss_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 
    4243 
    43 libgr_dsss_la_LIBADD = 
     44libgr_dsss_la_LIBADD = \ 
     45        $(GNURADIO_CORE_LA) 
    4446 
    4547# ---------------------------------------------------------------- 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/code_gen_1b.cc

    r9674 r9737  
    2525 
    2626#include <dsss/code_gen_1b.h> 
     27#include <gr_io_signature.h> 
    2728 
    2829namespace dsss { 
    2930 
    30   code_gen_1b_sptr 
    31   make_code_gen_1b() 
    32   { 
    33     return code_gen_1b_sptr(new code_gen_1b()); 
    34   } 
    35  
    36   code_gen_1b::code_gen_1b() 
     31  code_gen_1b::code_gen_1b(const std::string &name) 
     32    : gr_sync_block(name,  
     33                    gr_make_io_signature(0, 0, 0), 
     34                    gr_make_io_signature(1, 1, 1)) 
    3735  { 
    3836    // NOP 
     
    4442  } 
    4543 
    46   unsigned char 
    47   code_gen_1b::next() 
    48   { 
    49     return 0; 
    50   } 
    51  
    5244} /* namespace dsss */ 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_code_gen_1b.cc

    r9674 r9737  
    2727qa_code_gen_1b::t1() 
    2828{ 
    29   dsss::code_gen_1b_sptr g = dsss::make_code_gen_1b(); 
    30   CPPUNIT_ASSERT(g->next() == 0); 
     29  CPPUNIT_ASSERT(true); 
    3130} 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/code_gen_1b.i

    r9674 r9737  
    2727namespace dsss { 
    2828 
    29   // subset of GR_SWIG_BLOCK_MAGIC 
    30   class code_gen_1b; 
    31   typedef boost::shared_ptr<code_gen_1b> code_gen_1b_sptr; 
    32   %template(code_gen_1b_sptr) boost::shared_ptr<code_gen_1b>; 
    33   %rename(code_gen_1b) make_code_gen_1b; 
    34   %ignore code_gen_1b; 
    35  
    36   code_gen_1b_sptr make_code_gen_1b(); 
    37  
     29  SWIG_SHARED_PTR(code_gen_1b_sptr, dsss::code_gen_1b); 
     30   
    3831  class code_gen_1b 
    3932  { 
    40   private: 
     33  protected:    
    4134    code_gen_1b(); 
    42          
    43   public: 
    44     unsigned char next(); 
    4535  }; 
    4636 
  • gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/dsss.i

    r9674 r9737  
    2222%feature("autodoc", "1");               // generate python docstrings 
    2323 
    24 %include <exception.i> 
     24//%include <exception.i> 
    2525%import <gnuradio.i>                    // the common stuff 
    2626