source: branches/work_320/ARApi.h @ 679

Revision 636, 3.2 KB checked in by jls17, 5 years ago (diff)
  • now arapi-headers are included in stdafx.h via ARApi.h
  • replaced the error-number in ARSchemaList.cpp with the defined constant
Line 
1//Copyright (C) 2009 Stefan Nerlich | stefan.nerlich@hotmail.com
2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
15//    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
16
17#pragma once
18#include <ar.h>
19#include <arfree.h>
20#include <arstruct.h>
21#include <arerrno.h>
22#include <arextern.h>
23#include "util/Memory.h"
24
25// this is just a little workaround for a bug in ar.h version 7.5
26#ifndef AR_FILTER_ERRHANDLER_ENABLE
27#ifdef AR_ERRHANDLER_ENABLE
28#define AR_FILTER_ERRHANDLER_ENABLE AR_ERRHANDLER_ENABLE
29#else
30#define AR_FILTER_ERRHANDLER_ENABLE 1
31#endif
32#endif
33
34// this is just a workarround for a missing definition in ar.h version 7.6.04
35#ifdef AR_SESS_CONTROL_PROP_DESIGN_OVERLAYGROUP
36#undef AR_SESS_CONTROL_PROP_DESIGN_OVERLAYGROUP
37#endif
38#define AR_SESS_CONTROL_PROP_DESIGN_OVERLAYGROUP 1961
39
40#ifdef AR_SESS_CONTROL_PROP_API_OVERLAYGROUP
41#undef AR_SESS_CONTROL_PROP_API_OVERLAYGROUP
42#endif
43#define AR_SESS_CONTROL_PROP_API_OVERLAYGROUP 1962
44
45#ifndef AR_RESERV_OVERLAY_STRING
46#define AR_RESERV_OVERLAY_STRING "__o"
47#endif
48
49#ifndef AR_ORIGINAL_OBJECT
50#define AR_ORIGINAL_OBJECT 0
51#endif
52#ifndef AR_OVERLAID_OBJECT
53#define AR_OVERLAID_OBJECT 1
54#endif
55#ifndef AR_OVERLAY_OBJECT
56#define AR_OVERLAY_OBJECT 2
57#endif
58#ifndef AR_CUSTOM_OBJECT
59#define AR_CUSTOM_OBJECT 4
60#endif
61
62// normally audit forms are just regular form, but to distinct we define and use our own constant
63#define AR_SCHEMA_AUDIT        100
64#define AR_SCHEMA_ARCHIVE      101
65
66// to support our own xml object types used in lists
67#define AR_STRUCT_ITEM_USER    500
68#define AR_STRUCT_ITEM_GROUP   501
69#define AR_STRUCT_ITEM_ROLE    502
70
71#define AR_STRUCT_ITEM_XML_USER       (AR_STRUCT_XML_OFFSET | AR_STRUCT_ITEM_USER)
72#define AR_STRUCT_ITEM_XML_GROUP      (AR_STRUCT_XML_OFFSET | AR_STRUCT_ITEM_GROUP)
73#define AR_STRUCT_ITEM_XML_ROLE       (AR_STRUCT_XML_OFFSET | AR_STRUCT_ITEM_ROLE)
74
75// api version definitions (see AR_CURRENT_API_VERSION in ar.h)
76#define AR_API_VERSION_450 7
77#define AR_API_VERSION_500 8                    // TODO: check this again !!
78#define AR_API_VERSION_510 9
79#define AR_API_VERSION_600 10
80#define AR_API_VERSION_630 11
81#define AR_API_VERSION_700 12
82#define AR_API_VERSION_710 13
83#define AR_API_VERSION_750 14
84#define AR_API_VERSION_763 17
85#define AR_API_VERSION_764 18
86#define AR_API_VERSION_800 19
87#define AR_API_VERSION_810 20
88
89// see AR_EXPORT_VERSION in arstruct.h for definition
90#define AR_XML_VERSION_450 5
91#define AR_XML_VERSION_500 6
92#define AR_XML_VERSION_510 7
93#define AR_XML_VERSION_600 8
94#define AR_XML_VERSION_630 8
95#define AR_XML_VERSION_700 9
96#define AR_XML_VERSION_710 10
97#define AR_XML_VERSION_750 11
Note: See TracBrowser for help on using the repository browser.