Improve:StateMachine include cleaner.
This commit is contained in:
parent
be27463b15
commit
3b532d55c3
|
@ -14,7 +14,10 @@
|
||||||
*/
|
*/
|
||||||
#include "IStateMachine.h"
|
#include "IStateMachine.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
#include <thread>
|
#include "StatusCode.h"
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
std::string State::GetStateName()
|
std::string State::GetStateName()
|
||||||
{
|
{
|
||||||
return mStateName;
|
return mStateName;
|
||||||
|
|
|
@ -13,7 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "StateMachineImpl.h"
|
#include "StateMachineImpl.h"
|
||||||
|
#include "IStateMachine.h"
|
||||||
#include "StateMachineMakePtr.h"
|
#include "StateMachineMakePtr.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <memory>
|
||||||
const StatusCode StateMachineImpl::CreateStateMachine(std::shared_ptr<VStateMachineHandle> &stateMachine)
|
const StatusCode StateMachineImpl::CreateStateMachine(std::shared_ptr<VStateMachineHandle> &stateMachine)
|
||||||
{
|
{
|
||||||
return StateMachineMakePtr::GetInstance()->CreateStateMachine(stateMachine);
|
return StateMachineMakePtr::GetInstance()->CreateStateMachine(stateMachine);
|
||||||
|
|
|
@ -16,8 +16,10 @@
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
#include "IStateMachine.h"
|
#include "IStateMachine.h"
|
||||||
#include "StateMachineImpl.h"
|
#include "StateMachineImpl.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
#include "state_machine.h"
|
#include "state_machine.h"
|
||||||
#include <thread>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
bool CreateStateMachine(void)
|
bool CreateStateMachine(void)
|
||||||
{
|
{
|
||||||
auto instance = std::make_shared<IStateMachine>();
|
auto instance = std::make_shared<IStateMachine>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user