foundation/PxIO.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_FOUNDATION_PX_IO_H
15 #define PX_FOUNDATION_PX_IO_H
16 
22 
23 #ifndef PX_DOXYGEN
24 namespace physx
25 {
26 #endif
27 
37 {
38 public:
39 
49  virtual PxU32 read(void* dest, PxU32 count) = 0;
50 
51  virtual ~PxInputStream() {}
52 };
53 
54 
61 class PxInputData : public PxInputStream
62 {
63 public:
64 
71  virtual PxU32 getLength() const = 0;
72 
73 
80  virtual void seek(PxU32 offset) = 0;
81 
88  virtual PxU32 tell() const = 0;
89 
90  virtual ~PxInputData() {}
91 };
92 
100 {
101 public:
111  virtual PxU32 write(const void* src, PxU32 count) = 0;
112 
113  virtual ~PxOutputStream() {}
114 
115 };
116 
117 
118 
119 
120 
121 #ifndef PX_DOXYGEN
122 } // namespace physx
123 #endif
124 
126 #endif


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com