-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcsaori.cpp
83 lines (69 loc) · 1.58 KB
/
csaori.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//setlocale//
#ifdef _MSC_VER
#if _MSC_VER >= 1400
#pragma setlocale("japanese")
#endif
#endif
//setlocale end//
/*
* csaori.cpp
*/
#ifdef _MSC_VER
#pragma warning( disable : 4786 )
#pragma warning( disable : 4996 )
#endif
#include "csaori.h"
//////////WINDOWS DEFINE///////////////////////////
#ifdef _WINDOWS
#ifdef _DEBUG
#include <crtdbg.h>
#define new new( _NORMAL_BLOCK, __FILE__, __LINE__)
#endif
#endif
///////////////////////////////////////////////////
const string_t& CSAORI::s_saori_version(void) const
{
static string_t s = L"SAORI/1.0";
return s;
}
const string_t& CSAORI::s_saori_def(void) const
{
static string_t s = L" SAORI/";
return s;
}
const string_t& CSAORI::s_saori_argument(void) const
{
static string_t s = L"Argument";
return s;
}
const string_t& CSAORI::s_saori_value(void) const
{
static string_t s = L"Value";
return s;
}
const string_t& CSAORI::s_saori_result(void) const
{
static string_t s = L"Result";
return s;
}
//CUSTOM_CREATE_INSTANCEを定義すると、CreateInstanceを自前で
//用意しなければならない代わりに、派生クラスによるデータの整理などを
//自由に行うことができるようになります。
#ifndef CUSTOM_CREATE_INSTANCE
//互換用:CSAORIファクトリー関数
CSAORIBase* CreateInstance(void)
{
return new CSAORI();
}
#else //CUSTOM_CREATE_INSTANCE
//派生クラスにてオーバーロードするためのダミー関数
void CSAORI::exec(const CSAORIInput& in,CSAORIOutput& out) {
return;
}
bool CSAORI::unload() {
return true;
}
bool CSAORI::load() {
return true;
}
#endif //CUSTOM_CREATE_INSTANCE