46 lines
925 B
C++
46 lines
925 B
C++
/*
|
|
* CopyAction.hh
|
|
*
|
|
* Created on: 30 îêò. 2020 ã.
|
|
* Author: LeonidTitov
|
|
*/
|
|
|
|
#ifndef UMLIBRARY_APPLICATION_UTILITY_COPYACTION_HH_
|
|
#define UMLIBRARY_APPLICATION_UTILITY_COPYACTION_HH_
|
|
|
|
#include "../ISetupStep.hh"
|
|
|
|
#include "../../systemic/IFunctor.hh"
|
|
|
|
namespace application { namespace utility {
|
|
|
|
//!Êîïèðîâàíèå äåéñòâèé.
|
|
struct CopyAction : public ISetupStep {
|
|
|
|
typedef systemic::IFunctor<void> Action;
|
|
|
|
Action * origin = nullptr;
|
|
|
|
bool input( Environment & env );
|
|
void build( Environment & env );
|
|
|
|
struct Links {
|
|
Environment::Id origin; //!<Èñõîäíîå äåéñòâèå.
|
|
|
|
Environment::Id copy_one; //!<Êîïèÿ äåéñòâèÿ.
|
|
Environment::Id copy_two; //!<Êîïèÿ äåéñòâèÿ.
|
|
};
|
|
|
|
const Links & links;
|
|
|
|
CopyAction( const Links & links );
|
|
|
|
};
|
|
|
|
} /* namespace utility */
|
|
} /* namespace application */
|
|
|
|
|
|
|
|
#endif /* UMLIBRARY_APPLICATION_UTILITY_COPYACTION_HH_ */
|