|
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: Converts Universal Emulator Interface (UEI) arguments to |
|
15 * JVM arguments |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef UEIARGSPARSER_H |
|
21 #define UEIARGSPARSER_H |
|
22 |
|
23 #include <string> |
|
24 #include <vector> |
|
25 #include "javaosheaders.h" |
|
26 |
|
27 namespace java |
|
28 { |
|
29 namespace runtime |
|
30 { |
|
31 |
|
32 OS_NONSHARABLE_CLASS(UeiArgsParser) |
|
33 { |
|
34 public: |
|
35 UeiArgsParser() {}; |
|
36 virtual ~UeiArgsParser() {}; |
|
37 |
|
38 std::wstring convertUeiArgsToJvmArgs(const std::wstring& aUeiParameters); |
|
39 |
|
40 protected: |
|
41 // protected so that unit tests can access these functions |
|
42 std::vector<std::wstring> getArgs(const std::wstring& aUeiParameters); |
|
43 |
|
44 bool isVerbose(const std::wstring& aUeiArg); |
|
45 bool isRundjwp(const std::wstring& aUeiArg); |
|
46 |
|
47 std::wstring convertVerbose(const std::wstring& aVerbose); |
|
48 std::wstring convertRundjwp(const std::wstring& aRunjdwp); |
|
49 |
|
50 bool hasOption(const std::wstring& aArg, const std::wstring& aOption); |
|
51 std::wstring trimTrailingSpaces(std::wstring& aString, const std::wstring& aWhitespaces); |
|
52 }; |
|
53 |
|
54 } // end namespace runtime |
|
55 } // end namespace java |
|
56 |
|
57 |
|
58 #endif // UEIARGSPARSER_H |