calculator/src/CalcViewModel/Common/ExpressionCommandSerializer.h
Howard Wolosky c13b8a099e Hello GitHub
2019-01-28 16:24:37 -08:00

25 lines
675 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
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 &paraCmd);
private:
Windows::Storage::Streams::DataWriter^ m_dataWriter;
};
}
}