commands.hpp

A set of command-defining classes that can be fed into widgets using the << operator.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2015-2017 Michigan State University MIT Software license; see doc/LICENSE.md

Defines

INCLUDE_EMP_WEB_COMMANDS_HPP_GUARD
class Close : public internal::WidgetCommand
#include <commands.hpp>

The Close command will prevent the specified widget from accepting further appends (and instead revert to trying parent widgets)

Public Functions

inline Close(const std::string &id)
inline bool Trigger(internal::WidgetInfo &w) const override
inline const std::string &GetID() const

Private Members

std::string close_id
class PrintStr : public internal::WidgetCommand
#include <commands.hpp>

The PrintStr command will print a pre-specified string to a widget.

Public Functions

inline PrintStr(const std::string &_s)
inline bool Trigger(internal::WidgetInfo &w) const override
inline const std::string &GetStr() const

Private Members

std::string str