Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-Guhun committed Mar 24, 2019
1 parent 1f04469 commit 9580966
Show file tree
Hide file tree
Showing 10 changed files with 6,963 additions and 0 deletions.
31 changes: 31 additions & 0 deletions MdlxConverterGuhub.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MdlxConverterGuhub", "MdlxConverterGuhub\MdlxConverterGuhub.vcxproj", "{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Debug|x64.ActiveCfg = Debug|x64
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Debug|x64.Build.0 = Debug|x64
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Debug|x86.ActiveCfg = Debug|Win32
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Debug|x86.Build.0 = Debug|Win32
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Release|x64.ActiveCfg = Release|x64
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Release|x64.Build.0 = Release|x64
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Release|x86.ActiveCfg = Release|Win32
{CDEC948D-B201-4570-B8D5-27D6C7ADA49A}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3FD43A32-C1A7-4BCA-8CC8-AF4323A6B34A}
EndGlobalSection
EndGlobal
33 changes: 33 additions & 0 deletions MdlxConverterGuhub/MdlError.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#pragma once
#pragma warning(disable: 4786)
#include <string>
#include <vector>
#include "MdlLine.h"

using std::string;
using std::vector;

struct MdlError
{
vector<string> errorRemark;
vector<string> errorLine;
vector<int> errorLineNum;
bool critical;

void add(string line, int lineNum, string remark, bool crit = true)
{
errorLine.push_back(line);
errorRemark.push_back(remark);
errorLineNum.push_back(lineNum);
critical = crit;
}

void add(MdlLine *line, string remark, bool crit = true)
{
add(line->lineText, line->lineCounter, remark, crit);
}

MdlError() {
critical = false;
}
};
Loading

0 comments on commit 9580966

Please sign in to comment.