⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 camera.hpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 HPP
字号:
#ifndef BOOST_STATECHART_EXAMPLE_CAMERA_HPP_INCLUDED#define BOOST_STATECHART_EXAMPLE_CAMERA_HPP_INCLUDED//////////////////////////////////////////////////////////////////////////////// Copyright 2002-2006 Andreas Huber Doenni// Distributed under the Boost Software License, Version 1.0. (See accompany-// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)//////////////////////////////////////////////////////////////////////////////#include <boost/statechart/event.hpp>#include <boost/statechart/state_machine.hpp>#include <boost/statechart/simple_state.hpp>#include <boost/statechart/custom_reaction.hpp>#include <boost/config.hpp>#ifdef BOOST_INTEL#  pragma warning( disable: 304 ) // access control not specified#endifnamespace sc = boost::statechart;//////////////////////////////////////////////////////////////////////////////struct EvShutterHalf : sc::event< EvShutterHalf > {};struct EvShutterFull : sc::event< EvShutterFull > {};struct EvShutterRelease : sc::event< EvShutterRelease > {};struct EvConfig : sc::event< EvConfig > {};struct NotShooting;struct Camera : sc::state_machine< Camera, NotShooting >{    bool IsMemoryAvailable() const { return true; }    bool IsBatteryLow() const { return false; }};struct Idle;struct NotShooting : sc::simple_state< NotShooting, Camera, Idle >{  typedef sc::custom_reaction< EvShutterHalf > reactions;  NotShooting();  ~NotShooting();  sc::result react( const EvShutterHalf & );};  struct Idle : sc::simple_state< Idle, NotShooting >  {    typedef sc::custom_reaction< EvConfig > reactions;    Idle();    ~Idle();    sc::result react( const EvConfig & );  };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -