|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include "CdlCompilerToolkit/CdlTkInstance.h" |
|
18 using namespace std; |
|
19 |
|
20 namespace CdlCompilerToolkit { |
|
21 |
|
22 CCdlTkDll::CCdlTkDll() |
|
23 : iUid(0), iVersion(1) |
|
24 { |
|
25 } |
|
26 |
|
27 CCdlTkDll::~CCdlTkDll() |
|
28 { |
|
29 } |
|
30 |
|
31 void CCdlTkDll::AddInstance(const CCdlTkInstance& aInstance) |
|
32 { |
|
33 AddInstance(aInstance.Name()); |
|
34 } |
|
35 |
|
36 void CCdlTkDll::AddInstance(const string& aInstanceName) |
|
37 { |
|
38 if (iUniqueInstances.find(aInstanceName) == iUniqueInstances.end()) |
|
39 { |
|
40 iUniqueInstances.insert(aInstanceName); |
|
41 iInstances.push_back(aInstanceName); |
|
42 } |
|
43 } |
|
44 |
|
45 const CCdlTkDll::CInstances& CCdlTkDll::Instances() const |
|
46 { |
|
47 return iInstances; |
|
48 } |
|
49 |
|
50 void CCdlTkDll::SetName(const string& aName) |
|
51 { |
|
52 iName = aName; |
|
53 } |
|
54 |
|
55 const string& CCdlTkDll::Name() const |
|
56 { |
|
57 return iName; |
|
58 } |
|
59 |
|
60 void CCdlTkDll::SetUid(int aUid) |
|
61 { |
|
62 iUid = aUid; |
|
63 } |
|
64 |
|
65 int CCdlTkDll::Uid() const |
|
66 { |
|
67 return iUid; |
|
68 } |
|
69 |
|
70 void CCdlTkDll::SetVersion(int aVersion) |
|
71 { |
|
72 iVersion = aVersion; |
|
73 } |
|
74 |
|
75 int CCdlTkDll::Version() const |
|
76 { |
|
77 return iVersion; |
|
78 } |
|
79 |
|
80 void CCdlTkDll::AddLibrary(const string& aLibName) |
|
81 { |
|
82 iLibraries.push_back(aLibName); |
|
83 } |
|
84 |
|
85 const CCdlTkDll::CLibraries& CCdlTkDll::Libraries() const |
|
86 { |
|
87 return iLibraries; |
|
88 } |
|
89 |
|
90 CCdlTkDll::CLibraries& CCdlTkDll::Libraries() |
|
91 { |
|
92 return iLibraries; |
|
93 } |
|
94 |
|
95 void CCdlTkDll::SetExtraMmp(const std::string& aExtraMmp) |
|
96 { |
|
97 iExtraMmp = aExtraMmp; |
|
98 } |
|
99 |
|
100 const std::string& CCdlTkDll::ExtraMmp() const |
|
101 { |
|
102 return iExtraMmp; |
|
103 } |
|
104 |
|
105 |
|
106 } // end of namespace CdlCompilerToolkit |