2019-02-14 09:30:03 +08:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
2019-01-29 08:24:37 +08:00
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-02-14 09:30:03 +08:00
|
|
|
#include "CalcManager/ExpressionCommand.h"
|
|
|
|
|
2019-01-29 08:24:37 +08:00
|
|
|
namespace CalculatorApp
|
|
|
|
{
|
|
|
|
namespace Common
|
|
|
|
{
|
|
|
|
class SerializeCommandVisitor : public ISerializeCommandVisitor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SerializeCommandVisitor(_In_ Windows::Storage::Streams::DataWriter^ dataWriter);
|
|
|
|
|
|
|
|
void Visit(_In_ COpndCommand &opndCmd);
|
|
|
|
void Visit(_In_ CUnaryCommand &unaryCmd);
|
|
|
|
void Visit(_In_ CBinaryCommand &binaryCmd);
|
|
|
|
void Visit(_In_ CParentheses ¶Cmd);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Windows::Storage::Streams::DataWriter^ m_dataWriter;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|