Example
The following example illustrates the metadata for an item template for a C++ class that creates a header
file (.h) and implementation file (.cpp).
<?xml version="1.0" ?>
<!DOCTYPE SETemplate SYSTEM
"http://www.slickedit.com/dtd/vse/setemplate/1.0/setemplate.dtd">
<SETemplate Version="1.0" Type="Item">
<TemplateDetails>
<Name>My C++ Class</Name>
<Description>My complete C++ class header and implementation</Description>
<DefaultName>MyClass.cpp</DefaultName>
</TemplateDetails>
<TemplateContent>
<Files>
<File TargetFilename="$fileinputname$.cpp">MyClass.cpp</File>
<File TargetFilename="$fileinputname$.h">MyClass.h</File>
</Files>
</TemplateContent>
</SETemplate>
Files
Files is a required child element of TemplateContent. Specifies files for the template item. See the ex-
ample below.
• Attributes - None.
• Child elements - File.
• Parent elements - TemplateContent.
• Value - N/A.
Example
The following example illustrates the metadata for an item template for a C++ class that creates a header
file (.h) and implementation file (.cpp).
<?xml version="1.0" ?>
<!DOCTYPE SETemplate SYSTEM
"http://www.slickedit.com/dtd/vse/setemplate/1.0/setemplate.dtd">
<SETemplate Version="1.0" Type="Item">
<TemplateDetails>
<Name>My C++ Class</Name>
Code Template Metadata File
Reference
119