some Linux compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,21 +186,22 @@ WXDLLEXPORT bool wxFindFileInPath(wxString *pStr, const char *pszPath, const cha
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// Path searching
|
// Path searching
|
||||||
class WXDLLEXPORT wxPathList: public wxStringList
|
class WXDLLEXPORT wxPathList : public wxStringList
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPathList)
|
public:
|
||||||
|
void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable
|
||||||
|
void Add(const wxString& path);
|
||||||
|
wxString FindValidPath(const wxString& filename); // Find the first full path
|
||||||
|
// for which the file exists
|
||||||
|
wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path
|
||||||
|
// for which the file exists; ensure it's an absolute
|
||||||
|
// path that gets returned.
|
||||||
|
void EnsureFileAccessible(const wxString& path); // Given full path and filename,
|
||||||
|
// add path to list
|
||||||
|
bool Member(const wxString& path);
|
||||||
|
|
||||||
public:
|
private:
|
||||||
void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable
|
DECLARE_DYNAMIC_CLASS(wxPathList)
|
||||||
void Add(const wxString& path);
|
|
||||||
wxString FindValidPath(const wxString& filename); // Find the first full path
|
|
||||||
// for which the file exists
|
|
||||||
wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path
|
|
||||||
// for which the file exists; ensure it's an absolute
|
|
||||||
// path that gets returned.
|
|
||||||
void EnsureFileAccessible(const wxString& path); // Given full path and filename,
|
|
||||||
// add path to list
|
|
||||||
bool Member(const wxString& path);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
// Created: 01/02/97
|
// Created: 01/02/97
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c)
|
// Copyright: (c)
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __TABGH_G__
|
#ifndef __TABGH_G__
|
||||||
@@ -85,11 +85,6 @@ protected:
|
|||||||
|
|
||||||
class WXDLLEXPORT wxTabLayer: public wxList
|
class WXDLLEXPORT wxTabLayer: public wxList
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxTabLayer)
|
|
||||||
public:
|
|
||||||
wxTabLayer(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
// Created: 01/02/97
|
// Created: 01/02/97
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) Julian Smart and Markus Holzem
|
// Copyright: (c) Julian Smart and Markus Holzem
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_POSTSCRPH__
|
#ifndef _WX_POSTSCRPH__
|
||||||
@@ -49,10 +49,10 @@ class WXDLLEXPORT wxPostScriptDC: public wxDC
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// Create a printer DC
|
// Create a printer DC
|
||||||
wxPostScriptDC(void);
|
wxPostScriptDC();
|
||||||
wxPostScriptDC(const wxString& output, bool interactive = TRUE, wxWindow *parent = (wxWindow *) NULL);
|
wxPostScriptDC(const wxString& output, bool interactive = TRUE, wxWindow *parent = (wxWindow *) NULL);
|
||||||
|
|
||||||
~wxPostScriptDC(void);
|
~wxPostScriptDC();
|
||||||
|
|
||||||
bool Create(const wxString& output, bool interactive = TRUE, wxWindow *parent = (wxWindow *) NULL);
|
bool Create(const wxString& output, bool interactive = TRUE, wxWindow *parent = (wxWindow *) NULL);
|
||||||
|
|
||||||
@@ -92,25 +92,25 @@ class WXDLLEXPORT wxPostScriptDC: public wxDC
|
|||||||
#endif
|
#endif
|
||||||
void DrawText(const wxString& text, long x, long y, bool use16 = FALSE);
|
void DrawText(const wxString& text, long x, long y, bool use16 = FALSE);
|
||||||
|
|
||||||
void Clear(void);
|
void Clear();
|
||||||
void SetFont(const wxFont& font);
|
void SetFont(const wxFont& font);
|
||||||
void SetPen(const wxPen& pen);
|
void SetPen(const wxPen& pen);
|
||||||
void SetBrush(const wxBrush& brush);
|
void SetBrush(const wxBrush& brush);
|
||||||
void SetLogicalFunction(int function);
|
void SetLogicalFunction(int function);
|
||||||
void SetBackground(const wxBrush& brush);
|
void SetBackground(const wxBrush& brush);
|
||||||
void SetClippingRegion(long x, long y, long width, long height);
|
void SetClippingRegion(long x, long y, long width, long height);
|
||||||
void DestroyClippingRegion(void);
|
void DestroyClippingRegion();
|
||||||
|
|
||||||
bool StartDoc(const wxString& message);
|
bool StartDoc(const wxString& message);
|
||||||
void EndDoc(void);
|
void EndDoc();
|
||||||
void StartPage(void);
|
void StartPage();
|
||||||
void EndPage(void);
|
void EndPage();
|
||||||
|
|
||||||
long GetCharHeight(void);
|
long GetCharHeight();
|
||||||
long GetCharWidth(void);
|
long GetCharWidth();
|
||||||
void GetTextExtent(const wxString& string, long *x, long *y,
|
void GetTextExtent(const wxString& string, long *x, long *y,
|
||||||
long *descent = (long *) NULL,
|
long *descent = (long *) NULL,
|
||||||
long *externalLeading = (long *) NULL,
|
long *externalLeading = (long *) NULL,
|
||||||
wxFont *theFont = (wxFont *) NULL, bool use16 = FALSE);
|
wxFont *theFont = (wxFont *) NULL, bool use16 = FALSE);
|
||||||
virtual void SetLogicalOrigin(long x, long y);
|
virtual void SetLogicalOrigin(long x, long y);
|
||||||
virtual void CalcBoundingBox(long x, long y);
|
virtual void CalcBoundingBox(long x, long y);
|
||||||
@@ -165,8 +165,8 @@ class WXDLLEXPORT wxPostScriptPrintDialog: public wxDialog
|
|||||||
DECLARE_CLASS(wxPostScriptPrintDialog)
|
DECLARE_CLASS(wxPostScriptPrintDialog)
|
||||||
public:
|
public:
|
||||||
wxPostScriptPrintDialog (wxWindow *parent, const wxString& title,
|
wxPostScriptPrintDialog (wxWindow *parent, const wxString& title,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
long style = wxDEFAULT_DIALOG_STYLE);
|
long style = wxDEFAULT_DIALOG_STYLE);
|
||||||
|
|
||||||
virtual int ShowModal(void) ;
|
virtual int ShowModal(void) ;
|
||||||
};
|
};
|
||||||
@@ -197,15 +197,15 @@ WXDLLEXPORT void wxSetPrinterFile(const char *f);
|
|||||||
WXDLLEXPORT void wxSetAFMPath(const char *f);
|
WXDLLEXPORT void wxSetAFMPath(const char *f);
|
||||||
|
|
||||||
// Get current values
|
// Get current values
|
||||||
WXDLLEXPORT char* wxGetPrinterCommand(void);
|
WXDLLEXPORT char* wxGetPrinterCommand();
|
||||||
WXDLLEXPORT char* wxGetPrintPreviewCommand(void);
|
WXDLLEXPORT char* wxGetPrintPreviewCommand();
|
||||||
WXDLLEXPORT char* wxGetPrinterOptions(void);
|
WXDLLEXPORT char* wxGetPrinterOptions();
|
||||||
WXDLLEXPORT int wxGetPrinterOrientation(void);
|
WXDLLEXPORT int wxGetPrinterOrientation();
|
||||||
WXDLLEXPORT void wxGetPrinterScaling(double* x, double* y);
|
WXDLLEXPORT void wxGetPrinterScaling(double* x, double* y);
|
||||||
WXDLLEXPORT void wxGetPrinterTranslation(long *x, long *y);
|
WXDLLEXPORT void wxGetPrinterTranslation(long *x, long *y);
|
||||||
WXDLLEXPORT int wxGetPrinterMode(void);
|
WXDLLEXPORT int wxGetPrinterMode();
|
||||||
WXDLLEXPORT char* wxGetPrinterFile(void);
|
WXDLLEXPORT char* wxGetPrinterFile();
|
||||||
WXDLLEXPORT char* wxGetAFMPath(void);
|
WXDLLEXPORT char* wxGetAFMPath();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PostScript print setup information
|
* PostScript print setup information
|
||||||
@@ -213,55 +213,57 @@ WXDLLEXPORT char* wxGetAFMPath(void);
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPrintSetupData: public wxObject
|
class WXDLLEXPORT wxPrintSetupData: public wxObject
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
char *printerCommand;
|
||||||
|
char *previewCommand;
|
||||||
|
char *printerFlags;
|
||||||
|
char *printerFile;
|
||||||
|
int printerOrient;
|
||||||
|
double printerScaleX;
|
||||||
|
double printerScaleY;
|
||||||
|
long printerTranslateX;
|
||||||
|
long printerTranslateY;
|
||||||
|
// 1 = Preview, 2 = print to file, 3 = send to printer
|
||||||
|
int printerMode;
|
||||||
|
char *afmPath;
|
||||||
|
// A name in the paper database (see wx_print.h: the printing framework)
|
||||||
|
char *paperName;
|
||||||
|
bool printColour;
|
||||||
|
|
||||||
|
public:
|
||||||
|
wxPrintSetupData();
|
||||||
|
~wxPrintSetupData();
|
||||||
|
|
||||||
|
void SetPrinterCommand(const char *cmd);
|
||||||
|
void SetPaperName(const char *paper);
|
||||||
|
void SetPrintPreviewCommand(const char *cmd);
|
||||||
|
void SetPrinterOptions(const char *flags);
|
||||||
|
void SetPrinterFile(const char *f);
|
||||||
|
void SetPrinterOrientation(int orient);
|
||||||
|
void SetPrinterScaling(double x, double y);
|
||||||
|
void SetPrinterTranslation(long x, long y);
|
||||||
|
// 1 = Preview, 2 = print to file, 3 = send to printer
|
||||||
|
void SetPrinterMode(int mode);
|
||||||
|
void SetAFMPath(const char *f);
|
||||||
|
void SetColour(bool col);
|
||||||
|
|
||||||
|
// Get current values
|
||||||
|
char *GetPrinterCommand();
|
||||||
|
char *GetPrintPreviewCommand();
|
||||||
|
char *GetPrinterOptions();
|
||||||
|
char *GetPrinterFile();
|
||||||
|
char *GetPaperName();
|
||||||
|
int GetPrinterOrientation();
|
||||||
|
void GetPrinterScaling(double* x, double* y);
|
||||||
|
void GetPrinterTranslation(long *x, long *y);
|
||||||
|
int GetPrinterMode();
|
||||||
|
char *GetAFMPath();
|
||||||
|
bool GetColour();
|
||||||
|
|
||||||
|
void operator=(wxPrintSetupData& data);
|
||||||
|
|
||||||
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxPrintSetupData)
|
DECLARE_DYNAMIC_CLASS(wxPrintSetupData)
|
||||||
|
|
||||||
public:
|
|
||||||
char *printerCommand;
|
|
||||||
char *previewCommand;
|
|
||||||
char *printerFlags;
|
|
||||||
char *printerFile;
|
|
||||||
int printerOrient;
|
|
||||||
double printerScaleX;
|
|
||||||
double printerScaleY;
|
|
||||||
long printerTranslateX;
|
|
||||||
long printerTranslateY;
|
|
||||||
// 1 = Preview, 2 = print to file, 3 = send to printer
|
|
||||||
int printerMode;
|
|
||||||
char *afmPath;
|
|
||||||
// A name in the paper database (see wx_print.h: the printing framework)
|
|
||||||
char *paperName;
|
|
||||||
bool printColour;
|
|
||||||
public:
|
|
||||||
wxPrintSetupData(void);
|
|
||||||
~wxPrintSetupData(void);
|
|
||||||
|
|
||||||
void SetPrinterCommand(const char *cmd);
|
|
||||||
void SetPaperName(const char *paper);
|
|
||||||
void SetPrintPreviewCommand(const char *cmd);
|
|
||||||
void SetPrinterOptions(const char *flags);
|
|
||||||
void SetPrinterFile(const char *f);
|
|
||||||
void SetPrinterOrientation(int orient);
|
|
||||||
void SetPrinterScaling(double x, double y);
|
|
||||||
void SetPrinterTranslation(long x, long y);
|
|
||||||
// 1 = Preview, 2 = print to file, 3 = send to printer
|
|
||||||
void SetPrinterMode(int mode);
|
|
||||||
void SetAFMPath(const char *f);
|
|
||||||
void SetColour(bool col);
|
|
||||||
|
|
||||||
// Get current values
|
|
||||||
char *GetPrinterCommand(void);
|
|
||||||
char *GetPrintPreviewCommand(void);
|
|
||||||
char *GetPrinterOptions(void);
|
|
||||||
char *GetPrinterFile(void);
|
|
||||||
char *GetPaperName(void);
|
|
||||||
int GetPrinterOrientation(void);
|
|
||||||
void GetPrinterScaling(double* x, double* y);
|
|
||||||
void GetPrinterTranslation(long *x, long *y);
|
|
||||||
int GetPrinterMode(void);
|
|
||||||
char *GetAFMPath(void);
|
|
||||||
bool GetColour(void);
|
|
||||||
|
|
||||||
void operator=(wxPrintSetupData& data);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
WXDLLEXPORT_DATA(extern wxPrintSetupData*) wxThePrintSetupData;
|
WXDLLEXPORT_DATA(extern wxPrintSetupData*) wxThePrintSetupData;
|
||||||
@@ -274,32 +276,35 @@ WXDLLEXPORT extern void wxInitializePrintSetupData(bool init = TRUE);
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPrintPaperType: public wxObject
|
class WXDLLEXPORT wxPrintPaperType: public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPrintPaperType)
|
public:
|
||||||
|
wxPrintPaperType(const char *name = (const char *) NULL, int wmm = 0, int hmm = 0, int wp = 0, int hp = 0);
|
||||||
|
~wxPrintPaperType();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int widthMM;
|
int widthMM;
|
||||||
int heightMM;
|
int heightMM;
|
||||||
int widthPixels;
|
int widthPixels;
|
||||||
int heightPixels;
|
int heightPixels;
|
||||||
char *pageName;
|
char *pageName;
|
||||||
|
|
||||||
wxPrintPaperType(const char *name = (const char *) NULL, int wmm = 0, int hmm = 0, int wp = 0, int hp = 0);
|
private:
|
||||||
~wxPrintPaperType(void);
|
DECLARE_DYNAMIC_CLASS(wxPrintPaperType)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxPrintPaperDatabase: public wxList
|
class WXDLLEXPORT wxPrintPaperDatabase: public wxList
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPrintPaperDatabase)
|
public:
|
||||||
|
wxPrintPaperDatabase();
|
||||||
|
~wxPrintPaperDatabase();
|
||||||
|
|
||||||
public:
|
void CreateDatabase();
|
||||||
wxPrintPaperDatabase(void);
|
void ClearDatabase();
|
||||||
~wxPrintPaperDatabase(void);
|
|
||||||
|
|
||||||
void CreateDatabase(void);
|
void AddPaperType(const char *name, int wmm, int hmm, int wp, int hp);
|
||||||
void ClearDatabase(void);
|
wxPrintPaperType *FindPaperType(const char *name);
|
||||||
|
|
||||||
void AddPaperType(const char *name, int wmm, int hmm, int wp, int hp);
|
private:
|
||||||
wxPrintPaperType *FindPaperType(const char *name);
|
DECLARE_DYNAMIC_CLASS(wxPrintPaperDatabase)
|
||||||
};
|
};
|
||||||
|
|
||||||
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
|
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
// Created: 01/02/97
|
// Created: 01/02/97
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) Julian Smart and Markus Holzem
|
// Copyright: (c) Julian Smart and Markus Holzem
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_RESOURCEH__
|
#ifndef _WX_RESOURCEH__
|
||||||
|
@@ -84,20 +84,20 @@ public:
|
|||||||
|
|
||||||
// Construction & destruction
|
// Construction & destruction
|
||||||
wxVariant();
|
wxVariant();
|
||||||
wxVariant(double val, const wxString& name = wxEmptyString);
|
wxVariant(double val, const wxString& name = g_szNul);
|
||||||
wxVariant(long val, const wxString& name = wxEmptyString);
|
wxVariant(long val, const wxString& name = g_szNul);
|
||||||
wxVariant(bool val, const wxString& name = wxEmptyString);
|
wxVariant(bool val, const wxString& name = g_szNul);
|
||||||
wxVariant(char val, const wxString& name = wxEmptyString);
|
wxVariant(char val, const wxString& name = g_szNul);
|
||||||
wxVariant(const wxString& val, const wxString& name = wxEmptyString);
|
wxVariant(const wxString& val, const wxString& name = g_szNul);
|
||||||
wxVariant(const char* val, const wxString& name = wxEmptyString); // Necessary or VC++ assumes bool!
|
wxVariant(const char* val, const wxString& name = g_szNul); // Necessary or VC++ assumes bool!
|
||||||
wxVariant(const wxStringList& val, const wxString& name = wxEmptyString);
|
wxVariant(const wxStringList& val, const wxString& name = g_szNul);
|
||||||
wxVariant(const wxList& val, const wxString& name = wxEmptyString); // List of variants
|
wxVariant(const wxList& val, const wxString& name = g_szNul); // List of variants
|
||||||
#if wxUSE_TIMEDATE
|
#if wxUSE_TIMEDATE
|
||||||
wxVariant(const wxTime& val, const wxString& name = wxEmptyString); // Time
|
wxVariant(const wxTime& val, const wxString& name = g_szNul); // Time
|
||||||
wxVariant(const wxDate& val, const wxString& name = wxEmptyString); // Date
|
wxVariant(const wxDate& val, const wxString& name = g_szNul); // Date
|
||||||
#endif
|
#endif
|
||||||
wxVariant(void* ptr, const wxString& name = wxEmptyString); // void* (general purpose)
|
wxVariant(void* ptr, const wxString& name = g_szNul); // void* (general purpose)
|
||||||
wxVariant(wxVariantData* data, const wxString& name = wxEmptyString); // User-defined data
|
wxVariant(wxVariantData* data, const wxString& name = g_szNul); // User-defined data
|
||||||
wxVariant(const wxVariant& variant);
|
wxVariant(const wxVariant& variant);
|
||||||
~wxVariant();
|
~wxVariant();
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
// Created: 01/02/97
|
// Created: 01/02/97
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c)
|
// Copyright: (c)
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_WXEXPRH__
|
#ifndef _WX_WXEXPRH__
|
||||||
@@ -205,59 +205,62 @@ class WXDLLEXPORT wxExpr
|
|||||||
|
|
||||||
class WXDLLEXPORT wxExprDatabase: public wxList
|
class WXDLLEXPORT wxExprDatabase: public wxList
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxExprDatabase)
|
private:
|
||||||
private:
|
wxNode *position; // Where we are in a search
|
||||||
wxNode *position; // Where we are in a search
|
wxHashTable *hash_table;
|
||||||
wxHashTable *hash_table;
|
wxString attribute_to_hash;
|
||||||
wxString attribute_to_hash;
|
|
||||||
public:
|
|
||||||
int noErrors;
|
|
||||||
|
|
||||||
wxExprDatabase(wxExprErrorHandler handler = 0);
|
public:
|
||||||
|
int noErrors;
|
||||||
|
|
||||||
// Use hashing on both the functor, and the attribute of
|
wxExprDatabase(wxExprErrorHandler handler = 0);
|
||||||
// specified type (wxExprString or wxExprInteger) and name.
|
|
||||||
// So to find node 45
|
|
||||||
// (i.e. match the clause node(id=45, ...))
|
|
||||||
// it usually requires 1 look-up: the keys for functor and attribute
|
|
||||||
// are added together.
|
|
||||||
// Obviously if the attribute was missing in a clause, it would
|
|
||||||
// fail to be found by this method, but could be retrieved by a
|
|
||||||
// linear search using BeginFind and FindClauseByFunctor,
|
|
||||||
// or just searching through the list as per usual.
|
|
||||||
|
|
||||||
wxExprDatabase(wxExprType type, const wxString& attribute, int size = 500,
|
// Use hashing on both the functor, and the attribute of
|
||||||
wxExprErrorHandler handler = 0);
|
// specified type (wxExprString or wxExprInteger) and name.
|
||||||
|
// So to find node 45
|
||||||
|
// (i.e. match the clause node(id=45, ...))
|
||||||
|
// it usually requires 1 look-up: the keys for functor and attribute
|
||||||
|
// are added together.
|
||||||
|
// Obviously if the attribute was missing in a clause, it would
|
||||||
|
// fail to be found by this method, but could be retrieved by a
|
||||||
|
// linear search using BeginFind and FindClauseByFunctor,
|
||||||
|
// or just searching through the list as per usual.
|
||||||
|
|
||||||
~wxExprDatabase(void);
|
wxExprDatabase(wxExprType type, const wxString& attribute, int size = 500,
|
||||||
|
wxExprErrorHandler handler = 0);
|
||||||
|
|
||||||
void BeginFind(void) ; // Initialise a search
|
~wxExprDatabase(void);
|
||||||
wxExpr *FindClause(long id) ; // Find a term based on an integer id attribute
|
|
||||||
// e.g. node(id=23, type=rectangle, ....).
|
|
||||||
|
|
||||||
// Find on basis of attribute/value pairs, e.g. type=rectangle
|
void BeginFind(void) ; // Initialise a search
|
||||||
// This doesn't use hashing; it's a linear search.
|
wxExpr *FindClause(long id) ; // Find a term based on an integer id attribute
|
||||||
wxExpr *FindClause(const wxString& word, const wxString& value);
|
// e.g. node(id=23, type=rectangle, ....).
|
||||||
wxExpr *FindClause(const wxString& word, long value);
|
|
||||||
wxExpr *FindClause(const wxString& word, double value);
|
|
||||||
wxExpr *FindClauseByFunctor(const wxString& functor);
|
|
||||||
|
|
||||||
wxExpr *HashFind(const wxString& functor, const wxString& value) const;
|
// Find on basis of attribute/value pairs, e.g. type=rectangle
|
||||||
wxExpr *HashFind(const wxString& functor, long value) const;
|
// This doesn't use hashing; it's a linear search.
|
||||||
|
wxExpr *FindClause(const wxString& word, const wxString& value);
|
||||||
|
wxExpr *FindClause(const wxString& word, long value);
|
||||||
|
wxExpr *FindClause(const wxString& word, double value);
|
||||||
|
wxExpr *FindClauseByFunctor(const wxString& functor);
|
||||||
|
|
||||||
void Append(wxExpr *expr); // Does cleverer things if hashing is on
|
wxExpr *HashFind(const wxString& functor, const wxString& value) const;
|
||||||
void ClearDatabase(void);
|
wxExpr *HashFind(const wxString& functor, long value) const;
|
||||||
inline int GetErrorCount() const { return noErrors; }
|
|
||||||
bool Read(const wxString& filename);
|
|
||||||
bool ReadFromString(const wxString& buffer);
|
|
||||||
bool Write(const wxString& fileName);
|
|
||||||
bool Write(ostream& stream);
|
|
||||||
void WriteLisp(ostream& stream);
|
|
||||||
|
|
||||||
// Compatibility
|
void Append(wxExpr *expr); // Does cleverer things if hashing is on
|
||||||
inline bool ReadProlog(char *filename) { return Read(wxString(filename)); }
|
void ClearDatabase(void);
|
||||||
inline bool ReadPrologFromString(char *buffer) { return ReadFromString(wxString(buffer)); }
|
inline int GetErrorCount() const { return noErrors; }
|
||||||
inline void WriteProlog(ostream& stream) { Write(stream); }
|
bool Read(const wxString& filename);
|
||||||
|
bool ReadFromString(const wxString& buffer);
|
||||||
|
bool Write(const wxString& fileName);
|
||||||
|
bool Write(ostream& stream);
|
||||||
|
void WriteLisp(ostream& stream);
|
||||||
|
|
||||||
|
// Compatibility
|
||||||
|
inline bool ReadProlog(char *filename) { return Read(wxString(filename)); }
|
||||||
|
inline bool ReadPrologFromString(char *buffer) { return ReadFromString(wxString(buffer)); }
|
||||||
|
inline void WriteProlog(ostream& stream) { Write(stream); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxExprDatabase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Function call-style interface - some more convenience wrappers/unwrappers
|
// Function call-style interface - some more convenience wrappers/unwrappers
|
||||||
|
Reference in New Issue
Block a user