CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbPageController.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25
26#ifndef _ODDBPAGECONTROLLER_INCLUDED_
27#define _ODDBPAGECONTROLLER_INCLUDED_
28
29#include "RxObject.h"
30#include "DbExport.h"
31#include "DbDatabase.h"
32
33class OdDbDatabase;
34class OdDbObjectId;
35class OdStreamBuf;
37
42namespace OdDb
43{
55 {
63 kUnload = 0x01,
70 kPage = 0x02,
78 };
79}
80
91{
92public:
93 typedef OdInt64 Key;
94
111 virtual int pagingType() const = 0;
112
121 virtual OdStreamBufPtr read(Key key) = 0;
122
138 virtual bool write(Key& key, OdStreamBuf* pStreamBuf) = 0;
139
147 virtual void setDatabase(OdDbDatabase* pDb) = 0;
148
152 virtual OdDbDatabase* database() = 0;
153
173 virtual OdResult subPage(const OdDbObjectId& objectId);
174};
175
180
187inline void odDbPageObjects(OdDbDatabase* pDb) {
188 pDb->pageObjects();
189}
190
191#endif // _ODDBPAGECONTROLLER_INCLUDED_
192
193
194
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
void odDbPageObjects(OdDbDatabase *pDb)
OdSmartPtr< OdDbPageController > OdDbPageControllerPtr
OdSmartPtr< OdStreamBuf > OdStreamBufPtr
OdResult
Definition: OdResult.h:29
bool pageObjects()
virtual OdResult subPage(const OdDbObjectId &objectId)
virtual OdDbDatabase * database()=0
virtual bool write(Key &key, OdStreamBuf *pStreamBuf)=0
virtual OdStreamBufPtr read(Key key)=0
virtual void setDatabase(OdDbDatabase *pDb)=0
virtual int pagingType() const =0
Definition: Int64.h:43
@ kDoNotEnqueuePagingOnClose