evecache 0.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/README.txt +24 -0
- data/Rakefile +5 -0
- data/evecache.gemspec +16 -0
- data/ext/evecache/Makefile +237 -0
- data/ext/evecache/dbtypes.cpp +237 -0
- data/ext/evecache/evecache.cxx +16354 -0
- data/ext/evecache/evecache/config.hpp +19 -0
- data/ext/evecache/evecache/dbtypes.hpp +64 -0
- data/ext/evecache/evecache/exceptions.hpp +47 -0
- data/ext/evecache/evecache/market.hpp +166 -0
- data/ext/evecache/evecache/parser.hpp +316 -0
- data/ext/evecache/evecache/reader.hpp +110 -0
- data/ext/evecache/exceptions.cpp +46 -0
- data/ext/evecache/extconf.rb +8 -0
- data/ext/evecache/libevecache.i +431 -0
- data/ext/evecache/market.cpp +325 -0
- data/ext/evecache/parser.cpp +1249 -0
- data/ext/evecache/reader.cpp +322 -0
- data/lib/evecache.rb +83 -0
- data/test/test_evecache.rb +7 -0
- metadata +67 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1ef0fa13731a3227afd9e00d3dbbb26e31bddacc
|
4
|
+
data.tar.gz: ec5ccaa08a8e070e21dbe9d6bcebc913aafbe011
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1b9aca125f53610d7ef14c7032ac10b1f323d1b67347669dce10235b275dbc5f112241f53dafe8fa5c7c8098f1e15d781b42349869419b3b6a216084b37be84
|
7
|
+
data.tar.gz: 32cd7e7cbb679cca572b717d6388575e57d1cd1c8f8fa807ce5c50ddb73231166c91bc14d6269ef341ea2cb946d0c0b6a0488d222225414c15a2f040c0f8d537
|
data/.gitignore
ADDED
data/README.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= evecache
|
2
|
+
|
3
|
+
https://github.com/MrMarvin/evecache
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
A Ruby binding to libevecache to access Eve Online market cache files.
|
8
|
+
|
9
|
+
== FEATURES/PROBLEMS:
|
10
|
+
|
11
|
+
Does nothing more than reading these files...
|
12
|
+
|
13
|
+
== REQUIREMENTS:
|
14
|
+
|
15
|
+
* a good Ruby (> 1.9.3)
|
16
|
+
* a c++ compiler and the common `make` tool(s)
|
17
|
+
|
18
|
+
== INSTALL:
|
19
|
+
|
20
|
+
`gem install evecache` or clone this repository and build yourself
|
21
|
+
|
22
|
+
== LICENSE:
|
23
|
+
|
24
|
+
GNU GENERAL PUBLIC LICENSE Version 2
|
data/Rakefile
ADDED
data/evecache.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "evecache"
|
3
|
+
s.version = "0.42.0"
|
4
|
+
s.platform = Gem::Platform::RUBY
|
5
|
+
s.authors = ["Marvin Frick"]
|
6
|
+
s.email = ["marv@hostin.is"]
|
7
|
+
s.homepage = "https://github.com/MrMarvin/evecache"
|
8
|
+
s.summary = "A Ruby binding to libevecache to access Eve Online market cache files."
|
9
|
+
s.description = "A Ruby binding to libevecache to access Eve Online market cache files. Does nothing more."
|
10
|
+
s.license = "GPL 2"
|
11
|
+
s.required_rubygems_version = ">= 1.3.6"
|
12
|
+
s.required_ruby_version = '>= 1.9.3'
|
13
|
+
s.files = `git ls-files`.split($\)
|
14
|
+
s.extensions = ['ext/evecache/extconf.rb']
|
15
|
+
s.require_path = 'lib'
|
16
|
+
end
|
@@ -0,0 +1,237 @@
|
|
1
|
+
|
2
|
+
SHELL = /bin/sh
|
3
|
+
|
4
|
+
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
+
V = 0
|
6
|
+
Q1 = $(V:1=)
|
7
|
+
Q = $(Q1:0=@)
|
8
|
+
ECHO1 = $(V:1=@:)
|
9
|
+
ECHO = $(ECHO1:0=@echo)
|
10
|
+
|
11
|
+
#### Start of system configuration section. ####
|
12
|
+
|
13
|
+
srcdir = .
|
14
|
+
topdir = $(includedir)/$(RUBY_VERSION_NAME)
|
15
|
+
hdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
16
|
+
arch_hdrdir = $(rubyhdrdir)/$(arch)
|
17
|
+
PATH_SEPARATOR = :
|
18
|
+
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
19
|
+
prefix = $(DESTDIR)/Users/marv/.rvm/rubies/ruby-2.0.0-p0
|
20
|
+
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
21
|
+
rubyarchprefix = $(rubylibprefix)/$(arch)
|
22
|
+
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
23
|
+
exec_prefix = $(prefix)
|
24
|
+
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
|
25
|
+
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
|
26
|
+
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
|
27
|
+
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
28
|
+
sitehdrdir = $(rubyhdrdir)/site_ruby
|
29
|
+
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
30
|
+
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
31
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
32
|
+
vendordir = $(rubylibprefix)/vendor_ruby
|
33
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
34
|
+
sitelibdir = $(sitedir)/$(ruby_version)
|
35
|
+
sitedir = $(rubylibprefix)/site_ruby
|
36
|
+
rubyarchdir = $(rubylibdir)/$(arch)
|
37
|
+
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
38
|
+
sitearchincludedir = $(includedir)/$(sitearch)
|
39
|
+
archincludedir = $(includedir)/$(arch)
|
40
|
+
sitearchlibdir = $(libdir)/$(sitearch)
|
41
|
+
archlibdir = $(libdir)/$(arch)
|
42
|
+
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
43
|
+
mandir = $(datarootdir)/man
|
44
|
+
localedir = $(datarootdir)/locale
|
45
|
+
libdir = $(exec_prefix)/lib
|
46
|
+
psdir = $(docdir)
|
47
|
+
pdfdir = $(docdir)
|
48
|
+
dvidir = $(docdir)
|
49
|
+
htmldir = $(docdir)
|
50
|
+
infodir = $(datarootdir)/info
|
51
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
52
|
+
oldincludedir = $(DESTDIR)/usr/include
|
53
|
+
includedir = $(prefix)/include
|
54
|
+
localstatedir = $(prefix)/var
|
55
|
+
sharedstatedir = $(prefix)/com
|
56
|
+
sysconfdir = $(prefix)/etc
|
57
|
+
datadir = $(datarootdir)
|
58
|
+
datarootdir = $(prefix)/share
|
59
|
+
libexecdir = $(exec_prefix)/libexec
|
60
|
+
sbindir = $(exec_prefix)/sbin
|
61
|
+
bindir = $(exec_prefix)/bin
|
62
|
+
archdir = $(rubyarchdir)
|
63
|
+
|
64
|
+
|
65
|
+
CC = clang
|
66
|
+
CXX = g++
|
67
|
+
LIBRUBY = $(LIBRUBY_SO)
|
68
|
+
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
69
|
+
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
70
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
71
|
+
empty =
|
72
|
+
OUTFLAG = -o $(empty)
|
73
|
+
COUTFLAG = -o $(empty)
|
74
|
+
|
75
|
+
RUBY_EXTCONF_H =
|
76
|
+
cflags = $(optflags) $(debugflags) $(warnflags)
|
77
|
+
optflags = -O3 -fno-fast-math
|
78
|
+
debugflags = -ggdb3
|
79
|
+
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
80
|
+
CFLAGS = -fno-common -O3 -march=nocona -O2 -pipe -fno-common $(ARCH_FLAG)
|
81
|
+
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
82
|
+
DEFS =
|
83
|
+
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/Cellar/libyaml/0.1.4/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include $(DEFS) $(cppflags)
|
84
|
+
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
85
|
+
ldflags = -L. -fstack-protector -L/usr/local/lib -L/usr/local/Cellar/libyaml/0.1.4/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
86
|
+
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/Cellar/libyaml/0.1.4/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
87
|
+
ARCH_FLAG =
|
88
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
89
|
+
LDSHARED = $(CC) -dynamic -bundle
|
90
|
+
LDSHAREDXX = $(CXX) -dynamic -bundle
|
91
|
+
AR = ar
|
92
|
+
EXEEXT =
|
93
|
+
|
94
|
+
RUBY_INSTALL_NAME = ruby
|
95
|
+
RUBY_SO_NAME = ruby.2.0.0
|
96
|
+
RUBYW_INSTALL_NAME =
|
97
|
+
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
98
|
+
RUBYW_BASE_NAME = rubyw
|
99
|
+
RUBY_BASE_NAME = ruby
|
100
|
+
|
101
|
+
arch = x86_64-darwin12.2.1
|
102
|
+
sitearch = $(arch)
|
103
|
+
ruby_version = 2.0.0
|
104
|
+
ruby = $(bindir)/ruby
|
105
|
+
RUBY = $(ruby)
|
106
|
+
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
107
|
+
|
108
|
+
RM = rm -f
|
109
|
+
RM_RF = $(RUBY) -run -e rm -- -rf
|
110
|
+
RMDIRS = rmdir -p
|
111
|
+
MAKEDIRS = mkdir -p
|
112
|
+
INSTALL = /usr/bin/install -c
|
113
|
+
INSTALL_PROG = $(INSTALL) -m 0755
|
114
|
+
INSTALL_DATA = $(INSTALL) -m 644
|
115
|
+
COPY = cp
|
116
|
+
TOUCH = exit >
|
117
|
+
|
118
|
+
#### End of system configuration section. ####
|
119
|
+
|
120
|
+
preload =
|
121
|
+
|
122
|
+
libpath = . $(libdir) /usr/local/Cellar/libyaml/0.1.4/lib /usr/local/opt/readline/lib /usr/local/opt/libxml2/lib /usr/local/opt/libxslt/lib /usr/local/opt/openssl/lib /usr/local/opt/sqlite/lib
|
123
|
+
LIBPATH = -L. -L$(libdir) -L/usr/local/Cellar/libyaml/0.1.4/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
124
|
+
DEFFILE =
|
125
|
+
|
126
|
+
CLEANFILES = mkmf.log
|
127
|
+
DISTCLEANFILES =
|
128
|
+
DISTCLEANDIRS =
|
129
|
+
|
130
|
+
extout =
|
131
|
+
extout_prefix =
|
132
|
+
target_prefix =
|
133
|
+
LOCAL_LIBS =
|
134
|
+
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lobjc
|
135
|
+
ORIG_SRCS = evecache.cxx dbtypes.cpp exceptions.cpp market.cpp parser.cpp reader.cpp
|
136
|
+
SRCS = $(ORIG_SRCS)
|
137
|
+
OBJS = evecache.o dbtypes.o exceptions.o market.o parser.o reader.o
|
138
|
+
HDRS =
|
139
|
+
TARGET = evecache
|
140
|
+
TARGET_NAME = evecache
|
141
|
+
TARGET_ENTRY = Init_$(TARGET_NAME)
|
142
|
+
DLLIB = $(TARGET).bundle
|
143
|
+
EXTSTATIC =
|
144
|
+
STATIC_LIB =
|
145
|
+
|
146
|
+
BINDIR = $(bindir)
|
147
|
+
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
148
|
+
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
149
|
+
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
150
|
+
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
151
|
+
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
152
|
+
|
153
|
+
TARGET_SO = $(DLLIB)
|
154
|
+
CLEANLIBS = $(TARGET).bundle
|
155
|
+
CLEANOBJS = *.o *.bak
|
156
|
+
|
157
|
+
all: $(DLLIB)
|
158
|
+
static: $(STATIC_LIB)
|
159
|
+
.PHONY: all install static install-so install-rb
|
160
|
+
.PHONY: clean clean-so clean-static clean-rb
|
161
|
+
|
162
|
+
clean-static::
|
163
|
+
clean-rb-default::
|
164
|
+
clean-rb::
|
165
|
+
clean-so::
|
166
|
+
clean: clean-so clean-static clean-rb-default clean-rb
|
167
|
+
-$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
168
|
+
|
169
|
+
distclean-rb-default::
|
170
|
+
distclean-rb::
|
171
|
+
distclean-so::
|
172
|
+
distclean-static::
|
173
|
+
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
174
|
+
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
175
|
+
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
176
|
+
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
177
|
+
|
178
|
+
realclean: distclean
|
179
|
+
install: install-so install-rb
|
180
|
+
|
181
|
+
install-so: $(DLLIB) ./.RUBYARCHDIR.time
|
182
|
+
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
183
|
+
clean-static::
|
184
|
+
-$(Q)$(RM) $(STATIC_LIB)
|
185
|
+
install-rb: pre-install-rb install-rb-default
|
186
|
+
install-rb-default: pre-install-rb-default
|
187
|
+
pre-install-rb: Makefile
|
188
|
+
pre-install-rb-default: Makefile
|
189
|
+
pre-install-rb-default:
|
190
|
+
$(ECHO) installing default evecache libraries
|
191
|
+
./.RUBYARCHDIR.time:
|
192
|
+
$(Q) $(MAKEDIRS) $(RUBYARCHDIR)
|
193
|
+
$(Q) $(TOUCH) $@
|
194
|
+
|
195
|
+
site-install: site-install-so site-install-rb
|
196
|
+
site-install-so: install-so
|
197
|
+
site-install-rb: install-rb
|
198
|
+
|
199
|
+
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
|
200
|
+
|
201
|
+
.cc.o:
|
202
|
+
$(ECHO) compiling $(<)
|
203
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
204
|
+
|
205
|
+
.mm.o:
|
206
|
+
$(ECHO) compiling $(<)
|
207
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
208
|
+
|
209
|
+
.cxx.o:
|
210
|
+
$(ECHO) compiling $(<)
|
211
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
212
|
+
|
213
|
+
.cpp.o:
|
214
|
+
$(ECHO) compiling $(<)
|
215
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
216
|
+
|
217
|
+
.C.o:
|
218
|
+
$(ECHO) compiling $(<)
|
219
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
220
|
+
|
221
|
+
.c.o:
|
222
|
+
$(ECHO) compiling $(<)
|
223
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
224
|
+
|
225
|
+
.m.o:
|
226
|
+
$(ECHO) compiling $(<)
|
227
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
228
|
+
|
229
|
+
$(DLLIB): $(OBJS) Makefile
|
230
|
+
$(ECHO) linking shared-object $(DLLIB)
|
231
|
+
-$(Q)$(RM) $(@)
|
232
|
+
$(Q) $(LDSHAREDXX) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
233
|
+
$(Q) test -z '$(RUBY_CODESIGN)' || codesign -s '$(RUBY_CODESIGN)' -f $@
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
$(OBJS): $(HDRS) $(ruby_headers)
|
@@ -0,0 +1,237 @@
|
|
1
|
+
#include "evecache/dbtypes.hpp"
|
2
|
+
|
3
|
+
namespace EveCache {
|
4
|
+
|
5
|
+
unsigned long windows_to_unix_time(unsigned long long time)
|
6
|
+
{
|
7
|
+
return ((time / 10000000LL)-11644473600LL);
|
8
|
+
}
|
9
|
+
|
10
|
+
std::map<std::string, unsigned char> ColumnLookup::_idLookup;
|
11
|
+
std::map<unsigned char, std::string> ColumnLookup::_nameLookup;
|
12
|
+
bool ColumnLookup::isInit = false;
|
13
|
+
|
14
|
+
void ColumnLookup::insert(const char* name, unsigned char id)
|
15
|
+
{
|
16
|
+
_idLookup[name] = id;
|
17
|
+
_nameLookup[id] = name;
|
18
|
+
}
|
19
|
+
|
20
|
+
void ColumnLookup::init()
|
21
|
+
{
|
22
|
+
if (ColumnLookup::isInit == true)
|
23
|
+
return;
|
24
|
+
insert("*corpid", 1 );
|
25
|
+
insert("*locationid", 2 );
|
26
|
+
insert("age", 3 );
|
27
|
+
insert("Asteroid", 4 );
|
28
|
+
insert("authentication", 5 );
|
29
|
+
insert("ballID", 6 );
|
30
|
+
insert("beyonce", 7 );
|
31
|
+
insert("bloodlineID", 8 );
|
32
|
+
insert("capacity", 9 );
|
33
|
+
insert("categoryID", 10 );
|
34
|
+
insert("character", 11 );
|
35
|
+
insert("characterID", 12 );
|
36
|
+
insert("characterName", 13 );
|
37
|
+
insert("characterType", 14 );
|
38
|
+
insert("charID", 15 );
|
39
|
+
insert("chatx", 16 );
|
40
|
+
insert("clientID", 17 );
|
41
|
+
insert("config", 18 );
|
42
|
+
insert("contraband", 19 );
|
43
|
+
insert("corporationDateTime", 20 );
|
44
|
+
insert("corporationID", 21 );
|
45
|
+
insert("createDateTime", 22 );
|
46
|
+
insert("customInfo", 23 );
|
47
|
+
insert("description", 24 );
|
48
|
+
insert("divisionID", 25 );
|
49
|
+
insert("DoDestinyUpdate", 26 );
|
50
|
+
insert("dogmaIM", 27 );
|
51
|
+
insert("EVE System", 28 );
|
52
|
+
insert("flag", 29 );
|
53
|
+
insert("foo.SlimItem", 30 );
|
54
|
+
insert("gangID", 31 );
|
55
|
+
insert("Gemini", 32 );
|
56
|
+
insert("gender", 33 );
|
57
|
+
insert("graphicID", 34 );
|
58
|
+
insert("groupID", 35 );
|
59
|
+
insert("header", 36 );
|
60
|
+
insert("idName", 37 );
|
61
|
+
insert("invbroker", 38 );
|
62
|
+
insert("itemID", 39 );
|
63
|
+
insert("items", 40 );
|
64
|
+
insert("jumps", 41 );
|
65
|
+
insert("line", 42 );
|
66
|
+
insert("lines", 43 );
|
67
|
+
insert("locationID", 44 );
|
68
|
+
insert("locationName", 45 );
|
69
|
+
insert("macho.CallReq", 46 );
|
70
|
+
insert("macho.CallRsp", 47 );
|
71
|
+
insert("macho.MachoAddress", 48 );
|
72
|
+
insert("macho.Notification", 49 );
|
73
|
+
insert("macho.SessionChangeNotification", 50 );
|
74
|
+
insert("modules", 51 );
|
75
|
+
insert("name", 52 );
|
76
|
+
insert("objectCaching", 53 );
|
77
|
+
insert("objectCaching.CachedObject", 54 );
|
78
|
+
insert("OnChatJoin", 55 );
|
79
|
+
insert("OnChatLeave", 56 );
|
80
|
+
insert("OnChatSpeak", 57 );
|
81
|
+
insert("OnGodmaShipEffect", 58 );
|
82
|
+
insert("OnItemChange", 59 );
|
83
|
+
insert("OnModuleAttributeChange", 60 );
|
84
|
+
insert("OnMultiEvent", 61 );
|
85
|
+
insert("orbitID", 62 );
|
86
|
+
insert("ownerID", 63 );
|
87
|
+
insert("ownerName", 64 );
|
88
|
+
insert("quantity", 65 );
|
89
|
+
insert("raceID", 66 );
|
90
|
+
insert("RowClass", 67 );
|
91
|
+
insert("securityStatus", 68 );
|
92
|
+
insert("Sentry Gun", 69 );
|
93
|
+
insert("sessionchange", 70 );
|
94
|
+
insert("singleton", 71 );
|
95
|
+
insert("skillEffect", 72 );
|
96
|
+
insert("squadronID", 73 );
|
97
|
+
insert("typeID", 74 );
|
98
|
+
insert("used", 75 );
|
99
|
+
insert("userID", 76 );
|
100
|
+
insert("util.CachedObject", 77 );
|
101
|
+
insert("util.IndexRowset", 78 );
|
102
|
+
insert("util.Moniker", 79 );
|
103
|
+
insert("util.Row", 80 );
|
104
|
+
insert("util.Rowset", 81 );
|
105
|
+
insert("*multicastID", 82 );
|
106
|
+
insert("AddBalls", 83 );
|
107
|
+
insert("AttackHit3", 84 );
|
108
|
+
insert("AttackHit3R", 85 );
|
109
|
+
insert("AttackHit4R", 86 );
|
110
|
+
insert("DoDestinyUpdates", 87 );
|
111
|
+
insert("GetLocationsEx", 88 );
|
112
|
+
insert("InvalidateCachedObjects", 89 );
|
113
|
+
insert("JoinChannel", 90 );
|
114
|
+
insert("LSC", 91 );
|
115
|
+
insert("LaunchMissile", 92 );
|
116
|
+
insert("LeaveChannel", 93 );
|
117
|
+
insert("OID+", 94 );
|
118
|
+
insert("OID-", 95 );
|
119
|
+
insert("OnAggressionChange", 96 );
|
120
|
+
insert("OnCharGangChange", 97 );
|
121
|
+
insert("OnCharNoLongerInStation", 98 );
|
122
|
+
insert("OnCharNowInStation", 99 );
|
123
|
+
insert("OnDamageMessage", 100 );
|
124
|
+
insert("OnDamageStateChange", 101 );
|
125
|
+
insert("OnEffectHit", 102 );
|
126
|
+
insert("OnGangDamageStateChange", 103 );
|
127
|
+
insert("OnLSC", 104 );
|
128
|
+
insert("OnSpecialFX", 105 );
|
129
|
+
insert("OnTarget", 106 );
|
130
|
+
insert("RemoveBalls", 107 );
|
131
|
+
insert("SendMessage", 108 );
|
132
|
+
insert("SetMaxSpeed", 109 );
|
133
|
+
insert("SetSpeedFraction", 110 );
|
134
|
+
insert("TerminalExplosion", 111 );
|
135
|
+
insert("address", 112 );
|
136
|
+
insert("alert", 113 );
|
137
|
+
insert("allianceID", 114 );
|
138
|
+
insert("allianceid", 115 );
|
139
|
+
insert("bid", 116 );
|
140
|
+
insert("bookmark", 117 );
|
141
|
+
insert("bounty", 118 );
|
142
|
+
insert("channel", 119 );
|
143
|
+
insert("charid", 120 );
|
144
|
+
insert("constellationid", 121 );
|
145
|
+
insert("corpID", 122 );
|
146
|
+
insert("corpid", 123 );
|
147
|
+
insert("corprole", 124 );
|
148
|
+
insert("damage", 125 );
|
149
|
+
insert("duration", 126 );
|
150
|
+
insert("effects.Laser", 127 );
|
151
|
+
insert("gangid", 128 );
|
152
|
+
insert("gangrole", 129 );
|
153
|
+
insert("hqID", 130 );
|
154
|
+
insert("issued", 131 );
|
155
|
+
insert("jit", 132 );
|
156
|
+
insert("languageID", 133 );
|
157
|
+
insert("locationid", 134 );
|
158
|
+
insert("machoVersion", 135 );
|
159
|
+
insert("marketProxy", 136 );
|
160
|
+
insert("minVolume", 137 );
|
161
|
+
insert("orderID", 138 );
|
162
|
+
insert("price", 139 );
|
163
|
+
insert("range", 140 );
|
164
|
+
insert("regionID", 141 );
|
165
|
+
insert("regionid", 142 );
|
166
|
+
insert("role", 143 );
|
167
|
+
insert("rolesAtAll", 144 );
|
168
|
+
insert("rolesAtBase", 145 );
|
169
|
+
insert("rolesAtHQ", 146 );
|
170
|
+
insert("rolesAtOther", 147 );
|
171
|
+
insert("shipid", 148 );
|
172
|
+
insert("sn", 149 );
|
173
|
+
insert("solarSystemID", 150 );
|
174
|
+
insert("solarsystemid", 151 );
|
175
|
+
insert("solarsystemid2", 152 );
|
176
|
+
insert("source", 153 );
|
177
|
+
insert("splash", 154 );
|
178
|
+
insert("stationID", 155 );
|
179
|
+
insert("stationid", 156 );
|
180
|
+
insert("target", 157 );
|
181
|
+
insert("userType", 158 );
|
182
|
+
insert("userid", 159 );
|
183
|
+
insert("volEntered", 160 );
|
184
|
+
insert("volRemaining", 161 );
|
185
|
+
insert("weapon", 162 );
|
186
|
+
insert("agent.missionTemplatizedContent_BasicKillMission", 163 );
|
187
|
+
insert("agent.missionTemplatizedContent_ResearchKillMission", 164 );
|
188
|
+
insert("agent.missionTemplatizedContent_StorylineKillMission", 165 );
|
189
|
+
insert("agent.missionTemplatizedContent_GenericStorylineKillMission", 166 );
|
190
|
+
insert("agent.missionTemplatizedContent_BasicCourierMission", 167 );
|
191
|
+
insert("agent.missionTemplatizedContent_ResearchCourierMission", 168 );
|
192
|
+
insert("agent.missionTemplatizedContent_StorylineCourierMission", 169 );
|
193
|
+
insert("agent.missionTemplatizedContent_GenericStorylineCourierMission", 170 );
|
194
|
+
insert("agent.missionTemplatizedContent_BasicTradeMission", 171 );
|
195
|
+
insert("agent.missionTemplatizedContent_ResearchTradeMission", 172 );
|
196
|
+
insert("agent.missionTemplatizedContent_StorylineTradeMission", 173 );
|
197
|
+
insert("agent.missionTemplatizedContent_GenericStorylineTradeMission", 174 );
|
198
|
+
insert("agent.offerTemplatizedContent_BasicExchangeOffer", 175 );
|
199
|
+
insert("agent.offerTemplatizedContent_BasicExchangeOffer_ContrabandDemand", 176 );
|
200
|
+
insert("agent.offerTemplatizedContent_BasicExchangeOffer_Crafting", 177 );
|
201
|
+
insert("agent.LoyaltyPoints", 178 );
|
202
|
+
insert("agent.ResearchPoints", 179 );
|
203
|
+
insert("agent.Credits", 180 );
|
204
|
+
insert("agent.Item", 181 );
|
205
|
+
insert("agent.Entity", 182 );
|
206
|
+
insert("agent.Objective", 183 );
|
207
|
+
insert("agent.FetchObjective", 184 );
|
208
|
+
insert("agent.EncounterObjective", 185 );
|
209
|
+
insert("agent.DungeonObjective", 186 );
|
210
|
+
insert("agent.TransportObjective", 187 );
|
211
|
+
insert("agent.Reward", 188 );
|
212
|
+
insert("agent.TimeBonusReward", 189 );
|
213
|
+
insert("agent.MissionReferral", 190 );
|
214
|
+
insert("agent.Location", 191 );
|
215
|
+
insert("agent.StandardMissionDetails", 192 );
|
216
|
+
insert("agent.OfferDetails", 193 );
|
217
|
+
insert("agent.ResearchMissionDetails", 194 );
|
218
|
+
insert("agent.StorylineMissionDetails", 195 );
|
219
|
+
insert("bad allocation", 196 );
|
220
|
+
|
221
|
+
ColumnLookup::isInit = true;
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
unsigned char ColumnLookup::lookupId(std::string& name)
|
226
|
+
{
|
227
|
+
init();
|
228
|
+
return _idLookup[name];
|
229
|
+
}
|
230
|
+
|
231
|
+
std::string ColumnLookup::lookupName(unsigned char id)
|
232
|
+
{
|
233
|
+
init();
|
234
|
+
return _nameLookup[id];
|
235
|
+
}
|
236
|
+
|
237
|
+
};
|