Before this change, the pchs for CalcViewModel and Calculator project referenced project headers. If those project headers (or any of their dependencies) were to change, then the pch would be recompiled, slowing local build times. By removing references to project headers, the pch will be compiled once and is resilient to changes in the project. Now that project headers are explicit about their dependencies, when there is a change to a project header only the translation units referencing the modified header will need to be rebuilt. - Manually tested by ensuring Calculator project builds locally. @Microsoft/calculator-team
27 lines
758 B
C++
27 lines
758 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include "CalcManager/ExpressionCommand.h"
|
|
|
|
namespace CalculatorApp
|
|
{
|
|
namespace Common
|
|
{
|
|
class CommandDeserializer
|
|
{
|
|
public:
|
|
CommandDeserializer(_In_ Windows::Storage::Streams::DataReader^ dataReader);
|
|
std::shared_ptr<IExpressionCommand> Deserialize(_In_ CalculationManager::CommandType cmdType);
|
|
|
|
private:
|
|
Windows::Storage::Streams::DataReader^ m_dataReader;
|
|
COpndCommand DeserializeOperand();
|
|
CParentheses DeserializeParentheses();
|
|
CUnaryCommand DeserializeUnary();
|
|
CBinaryCommand DeserializeBinary();
|
|
};
|
|
}
|
|
}
|