1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/coredump/streamelement.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,65 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +#ifndef STREAMELEMENT_H
1.21 +#define STREAMELEMENT_H
1.22 +
1.23 +#include <e32base.h>
1.24 +#include <s32mem.h>
1.25 +
1.26 +#include <rm_debug_api.h>
1.27 +#include <debuglogging.h>
1.28 +
1.29 +/**
1.30 +@internalTechnology
1.31 +@released
1.32 +
1.33 +Pure virtual base class for streamable classes.
1.34 +Used when a class must be passed accross a client server interface
1.35 +*/
1.36 +class CStreamElementBase : public CBase
1.37 +{
1.38 +
1.39 +public:
1.40 +
1.41 + virtual ~CStreamElementBase()
1.42 + {
1.43 + }
1.44 +
1.45 + /**
1.46 + Creates HBufC8 with a representation of ’this’ object
1.47 + */
1.48 + IMPORT_C HBufC8* MarshalDataL();
1.49 +
1.50 +
1.51 + TInt static MaxSize()
1.52 + {
1.53 + return 0;
1.54 + }
1.55 +
1.56 + virtual TInt Size() const = 0;
1.57 +
1.58 + // Initializes ’this’ from stream
1.59 + virtual void InternalizeL( RReadStream & aStream ) = 0;
1.60 +
1.61 + // Writes ’this’ to the stream
1.62 + virtual void ExternalizeL( RWriteStream & aStream, CBufFlat* buf ) = 0;
1.63 +
1.64 + TUint32 iSpare1;
1.65 + TUint32 iSpare2;
1.66 +};
1.67 +
1.68 +#endif // STREAMELEMENT_H