equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 // |
|
15 |
|
16 #ifndef STRUCTIDENTIFIER_H |
|
17 #define STRUCTIDENTIFIER_H |
|
18 |
|
19 #include <vector> |
|
20 |
|
21 #include "identifierbase.h" |
|
22 |
|
23 namespace Parser |
|
24 { |
|
25 |
|
26 class CStructIdentifier : public CIdentifierBase |
|
27 { |
|
28 public: |
|
29 explicit CStructIdentifier(const char* aName) |
|
30 : CIdentifierBase(Parser::EStructIdentifier, aName) |
|
31 { |
|
32 } |
|
33 |
|
34 void AddMember(TMember* aMember); |
|
35 const TMember* FindMember(const std::string& aName); |
|
36 |
|
37 virtual void Describe(const unsigned char* aData, unsigned int aLength, const void* aOptions, std::ostream& aDescription) const; |
|
38 |
|
39 protected: |
|
40 explicit CStructIdentifier(TIdentifierType aType, const char* aName) |
|
41 : CIdentifierBase(aType, aName) |
|
42 { |
|
43 } |
|
44 |
|
45 public: |
|
46 std::vector<TMember*> iMembers; |
|
47 }; |
|
48 |
|
49 } // namespace Parser |
|
50 |
|
51 #endif |
|
52 // STRUCTIDENTIFIER_H |
|
53 |