xml/legacyminidomparser/XMLDom/INC/GMXMLProcessingInstruction.h
changeset 34 c7e9f1c97567
parent 25 417699dc19c9
child 36 172b09aa4eb6
equal deleted inserted replaced
25:417699dc19c9 34:c7e9f1c97567
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // GMXMLProcessing Instruction.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 #ifndef __GMXMLPROCINSTR_H__
       
    23 #define __GMXMLPROCINSTR_H__
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <gmxmlcharacterdata.h>
       
    27 
       
    28 class CMDXMLProcessingInstruction : public CMDXMLCharacterData
       
    29 /** A processing instruction section of an XML file.
       
    30 
       
    31 It has text and a place in the object tree, but has no children. 
       
    32 @publishedPartner
       
    33 @released
       
    34 */
       
    35 {
       
    36 public:
       
    37 	/** Allocates and constructs a new CMDXMLProcessingInstruction, leaving the object 
       
    38 	on the cleanup stack.
       
    39 	
       
    40 	@param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    41 	@return The new CMDXMLProcessingInstruction
       
    42 	@leave KErrNoMemory Out of memory */
       
    43 	IMPORT_C static CMDXMLProcessingInstruction* NewLC( CMDXMLDocument* aOwnerDocument );
       
    44 
       
    45 	/** Allocates and constructs a new CMDXMLProcessingInstruction.
       
    46 	
       
    47 	@param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    48 	@return The new CMDXMLProcessingInstruction
       
    49 	@leave KErrNoMemory Out of memory */
       
    50 	IMPORT_C static CMDXMLProcessingInstruction* NewL( CMDXMLDocument* aOwnerDocument );
       
    51 
       
    52 	/** Destructor. */
       
    53 	IMPORT_C virtual ~CMDXMLProcessingInstruction();
       
    54 
       
    55 
       
    56 protected:
       
    57 	/*
       
    58 	 * Constructor
       
    59 	 * @param aOwnerDocument The document at the root of the DOM tree
       
    60 	 */
       
    61 	CMDXMLProcessingInstruction( CMDXMLDocument* aOwnerDocument );
       
    62 };
       
    63 
       
    64 
       
    65 #endif