diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-08-14 19:45:36 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-08-14 19:45:36 +0200 |
commit | bfa452a375ea0a0a3f95304a69186936567e5263 (patch) | |
tree | aade062a143c1afcc4ea06ee27905ffc34a9217b /1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h | |
parent | dd70ff8bf32c2d7ed365004b1770058265db1978 (diff) |
New upstream version 4.1.4
Diffstat (limited to '1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h')
-rwxr-xr-x | 1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h b/1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h new file mode 100755 index 0000000..2c31e45 --- /dev/null +++ b/1Tdata/xbase/xbase64-4.1.4/src/include/xbtblmgr.h @@ -0,0 +1,63 @@ +/* xbtblmgr.h + +XBase64 Software Library + +Copyright (c) 1997,2003,2014,2022 Gary A Kunkel + +The xb64 software library is covered under the terms of the GPL Version 3, 2007 license. + +Email Contact: + + XDB-devel@lists.sourceforge.net + XDB-users@lists.sourceforge.net + +This class manages a list of open tables, open indices are connected to the open tables + +*/ + + +#ifndef __XB_XBMGR_H__ +#define __XB_XBMGR_H__ + +#ifdef CMAKE_COMPILER_IS_GNUCC +#pragma interface +#endif + +namespace xb{ + +class XBDLLEXPORT xbDbf; + +/* this structure is a linked list of open tables */ +struct XBDLLEXPORT xbTblList{ + xbTblList *pNext; + xbString *psFqTblName; // Fully qualified name of table - same table can be opened multiple times, but must have unique alias + xbString *psTblName; // Table name without path, without extension + xbString *psTblAlias; // TblAliasName must be unique, same as TblNAme if Alias not provided + xbDbf *pDbf; +}; + +class XBDLLEXPORT xbTblMgr : public xbSsv { + public: + xbTblMgr(); + ~xbTblMgr(); + xbInt16 AddTblToTblList ( xbDbf *d, const xbString &sFqTblName ); + xbInt16 AddTblToTblList ( xbDbf *d, const xbString &sFqTblName, const xbString &sTblAlias ); + xbInt16 DisplayTableList () const; + xbDbf * GetDbfPtr ( const xbString &sTblAlias ) const; + xbDbf * GetDbfPtr ( xbInt16 sItemNo ) const; + xbTblList * GetTblListEntry ( xbDbf *d ); + xbInt16 GetOpenTableCount () const; + xbInt16 RemoveTblFromTblList ( const xbString &sTblAlias ); + xbInt16 RemoveTblFromTblList ( xbDbf *d ); + + protected: + + private: + xbTblList * TblList; // List of open database tables + xbInt16 iOpenTableCount; // Number of open tables + +}; + +} /* namespace xb */ + +#endif /* __XB_XBMGR_H__ */
\ No newline at end of file |