File indexing completed on 2025-02-02 05:01:35

0001 // mk4dll.h --
0002 // This is part of Metakit, see http://www.equi4.com/metakit/
0003 //
0004 //  Import declarations for DLLs
0005 
0006 #ifndef __MK4_H__
0007 #error This file is included by "mk4.h", it cannot be used standalone
0008 #endif
0009 
0010 #ifndef d4_DLL
0011 #ifdef _WIN32
0012 #ifdef _USRDLL
0013 #define d4_DLL      __declspec(dllexport)
0014 #else
0015 #define d4_DLL      __declspec(dllimport)
0016 #endif
0017 #else
0018 #define d4_DLL
0019 #endif
0020 #endif
0021 
0022 #ifndef d4_DLLSPEC
0023 #ifdef _MSC_VER
0024 #define d4_DLLSPEC(t)   d4_DLL t
0025 #else
0026 #define d4_DLLSPEC(t)   t d4_DLL
0027 #endif
0028 #endif
0029 
0030 /////////////////////////////////////////////////////////////////////////////
0031 // Declarations in this file
0032 
0033 class d4_DLL c4_Bytes;
0034 class d4_DLL c4_BytesProp;
0035 class d4_DLL c4_BytesRef;
0036 class d4_DLL c4_Cursor;
0037 class d4_DLL c4_CustomViewer;
0038 class d4_DLL c4_DoubleProp;
0039 class d4_DLL c4_DoubleRef;
0040 class d4_DLL c4_FileStrategy;
0041 class d4_DLL c4_FileStream;
0042 class d4_DLL c4_FloatProp;
0043 class d4_DLL c4_FloatRef;
0044 class d4_DLL c4_IntProp;
0045 class d4_DLL c4_IntRef;
0046 class d4_DLL c4_LongRef;
0047 class d4_DLL c4_Property;
0048 class d4_DLL c4_Reference;
0049 class d4_DLL c4_Row;
0050 class d4_DLL c4_RowRef;
0051 class d4_DLL c4_Sequence;
0052 class d4_DLL c4_Storage;
0053 class d4_DLL c4_Strategy;
0054 class d4_DLL c4_Stream;
0055 class d4_DLL c4_StringProp;
0056 class d4_DLL c4_StringRef;
0057 class d4_DLL c4_View;
0058 class d4_DLL c4_ViewProp;
0059 class d4_DLL c4_ViewRef;
0060 
0061 #if !q4_MFC
0062 class d4_DLL c4_String;
0063 #endif
0064 
0065 /////////////////////////////////////////////////////////////////////////////
0066 
0067 d4_DLLSPEC(bool) operator==(const c4_View &a_, const c4_View &b_);
0068 d4_DLLSPEC(bool) operator!=(const c4_View &a_, const c4_View &b_);
0069 d4_DLLSPEC(bool) operator<(const c4_View &a_, const c4_View &b_);
0070 d4_DLLSPEC(bool) operator>(const c4_View &a_, const c4_View &b_);
0071 d4_DLLSPEC(bool) operator<=(const c4_View &a_, const c4_View &b_);
0072 d4_DLLSPEC(bool) operator>=(const c4_View &a_, const c4_View &b_);
0073 
0074 d4_DLLSPEC(bool) operator==(c4_Cursor a_, c4_Cursor b_);
0075 d4_DLLSPEC(bool) operator!=(c4_Cursor a_, c4_Cursor b_);
0076 d4_DLLSPEC(bool) operator<(c4_Cursor a_, c4_Cursor b_);
0077 d4_DLLSPEC(bool) operator>(c4_Cursor a_, c4_Cursor b_);
0078 d4_DLLSPEC(bool) operator<=(c4_Cursor a_, c4_Cursor b_);
0079 d4_DLLSPEC(bool) operator>=(c4_Cursor a_, c4_Cursor b_);
0080 d4_DLLSPEC(c4_Cursor) operator+(c4_Cursor cursor_, int offset_);
0081 d4_DLLSPEC(c4_Cursor) operator+(int offset_, c4_Cursor cursor_);
0082 
0083 d4_DLLSPEC(bool) operator==(const c4_RowRef &a_, const c4_RowRef &b_);
0084 d4_DLLSPEC(bool) operator!=(const c4_RowRef &a_, const c4_RowRef &b_);
0085 d4_DLLSPEC(bool) operator<(const c4_RowRef &a_, const c4_RowRef &b_);
0086 d4_DLLSPEC(bool) operator>(const c4_RowRef &a_, const c4_RowRef &b_);
0087 d4_DLLSPEC(bool) operator<=(const c4_RowRef &a_, const c4_RowRef &b_);
0088 d4_DLLSPEC(bool) operator>=(const c4_RowRef &a_, const c4_RowRef &b_);
0089 d4_DLLSPEC(c4_Row) operator+(const c4_RowRef &a_, const c4_RowRef &b_);
0090 
0091 d4_DLLSPEC(bool) operator==(const c4_Bytes &a_, const c4_Bytes &b_);
0092 d4_DLLSPEC(bool) operator!=(const c4_Bytes &a_, const c4_Bytes &b_);
0093 
0094 d4_DLLSPEC(bool) operator==(const c4_Reference &, const c4_Reference &);
0095 d4_DLLSPEC(bool) operator!=(const c4_Reference &, const c4_Reference &);
0096 
0097 #if !q4_MFC
0098 d4_DLLSPEC(c4_String) operator+(const c4_String &, const c4_String &);
0099 d4_DLLSPEC(c4_String) operator+(const c4_String &, const char *);
0100 d4_DLLSPEC(c4_String) operator+(const char *, const c4_String &);
0101 
0102 d4_DLLSPEC(bool) operator==(const c4_String &, const c4_String &);
0103 d4_DLLSPEC(bool) operator!=(const c4_String &, const c4_String &);
0104 d4_DLLSPEC(bool) operator==(const c4_String &s1, const char *s2);
0105 d4_DLLSPEC(bool) operator==(const char *s1, const c4_String &s2);
0106 d4_DLLSPEC(bool) operator!=(const c4_String &s1, const char *s2);
0107 d4_DLLSPEC(bool) operator!=(const char *s1, const c4_String &s2);
0108 #endif
0109 
0110 /////////////////////////////////////////////////////////////////////////////