CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
OleStorage.h
Go to the documentation of this file.
1
2
// Copyright (C) 2002-2024, 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-2024 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
#ifndef _ODSTORAGE_INCLUDED_
26
#define _ODSTORAGE_INCLUDED_
27
28
#include "
RxObject.h
"
29
#include "
OdStreamBuf.h
"
30
#include "
OdErrorContext.h
"
31
32
#include "
TD_PackPush.h
"
33
40
class
FIRSTDLL_EXPORT
OdByteData
:
public
OdRxObject
41
{
42
public
:
43
typedef
OdUInt32
SizeType
;
44
45
ODRX_DECLARE_MEMBERS
(
OdByteData
);
53
virtual
SizeType
readAt
(
SizeType
start,
OdUInt8
*
buffer
,
SizeType
bufferSize)
const
= 0;
54
60
virtual
SizeType
writeAt
(
SizeType
start,
const
OdUInt8
*
buffer
,
SizeType
bufferSize) = 0;
61
65
virtual
SizeType
size
()
const
= 0;
70
virtual
void
resize
(
SizeType
bufferSize) = 0;
71
75
virtual
void
flush
() = 0;
76
};
77
81
typedef
OdSmartPtr<OdByteData>
OdByteDataPtr
;
82
83
90
class
OdOleStorageError
:
public
OdError
91
{
92
public
:
95
OdOleStorageError
(
OdErrorContext
* pErrorContext) :
OdError
(pErrorContext) { }
96
};
97
98
class
OdOleStorage
;
102
typedef
OdSmartPtr<OdOleStorage>
OdOleStoragePtr
;
103
110
class
FIRSTDLL_EXPORT
OdOleStorage
:
public
OdRxObject
111
{
112
public
:
113
ODRX_DECLARE_MEMBERS
(
OdOleStorage
);
114
129
virtual
void
init
(
OdByteData
* pByteData,
int
accessMode =
Oda::kFileRead
) = 0;
130
134
virtual
OdByteDataPtr
rawData
()
const
= 0;
135
158
virtual
OdStreamBufPtr
openStream
(
const
OdString
&filename,
159
bool
createIfNotFound =
false
,
160
int
accessMode =
Oda::kFileRead
) = 0;
161
166
static
OdOleStoragePtr
createServiceObject
(
OdByteData
* pInitData);
167
};
168
169
#define ODRX_OLESTORAGE_SERVICE_NAME OdOleStorage::desc()->name()
170
171
#include "
TD_PackPop.h
"
172
173
#endif
// _ODSTORAGE_INCLUDED_
OdStreamBufPtr
OdSmartPtr< OdStreamBuf > OdStreamBufPtr
Definition
DbPageController.h:36
OdErrorContext.h
OdUInt32
unsigned int OdUInt32
Definition
OdPlatformSettings.h:768
OdUInt8
unsigned char OdUInt8
Definition
OdPlatformSettings.h:744
OdStreamBuf.h
OdOleStoragePtr
OdSmartPtr< OdOleStorage > OdOleStoragePtr
Definition
OleStorage.h:102
OdByteDataPtr
OdSmartPtr< OdByteData > OdByteDataPtr
Definition
OleStorage.h:81
FIRSTDLL_EXPORT
#define FIRSTDLL_EXPORT
Definition
RootExport.h:39
RxObject.h
TD_PackPop.h
TD_PackPush.h
OdByteData
Definition
OleStorage.h:41
OdByteData::resize
virtual void resize(SizeType bufferSize)=0
OdByteData::readAt
virtual SizeType readAt(SizeType start, OdUInt8 *buffer, SizeType bufferSize) const =0
OdByteData::flush
virtual void flush()=0
OdByteData::SizeType
OdUInt32 SizeType
Definition
OleStorage.h:43
OdByteData::size
virtual SizeType size() const =0
OdByteData::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdByteData)
OdByteData::writeAt
virtual SizeType writeAt(SizeType start, const OdUInt8 *buffer, SizeType bufferSize)=0
OdErrorContext
Definition
OdErrorContext.h:46
OdError::OdError
OdError(OdResult code)
OdOleStorageError::OdOleStorageError
OdOleStorageError(OdErrorContext *pErrorContext)
Definition
OleStorage.h:95
OdOleStorage
Definition
OleStorage.h:111
OdOleStorage::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdOleStorage)
OdOleStorage::openStream
virtual OdStreamBufPtr openStream(const OdString &filename, bool createIfNotFound=false, int accessMode=Oda::kFileRead)=0
OdOleStorage::init
virtual void init(OdByteData *pByteData, int accessMode=Oda::kFileRead)=0
OdOleStorage::rawData
virtual OdByteDataPtr rawData() const =0
OdOleStorage::createServiceObject
static OdOleStoragePtr createServiceObject(OdByteData *pInitData)
OdSmartPtr
Definition
SmartPtr.h:58
OdString
Definition
OdString.h:97
buffer
GLuint buffer
Definition
gles2_ext.h:178
Oda::kFileRead
@ kFileRead
Definition
OdStreamBuf.h:49
Generated on Tue Apr 15 2025 11:30:04