インテル® C++ コンパイラー 14.0 ユーザー・リファレンス・ガイド
このトピックは、Microsoft* Visual Studio* 2008 のみを対象としています。
ここでは、インテル® C++ コンパイラーで提供されるオートメーション・インターフェイスについて簡単に説明します。オートメーション・インターフェイスは、プログラミング可能なオブジェクトで、基本となる IDE コンポーネントやプロジェクトにアクセスするために使用されます。経験豊富な開発者に、一般的な作業を自動化する手段や、IDE および IDE 内で使用される C++ プロジェクトを細かく制御する手段を提供します。
Visual Studio* の [Object Browser (オブジェクト ブラウザ)] ([View (表示)] > [Object Browser (オブジェクト ブラウザ)]) を使用して、オブジェクトと関連プロパティーを参照することができます。 ブラウザーで [Browse (参照)] > [Edit Custom Component Set (カスタム コンポーネント セットの編集)] > [.NET] > [Microsoft.VisualStudio.ICProjectEngine] を開きます。
ここにリストされているオブジェクトは、オートメーション・オブジェクトおよび Visual Studio* オブジェクト・モデルの使用に慣れた開発者を対象に提供される高度な機能です。
オブジェクト |
説明 |
|---|---|
ICBscMakeTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスの [Browse Information (ブラウザー情報)] プロパティーにプログラムコードからアクセスします。 |
IntelSettings |
各プラットフォームで現在選択されているコンパイラーの情報をプログラムコードから取得するための機能や、各プラットフォームのコンパイラーを選択するための機能が含まれています。[Tools (ツール)] > [Options (オプション)] > [Intel® C++ (インテル® C++)] > [Compilers (コンパイラー)] で指定されている設定にプログラムコードからアクセスします。 |
IntelCompiler |
コンパイラーの実行可能ファイルパス、インクルード・パス、ライブラリー・パス、規定値、ドキュメント・パスなどのオプションをプログラムコードから取得、設定するための機能が含まれています。[Tools (ツール)] > [Options (オプション)] > [Intel® C++ (インテル® C++)] > [Compilers (コンパイラー)] で指定されている設定にプログラムコードからアクセスします。 |
ProjectConversions |
プロジェクトでインテル® C++ コンパイラーまたは Microsoft* Visual C++* コンパイラーを使用するように、プログラムコードから変更するための機能が含まれています。 |
ICCollection |
コレクション・オブジェクトで実行できる機能が含まれています。 |
ICConfiguration |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスの [General (全般)] プロパティーにプログラムコードからアクセスします。このオブジェクトでは、この設定をビルドするのに使用されるツールにもアクセスできます。 |
ICCustomBuildTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスの [Custom Build Step (カスタム ビルド ステップ)] プロパティーにプログラムコードからにアクセスします。 |
ICDebugSettings |
ユーザーが [Debug (デバッグ)] プロパティーの設定をプログラムコードから操作することができるプロパティーが含まれています。 |
ICFile |
アクティブなプロジェクトのファイルで行える操作を示します。 |
ICFileConfiguration |
構成用にファイルに関連付けられたツールの情報など、ファイル (ICFile オブジェクト) についてのビルド情報が含まれます。 |
ICFilter |
[Solution Explorer (ソリューション エクスプローラ)] にあるインテル® C++ プロジェクトのフォルダーに含まれる機能を公開します。 |
CppCompilerTool |
ICL ツールの機能を公開します。 |
ICLibrarianTool |
LIB ツールの機能を公開します。 |
ICLinkerTool |
LINK ツールの機能を公開します。 |
ICManifestTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスの [Manifest Tool (マニフェスト ツール)] プロパティーにプログラムコードからアクセスします。 |
ICMidlTool |
プロジェクトの [プロパティ ページ] ダイアログボックスの [MIDL] プロパティーにプログラムコードからアクセスします。 |
ICPlatform |
サポートされているプラットフォームに関連したプロパティーへのアクセスを提供します。 |
ICPreBuildEventTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスにある [Build Events (ビルドイベント)] の [Pre-Build Event (ビルド前のイベント)] プロパティーにプログラムコードからアクセスします。 |
ICPreLinkEventTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスにある [Build Events (ビルドイベント)] の [PreLink Event (リンク前のイベント)] プロパティーにプログラムコードからアクセスします。 |
ICPostBuildEventTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスにある [Build Events (ビルドイベント)] の [Post-Build Event (ビルド後のイベント)] プロパティーにプログラムコードからアクセスします。 |
ICProject |
インテル® C++ プロジェクトのプロパティーを公開します。 |
ICResourceCompilerTool |
プロジェクトの [Property Pages (プロパティ ページ)] ダイアログボックスの [Resources (リソース)] プロパティーにプログラムコードからアクセスします。 |
Visual Basic* で記述されている次の例では、オートメーション・オブジェクトを使用して Visual Studio* IDE の [Configuration Manager (構成マネージャ)] で利用可能なプラットフォームとバージョンのリストを変更する方法を示しています。
I Open project:
Import EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualStudio.ICProjectEngine
Public Module Module1
Sub Test()
Dim str1, str2 As String
Dim prj As Project
Dim ic_prj As ICProject
' Get a project in the integrated development environment
prj = DTE.Solution.Projects.Item(2)
' Get a object exposing the properties on a Intel C++ project
ic_prj = prj.Object
' Get the name of the project
str1 = ic_prj.Name
' Get the project directory
str2 = ic_prj.ProjectDirectory
End Sub
End Module
II Open configuration:
Imports EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualStudio.ICProjectEngine
Public Module Module1
Sub Test()
Dim str As String
Dim prj As Project
Dim ic_prj As ICProject
Dim ic_cfg As ICConfiguration
' Get a project in the integrated development environment
prj = DTE.Solution.Projects.Item(2)
' Get a object exposing the properties on a Intel C++ project
ic_prj = prj.Object
' Get the first configuration
ic_cfg = ic_prj.Configurations.Item(1)
' Get the name of the first configuration
str = ic_cfg.Name
End Sub
End Module
III Open configuration tool:
Imports EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualStudio.ICProjectEngine
Public Module Module1
Sub Test()
Dim str As String
Dim prj As Project
Dim ic_prj As ICProject
Dim ic_col As ICCollection
Dim ic_cfg As ICConfiguration
Dim tool As CppCompilerTool
' Get a project in the integrated development environment
prj = DTE.Solution.Projects.Item(2)
' Get a object exposing the properties on a Intel C++ project
ic_prj = prj.Object
' Get the collection of configurations on the project
ic_col = ic_prj.Configurations
' Get the first item of the collection
ic_cfg = ic_col.Item(1)
' Get compiler option managing tool
tool = ic_cfg.tools.Item("CppCmplrTool")
' Set assembler output option
tool.AssemblerOutput = asmListingOption.asmListingAsmSrc
End Sub
End Module