It's better to say in this way: *how could I use stop(), start(), lock(), unlock() of the topblock methods? Is there any example of them?*
Thanks, On Wed, May 14, 2014 at 1:20 PM, Martin Braun <martin.br...@ettus.com>wrote: > On 13.05.2014 15:56, Mostafa Alizadeh wrote: > >> Thank you martin, >> >> I saw examples before, but all of them used blocks in the main of the >> c++ code. I wanna have a class derived from topblock of gnuradio and put >> the blocks' connections in it. Then in the main of the program, run or >> stop the topblock. >> >> Can you give a part of the code in c++ ? >> > > If it's not in the examples, I'm not sure what you exactly want. > Also, please use the mailing list for these kinds of requests. > > M > > >> >> >> On Tue, May 13, 2014 at 5:27 PM, Martin Braun <martin.br...@ettus.com >> <mailto:martin.br...@ettus.com>> wrote: >> >> On 13.05.2014 11:05, Mostafa Alizadeh wrote: >> >> Hi everybody, >> >> I was wonder why I can't make a class of topblock in c++ like in >> python >> as said here: >> >> http://gnuradio.org/redmine/__projects/gnuradio/wiki/__ >> TutorialsWritePythonApplicatio__ns >> >> <http://gnuradio.org/redmine/projects/gnuradio/wiki/ >> TutorialsWritePythonApplications> >> >> Then I think, I can control the flowgraph, start or stop it , >> disconnect >> or connect blocks and anything else . >> >> Any idea? >> >> >> It's pretty much the same, just in C++. >> Have a look at the c++ examples in the source tree, that'll get you >> started. >> >> M >> >> >> _________________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org <mailto:Discuss-gnuradio@gnu.org> >> https://lists.gnu.org/mailman/__listinfo/discuss-gnuradio >> <https://lists.gnu.org/mailman/listinfo/discuss-gnuradio> >> >> >> >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio