summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi-shared/mclist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/mclist.h')
-rw-r--r--src/ToolBox/superpmi/superpmi-shared/mclist.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/mclist.h b/src/ToolBox/superpmi/superpmi-shared/mclist.h
new file mode 100644
index 0000000000..93b2879569
--- /dev/null
+++ b/src/ToolBox/superpmi/superpmi-shared/mclist.h
@@ -0,0 +1,35 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+//----------------------------------------------------------
+// MCList.h - MethodContext List utility class
+//----------------------------------------------------------
+#ifndef _MCList
+#define _MCList
+#define MAXMCLFILESIZE 0xFFFFFF
+
+class MCList
+{
+public:
+ static bool processArgAsMCL(char *input, int *count, int **list);
+
+ MCList()
+ {
+ //Initialize the static file handle
+ hMCLFile = INVALID_HANDLE_VALUE;
+ }
+
+ //Methods to create an MCL file
+ void InitializeMCL(char *filename);
+ void AddMethodToMCL(int methodIndex);
+ void CloseMCL();
+
+private:
+ static bool getLineData(const char *nameOfInput, /* OUT */ int *pIndexCount, /* OUT */ int **pIndexes);
+
+ //File handle for MCL file
+ HANDLE hMCLFile;
+};
+#endif