00001
00009 #ifndef _LOAD_H
00010 #define _LOAD_H
00011
00012 #include "globals.h"
00013 #include "module.h"
00014
00015 #include "load_xml.h"
00016
00017 #define UR_NONE 0x00
00018 #define UR_RANKS 0x01
00019 #define UR_TRANSFORM 0x02
00020
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 STATUS loadall(char *filename);
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028
00029 typedef struct s_unresolved {
00030 OBJECT *by;
00031 PROPERTYTYPE ptype;
00032 void *ref;
00033 int flags;
00034 CLASS *oclass;
00035 char256 id;
00036 char *file;
00037 unsigned int line;
00038 struct s_unresolved *next;
00039 } UNRESOLVED;
00040
00041 typedef struct s_unresolved_func {
00042 char1024 funcstr;
00043 OBJECT *obj;
00044 double *targ;
00045 unsigned int line;
00046 struct s_unresolved_func *next;
00047 } UNR_FUNC;
00048
00049
00050 STATUS load_set_index(OBJECT *obj, OBJECTNUM id);
00051 OBJECT *load_get_index(OBJECTNUM id);
00052 double load_latitude(char *buffer);
00053 double load_longitude(char *buffer);
00054 int time_value(char *, TIMESTAMP *t);
00055 int time_value_datetime(char *c, TIMESTAMP *t);
00056 int set_flags(OBJECT *obj, char1024 propval);
00057 UNRESOLVED *add_unresolved(OBJECT *by, PROPERTYTYPE ptype, void *ref, CLASS *oclass, char *id, char *file, unsigned int line, int flags);
00058 int load_resolve_all();
00059
00060 #endif
00061