1 //===-- MICmdCmdThread.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 // File: MICmdCmdThread.h
13 // Overview: CMICmdCmdThreadInfo interface.
15 // To implement new MI commands derive a new command class from the command base
16 // class. To enable the new command for interpretation add the new command class
17 // to the command factory. The files of relevance are:
21 // For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery
22 // command class as an example.
24 // Environment: Compilers: Visual C++ 12.
25 // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
26 // Libraries: See MIReadmetxt.
34 #include "MICmdBase.h"
35 #include "MICmnMIValueTuple.h"
36 #include "MICmnMIValueList.h"
38 //++ ============================================================================
39 // Details: MI command class. MI commands derived from the command base class.
40 // *this class implements MI command "thread-info".
42 // Authors: Illya Rudkin 07/03/2014.
45 class CMICmdCmdThreadInfo : public CMICmdBase
49 // Required by the CMICmdFactory when registering *this command
50 static CMICmdBase * CreateSelf( void );
54 /* ctor */ CMICmdCmdThreadInfo( void );
58 // From CMICmdInvoker::ICmd
59 virtual bool Execute( void );
60 virtual bool Acknowledge( void );
61 virtual bool ParseArgs( void );
63 /* dtor */ virtual ~CMICmdCmdThreadInfo( void );
67 typedef std::vector< CMICmnMIValueTuple > VecMIValueTuple_t;
71 CMICmnMIValueTuple m_miValueTupleThread;
72 bool m_bSingleThread; // True = yes single thread, false = multiple threads
73 bool m_bThreadInvalid; // True = invalid, false = ok
74 VecMIValueTuple_t m_vecMIValueTuple;
75 const CMIUtilString m_constStrArgNamedThreadId;