epoc32/include/tools/coredump/streamelement.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     2
// All rights reserved.
williamr@4
     3
// This component and the accompanying materials are made available
williamr@4
     4
// 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
williamr@4
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@4
     7
//
williamr@4
     8
// Initial Contributors:
williamr@4
     9
// Nokia Corporation - initial contribution.
williamr@4
    10
//
williamr@4
    11
// Contributors:
williamr@4
    12
//
williamr@4
    13
// Description:
williamr@4
    14
//
williamr@4
    15
williamr@4
    16
williamr@4
    17
#ifndef STREAMELEMENT_H
williamr@4
    18
#define STREAMELEMENT_H
williamr@4
    19
williamr@4
    20
#include <e32base.h>
williamr@4
    21
#include <s32mem.h>
williamr@4
    22
williamr@4
    23
#include <rm_debug_api.h>
williamr@4
    24
#include <debuglogging.h>
williamr@4
    25
williamr@4
    26
/**
williamr@4
    27
@internalTechnology 
williamr@4
    28
@released
williamr@4
    29
williamr@4
    30
Pure virtual base class for streamable classes. 
williamr@4
    31
Used when a class must be passed accross a client server interface
williamr@4
    32
*/
williamr@4
    33
class CStreamElementBase : public CBase
williamr@4
    34
{
williamr@4
    35
williamr@4
    36
public:
williamr@4
    37
	
williamr@4
    38
	virtual ~CStreamElementBase()
williamr@4
    39
		{
williamr@4
    40
		}
williamr@4
    41
williamr@4
    42
	/** 
williamr@4
    43
	Creates HBufC8 with a representation of ’this’ object
williamr@4
    44
	*/
williamr@4
    45
	IMPORT_C  HBufC8* MarshalDataL();
williamr@4
    46
williamr@4
    47
williamr@4
    48
	TInt static MaxSize()
williamr@4
    49
		{
williamr@4
    50
		return 0;
williamr@4
    51
		}
williamr@4
    52
williamr@4
    53
	virtual TInt Size() const = 0;
williamr@4
    54
williamr@4
    55
	// Initializes ’this’ from stream
williamr@4
    56
	virtual void InternalizeL( RReadStream & aStream ) = 0;
williamr@4
    57
williamr@4
    58
	// Writes ’this’ to the stream
williamr@4
    59
	virtual void ExternalizeL( RWriteStream & aStream, CBufFlat* buf ) = 0;
williamr@4
    60
williamr@4
    61
	TUint32 iSpare1;
williamr@4
    62
	TUint32 iSpare2;
williamr@4
    63
};
williamr@4
    64
williamr@4
    65
#endif // STREAMELEMENT_H