dbgsrv/coredumpserver/interface/common/streamelement.h
author bdonegan
Thu, 30 Sep 2010 16:15:48 +0100
changeset 3 b667e5204120
parent 0 c6b0df440bee
permissions -rw-r--r--
Remove reference to cinidata in order to allow TrkEngine to build

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//


#ifndef STREAMELEMENT_H
#define STREAMELEMENT_H

#include <e32base.h>
#include <s32mem.h>

#include <rm_debug_api.h>
#include <debuglogging.h>

/**
@internalTechnology 
@released

Pure virtual base class for streamable classes. 
Used when a class must be passed accross a client server interface
*/
class CStreamElementBase : public CBase
{

public:
	
	virtual ~CStreamElementBase()
		{
		}

	/** 
	Creates HBufC8 with a representation of ’this’ object
	*/
	IMPORT_C  HBufC8* MarshalDataL();


	TInt static MaxSize()
		{
		return 0;
		}

	virtual TInt Size() const = 0;

	// Initializes ’this’ from stream
	virtual void InternalizeL( RReadStream & aStream ) = 0;

	// Writes ’this’ to the stream
	virtual void ExternalizeL( RWriteStream & aStream, CBufFlat* buf ) = 0;

	TUint32 iSpare1;
	TUint32 iSpare2;
};

#endif // STREAMELEMENT_H