2001-02-28 00:28:56 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: Insight Segmentation & Registration Toolkit
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000 National Library of Medicine
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
See COPYRIGHT.txt for copyright details.
|
|
|
|
|
|
|
|
=========================================================================*/
|
2001-02-28 17:34:01 +03:00
|
|
|
#ifndef cmCableInstantiateClassCommand_h
|
|
|
|
#define cmCableInstantiateClassCommand_h
|
2001-02-28 00:28:56 +03:00
|
|
|
|
|
|
|
#include "cmStandardIncludes.h"
|
2001-03-02 00:47:05 +03:00
|
|
|
#include "cmCablePackageEntryCommand.h"
|
2001-02-28 00:28:56 +03:00
|
|
|
|
2001-02-28 17:34:01 +03:00
|
|
|
/** \class cmCableInstantiateClassCommand
|
2001-02-28 00:28:56 +03:00
|
|
|
* \brief Define a command that generates a rule for explicit template
|
|
|
|
* instantiations of classes.
|
|
|
|
*
|
2001-02-28 17:34:01 +03:00
|
|
|
* cmCableInstantiateCommand is used to generate a rule in a CABLE
|
2001-02-28 00:28:56 +03:00
|
|
|
* configuration file to create explicit template instantiations of
|
|
|
|
* classes.
|
|
|
|
*/
|
2001-03-02 00:47:05 +03:00
|
|
|
class cmCableInstantiateClassCommand : public cmCablePackageEntryCommand
|
2001-02-28 00:28:56 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
|
|
|
virtual cmCommand* Clone()
|
|
|
|
{
|
2001-02-28 17:34:01 +03:00
|
|
|
return new cmCableInstantiateClassCommand;
|
2001-02-28 00:28:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2001-02-28 17:34:01 +03:00
|
|
|
virtual const char* GetName() { return "CABLE_INSTANTIATE_CLASS";}
|
2001-02-28 00:28:56 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetTerseDocumentation()
|
|
|
|
{
|
2001-03-02 00:47:05 +03:00
|
|
|
return "Define CABLE InstantiationSet of classes in a package.";
|
2001-02-28 00:28:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* More documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetFullDocumentation()
|
|
|
|
{
|
|
|
|
return
|
2001-03-02 00:47:05 +03:00
|
|
|
"CABLE_INSTANTIATE_CLASS(package_name member1 member2 ...)\n"
|
2001-02-28 17:34:01 +03:00
|
|
|
"Generates an InstantiationSet in the CABLE configuration. It is\n"
|
2001-02-28 00:28:56 +03:00
|
|
|
"assumed that all members of the set are explicit instantiations of\n"
|
|
|
|
"template classes (not functions, operators, etc).";
|
|
|
|
}
|
|
|
|
|
2001-03-02 00:47:05 +03:00
|
|
|
virtual void WriteConfiguration() const;
|
2001-02-28 00:28:56 +03:00
|
|
|
|
2001-02-28 17:34:01 +03:00
|
|
|
cmTypeMacro(cmCableInstantiateClassCommand, cmCableInstantiateCommand);
|
2001-02-28 00:28:56 +03:00
|
|
|
protected:
|
2001-03-02 00:47:05 +03:00
|
|
|
typedef cmCablePackageEntryCommand::Entries Entries;
|
2001-02-28 00:28:56 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|