-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeGeneratorCpp.cs
More file actions
34 lines (28 loc) · 1.01 KB
/
CodeGeneratorCpp.cs
File metadata and controls
34 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using EnvDTE;
using System;
using System.Collections.Generic;
using System.Text;
namespace CodeNavigator
{
class CodeGeneratorCpp : CodeGenerator
{
public CodeGeneratorCpp()
{
//add cpp first to execute it before the h, which is the window
//that stays active after execution; otherwise the editor would
//flicker a bit while switching active windows
CodeTemplate classImpl = AddCodeTemplate("class.cpp");
CodeTemplate classDecl = AddCodeTemplate("class.h");
/*
classDecl.AddCodeTemplate("ctor_decl.h");
classDecl.AddCodeTemplate("dtor_decl.h");
classImpl.AddCodeTemplate("ctor_impl.cpp");
classImpl.AddCodeTemplate("dtor_impl.cpp");*/
_codeTemplateClassDef = new CodeTemplate("classDef.h");
}
internal override CodeItem CreateCodeItem(ProjectItem srcItem)
{
return CodeItemCpp.Create(srcItem);
}
}
} //namespace CodeNavigator