-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathInputParameter.hpp
More file actions
22 lines (18 loc) · 911 Bytes
/
InputParameter.hpp
File metadata and controls
22 lines (18 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2025 Chek Wei Tan
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#pragma once
#include "../sierrachart.h"
#include "nlohmann/json.hpp"
#include <string>
#include <vector>
using json = nlohmann::json;
class InputParameter {
public:
static std::string GetParameterValueAsString(const SCInputRef& Input);
static json GetStudyParameters(SCStudyInterfaceRef sc, int studyId);
static std::string GetParameterValueByStudyId(SCStudyInterfaceRef sc, int studyId, int index, int valueType);
static json GetCustomStudyInformation(SCStudyInterfaceRef sc, int studyId);
static std::string GetCurrentDllName(SCStudyInterfaceRef sc, int studyId);
static std::vector<std::pair<std::string, std::string>> GetParameters(SCStudyInterfaceRef sc, int lastInputIndex);
static const char* InputValueTypeToString(int inputType);
};