Boost Users :
Subject: Re: [Boost-users] boost::asio and boost::statecharts newbie question
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-05-10 04:21:28
> However, in addition to using boost::asio, I am using the
> boost::statechart library as the controller (FSM) for a project. I have
> managed to get the serial port working with the boost::asio library. Now,
> problem is that I have an io_service defined and initialized in my
> statechart FSM.
Ok so far, although I don't see how an io_service defined and initialized in
an FSM is a problem.
> Is there some way to cast or otherwise use the io_service
> that I have therein into a serial_port?
I don't see how the casting io_service to serial_port has anything to do
with Boost.Statechart? Moreover, if you want to make an object internal to
an FSM visible from the outside then it seems you just need to add a get
function to your FSM class?
I guess I don't understand your question, so can you please be more
specific? A small code example is probably best.
-- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net