Program Listing for File ss_superstate_2.hpp

Return to documentation for file (/tmp/ws/src/SMACC2/smacc2_sm_reference_library/sm_pubsub_1/include/sm_pubsub_1/superstates/ss_superstate_2.hpp)

// Copyright 2021 RobosoftAI Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace sm_pubsub_1
{
namespace SS2
{
namespace sm_pubsub_1
{
namespace inner_states
{
// FORWARD DECLARATIONS OF ALL INNER STATES
class StiState1;
class StiState2;
class StiState3;
}  // namespace inner_states
}  // namespace sm_pubsub_1

using namespace sm_pubsub_1::inner_states;

// STATE DECLARATION
struct Ss2 : smacc2::SmaccState<Ss2, MsRun, StiState1>
{
public:
  using SmaccState::SmaccState;

  // TRANSITION TABLE
  typedef mpl::list<

    Transition<EvLoopEnd<StiState1>, StState4>

    >reactions;

  // STATE VARIABLES
  static constexpr int total_iterations() { return 5; }
  int iteration_count = 0;

  // STATE FUNCTIONS
  static void staticConfigure() {}

  void runtimeConfigure() {}
};  // namespace SS4

// forward declaration for the superstate
using SS = SS2::Ss2;

#include <sm_pubsub_1/states/inner_states/sti_state_1.hpp>
#include <sm_pubsub_1/states/inner_states/sti_state_2.hpp>
#include <sm_pubsub_1/states/inner_states/sti_state_3.hpp>

}  // namespace SS2
}  // namespace sm_pubsub_1