CollectionPeer.h

00001 /* 
00002    EyeDB Object Database Management System
00003    Copyright (C) 1994-2008 SYSRA
00004    
00005    EyeDB is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009    
00010    EyeDB is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014    
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA 
00018 */
00019 
00020 /*
00021    Author: Eric Viara <viara@sysra.com>
00022 */
00023 
00024 
00025 #ifndef _COLLECTION_PEER_H
00026 #define _COLLECTION_PEER_H
00027 
00028 namespace eyedb {
00029 
00030   struct CollectionPeer {
00031 
00032     static int coherent, added, removed;
00033     static CollSet *collSet(const char *, const IndexImpl *);
00034     static CollSet *collSet(const char *, Class *, 
00035                             const Oid&, const Oid&,
00036                             int, int, int,
00037                             const IndexImpl *, Object *,
00038                             Bool, Bool, Data, Size);
00039     static CollBag *collBag(const char *, const IndexImpl *);
00040     static CollBag *collBag(const char *, Class *, 
00041                             const Oid&, const Oid&,
00042                             int, int, int,
00043                             const IndexImpl *, Object *,
00044                             Bool, Bool, Data, Size);
00045     static CollList *collList(const char *, const IndexImpl *);
00046     static CollList *collList(const char *, Class *, 
00047                               const Oid&, const Oid&,
00048                               int, int, int,
00049                               const IndexImpl *, Object *,
00050                               Bool, Bool, Data, Size);
00051     static CollArray *collArray(const char *, const IndexImpl *);
00052     static CollArray *collArray(const char *, Class *, 
00053                                 const Oid&, const Oid&,
00054                                 int, int, int,
00055                                 const IndexImpl *, Object *,
00056                                 Bool, Bool, Data, Size);
00057     static void setLock(Collection *, Bool);
00058     static void setInvOid(Collection *, const Oid&, int);
00059     static Bool isLocked(Collection *);
00060   };
00061 }
00062 
00063 #endif

Generated on Mon Dec 22 18:15:52 2008 for eyedb by  doxygen 1.5.3