Update GraphingCalculator Projects to allow official builds (#852)
* renamed MockGraphingImpl to GraphingImpl, updated the nuget.config to include the WindowsApps feed * Revert nuget.config change * Updated vcxproj files to output to the same directory regardless of configuration * Removed outder used GenerateProjectSpecificOutputfolder instead * revert commenting out the temporary.pfx cert in the calculator.vcxproj file
This commit is contained in:
82
src/GraphingImpl/Mocks/MathSolver.h
Normal file
82
src/GraphingImpl/Mocks/MathSolver.h
Normal file
@@ -0,0 +1,82 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "GraphingInterfaces/IMathSolver.h"
|
||||
|
||||
namespace MockGraphingImpl
|
||||
{
|
||||
class ParsingOptions : public Graphing::IParsingOptions
|
||||
{
|
||||
public:
|
||||
void SetFormatType(Graphing::FormatType type) override
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class EvalOptions : public Graphing::IEvalOptions
|
||||
{
|
||||
};
|
||||
|
||||
class FormatOptions : public Graphing::IFormatOptions
|
||||
{
|
||||
public:
|
||||
void SetFormatType(Graphing::FormatType type) override
|
||||
{
|
||||
}
|
||||
|
||||
void SetMathMLPrefix(const std::wstring& value) override
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class MathSolver : public Graphing::IMathSolver
|
||||
{
|
||||
public:
|
||||
Graphing::IParsingOptions& ParsingOptions() override
|
||||
{
|
||||
return m_parsingOptions;
|
||||
}
|
||||
|
||||
Graphing::IEvalOptions& EvalOptions() override
|
||||
{
|
||||
return m_evalOptions;
|
||||
}
|
||||
|
||||
Graphing::IFormatOptions& FormatOptions() override
|
||||
{
|
||||
return m_formatOptions;
|
||||
}
|
||||
|
||||
std::unique_ptr<Graphing::IExpression> ParseInput(const std::wstring& input) override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<Graphing::IGraph> CreateGrapher(const Graphing::IExpression* expression) override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<Graphing::IGraph> CreateGrapher() override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::wstring Serialize(const Graphing::IExpression* expression) override
|
||||
{
|
||||
return std::wstring{};
|
||||
}
|
||||
|
||||
Graphing::IGraphFunctionAnalysisData IMathSolver::Analyze(const Graphing::Analyzer::IGraphAnalyzer* analyzer)
|
||||
{
|
||||
return Graphing::IGraphFunctionAnalysisData{};
|
||||
}
|
||||
|
||||
private:
|
||||
MockGraphingImpl::ParsingOptions m_parsingOptions;
|
||||
MockGraphingImpl::EvalOptions m_evalOptions;
|
||||
MockGraphingImpl::FormatOptions m_formatOptions;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user