True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

Buffer.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: Buffer.h
00003 // Description:
00004 //
00005 // Copyright (C) 2004 - 2006 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
00010 //---------------------------------------------------------------------------------
00011 
00012 #ifndef TA_BUFFER_H
00013 #define TA_BUFFER_H
00014 
00015 #ifndef TA_REFCOUNT_H
00016 #include "RefCount.h"
00017 #endif // TA_REFCOUNT_H
00018 
00019 namespace TA
00020 {
00021 
00022 class IOStreamInput;
00023 
00024 class TACOMMON_CLASS Buffer : public RefCount
00025 {
00026 public:
00027     Buffer();
00028     ~Buffer();
00029 
00030     int GetSize() { return m_nSize; }
00031     void* GetData() { return m_pData; }
00032 
00033     void Initialise(IOStreamInput& stream);
00034     void Finalise();
00035 
00036 private:
00037     int m_nSize;
00038     void* m_pData;
00039 };
00040 
00041 }
00042 
00043 #endif // TA_BUFFER_H


© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.