-
Notifications
You must be signed in to change notification settings - Fork 0
/
ErrorManager.cpp
39 lines (37 loc) · 1.01 KB
/
ErrorManager.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "ErrorManager.h"
#include <stdio.h>
#include <string.h>
#include <iostream>
ErrorManager::ErrorManager()
{
errcount = 0;
warncount = 0;
}
ErrorManager::~ErrorManager()
{
}
void ErrorManager::inp_DupError(char* cline)
{
errcount++;
std::cout << "***\n ===> ERROR Duplicate ID on entry: " << cline << "\n***\n";
}
void ErrorManager::ItemNotFound(const char* item, int id)
{
errcount++;
std::cout << "***\n ===> ERROR: item " << item << " with ID: " << id << " not found\n***\n";
}
void ErrorManager::inp_DupForceError(char* cline)
{
errcount++;
std::cout << "***\n ===> ERROR Duplicate force for grid on entry: " << cline << "\n***\n";
}
void ErrorManager::inp_Unrecognized(char* cline)
{
errcount++;
std::cout << "***\n ===> ERROR the following was not recognized " << "\n " << cline << "\n***\n";
}
void ErrorManager::inp_FormatError(char* cline)
{
errcount++;
std::cout << "***\n ===> ERROR: Format error on the following card" << "\n " << cline << "\n***\n";
}