| 1 | // |
| 2 | // Copyright (c) Microsoft. All rights reserved. |
| 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | |
| 6 | //---------------------------------------------------------- |
| 7 | // MCList.h - MethodContext List utility class |
| 8 | //---------------------------------------------------------- |
| 9 | #ifndef _MCList |
| 10 | #define _MCList |
| 11 | #define MAXMCLFILESIZE 0xFFFFFF |
| 12 | |
| 13 | class MCList |
| 14 | { |
| 15 | public: |
| 16 | static bool processArgAsMCL(char* input, int* count, int** list); |
| 17 | |
| 18 | MCList() |
| 19 | { |
| 20 | // Initialize the static file handle |
| 21 | hMCLFile = INVALID_HANDLE_VALUE; |
| 22 | } |
| 23 | |
| 24 | // Methods to create an MCL file |
| 25 | void InitializeMCL(char* filename); |
| 26 | void AddMethodToMCL(int methodIndex); |
| 27 | void CloseMCL(); |
| 28 | |
| 29 | private: |
| 30 | static bool getLineData(const char* nameOfInput, /* OUT */ int* pIndexCount, /* OUT */ int** pIndexes); |
| 31 | |
| 32 | // File handle for MCL file |
| 33 | HANDLE hMCLFile; |
| 34 | }; |
| 35 | #endif |
| 36 | |