Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmCallVisualStudioMacro.h
blobaf26431639b9bedec41f5f9eaf5694889cce2410
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCallVisualStudioMacro.h,v $
5 Language: C++
6 <<<<<<< cmCallVisualStudioMacro.h
7 Date: $Date: 2007/11/16 12:01:58 $
8 Version: $Revision: 1.1 $
9 =======
10 Date: $Date: 2008-07-30 19:26:34 $
11 Version: $Revision: 1.2 $
12 >>>>>>> 1.2
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmCallVisualStudioMacro_h
23 #define cmCallVisualStudioMacro_h
25 #include "cmStandardIncludes.h"
27 /** \class cmCallVisualStudioMacro
28 * \brief Control class for communicating with CMake's Visual Studio macros
30 * Find running instances of Visual Studio by full path solution name.
31 * Call a Visual Studio IDE macro in any of those instances.
33 class cmCallVisualStudioMacro
35 public:
36 ///! Call the named macro in instances of Visual Studio with the
37 ///! given solution file open. Pass "ALL" for slnFile to call the
38 ///! macro in each Visual Studio instance.
39 static int CallMacro(const std::string& slnFile,
40 const std::string& macro,
41 const std::string& args,
42 const bool logErrorsAsMessages);
44 ///! Count the number of running instances of Visual Studio with the
45 ///! given solution file open. Pass "ALL" for slnFile to count all
46 ///! running Visual Studio instances.
47 static int GetNumberOfRunningVisualStudioInstances(
48 const std::string& slnFile);
50 protected:
52 private:
55 #endif