commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r3744 - gnuradio/branches/developers/jcorgan/cppwrap/g


From: jcorgan
Subject: [Commit-gnuradio] r3744 - gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native
Date: Sun, 8 Oct 2006 21:37:26 -0600 (MDT)

Author: jcorgan
Date: 2006-10-08 21:37:26 -0600 (Sun, 08 Oct 2006)
New Revision: 3744

Modified:
   
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.cc
   
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.h
Log:
Work in progress.  Added placeholder functions.


Modified: 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.cc
===================================================================
--- 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.cc
      2006-10-09 03:07:48 UTC (rev 3743)
+++ 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.cc
      2006-10-09 03:37:26 UTC (rev 3744)
@@ -134,7 +134,54 @@
     d_edges.clear();
 }
 
+void gr_flow_graph::setup_connections()
+{
+    create_block_list();
+    validate();
+    assign_details();
+    assign_buffers();
+    connect_inputs();
+}
+
+void gr_flow_graph::create_block_list()
+{
+}
+
+void gr_flow_graph::validate()
+{
+}
+
+void gr_flow_graph::assign_details()
+{
+}
+
+void gr_flow_graph::assign_buffers()
+{
+}
+
+void gr_flow_graph::connect_inputs()
+{
+}
+
+void gr_flow_graph::start()
+{
+    // TODO: check if already started
+    setup_connections();
+    // TODO: instantiate scheduler and call it with block list
+
+    printf("If this were a real program, something interesting would have just 
happened.\n");
+}
+
+void gr_flow_graph::stop()
+{
+}
+
+void gr_flow_graph::wait()
+{
+}
+
 void gr_flow_graph::run()
 {
-    printf("If this were a real program, something interesting would now 
happen.\n");
+    start();
+    wait();
 }

Modified: 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.h
===================================================================
--- 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.h
       2006-10-09 03:07:48 UTC (rev 3743)
+++ 
gnuradio/branches/developers/jcorgan/cppwrap/gnuradio-examples/native/gr_flow_graph.h
       2006-10-09 03:37:26 UTC (rev 3744)
@@ -43,8 +43,13 @@
     void check_valid_port(gr_io_signature_sptr sig, int port);
     void check_dst_not_used(gr_endpoint_t dst);
     void check_type_match(gr_endpoint_t src, gr_endpoint_t dst);
-
     void disconnect_prim(gr_endpoint_t src, gr_endpoint_t dst);
+    void setup_connections();
+    void create_block_list();
+    void validate();
+    void assign_details();
+    void assign_buffers();
+    void connect_inputs();
         
     gr_edge_vector_t d_edges;
                             
@@ -60,6 +65,9 @@
     
     // more disconnect convenience functions go here
     
+    void start();
+    void stop();
+    void wait();
     void run();
 };
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]