2000-08-29 23:26:29 +04: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.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#ifndef cmClassFile_h
|
|
|
|
#define cmClassFile_h
|
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
#include "cmStandardIncludes.h"
|
2000-08-29 23:26:29 +04:00
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/** \class cmClassFile
|
|
|
|
* \brief Represent a class loaded from a makefile.
|
|
|
|
*
|
|
|
|
* cmClassFile is represents a class loaded from
|
|
|
|
* a makefile.
|
|
|
|
*/
|
|
|
|
class cmClassFile
|
2000-08-29 23:26:29 +04:00
|
|
|
{
|
2001-01-11 22:47:38 +03:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Construct instance as a concrete class with both a
|
|
|
|
* .h and .cxx file.
|
|
|
|
*/
|
2001-01-05 19:41:20 +03:00
|
|
|
cmClassFile()
|
|
|
|
{
|
2001-01-11 22:47:38 +03:00
|
|
|
m_AbstractClass = false;
|
|
|
|
m_HeaderFileOnly = false;
|
2001-02-15 21:30:13 +03:00
|
|
|
m_IsExecutable = false;
|
2001-02-28 00:48:55 +03:00
|
|
|
m_WrapExclude = false;
|
2001-01-05 19:41:20 +03:00
|
|
|
}
|
|
|
|
|
2000-09-12 13:30:35 +04:00
|
|
|
/**
|
|
|
|
* Set the name of the file, given the directory
|
2001-01-11 22:47:38 +03:00
|
|
|
* the file should be in. Various extensions are tried on
|
|
|
|
* the name (e.g., .cxx, .cpp) in the directory to find the actual file.
|
2000-09-12 13:30:35 +04:00
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
void SetName(const char* name, const char* dir);
|
2001-01-11 22:47:38 +03:00
|
|
|
|
2001-02-27 01:15:44 +03:00
|
|
|
/**
|
|
|
|
* Set the name of the file, given the directory the file should be in. IN
|
|
|
|
* this version the extesion is provided in the call. This is useful for
|
|
|
|
* generated files that do not exist prior to the build.
|
|
|
|
*/
|
|
|
|
void SetName(const char* name, const char* dir, const char *ext,
|
|
|
|
bool headerFileOnly);
|
|
|
|
|
2000-09-12 13:30:35 +04:00
|
|
|
/**
|
2001-01-11 22:47:38 +03:00
|
|
|
* Print the structure to std::cout.
|
2000-09-12 13:30:35 +04:00
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
void Print();
|
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* Indicate whether the class is abstract (non-instantiable).
|
|
|
|
*/
|
|
|
|
bool m_AbstractClass;
|
|
|
|
|
2001-02-28 00:48:55 +03:00
|
|
|
/**
|
|
|
|
* Indicate whether the class should not be wrapped
|
|
|
|
*/
|
|
|
|
bool m_WrapExclude;
|
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* Indicate whether this class is defined with only the header file.
|
|
|
|
*/
|
|
|
|
bool m_HeaderFileOnly;
|
|
|
|
|
2001-02-15 21:30:13 +03:00
|
|
|
/**
|
|
|
|
* Indicate whether this class is an executable file
|
|
|
|
*/
|
|
|
|
bool m_IsExecutable;
|
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* The full path to the file.
|
|
|
|
*/
|
|
|
|
std::string m_FullPath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file name associated with stripped off directory and extension.
|
|
|
|
* (In most cases this is the name of the class.)
|
|
|
|
*/
|
|
|
|
std::string m_ClassName;
|
|
|
|
|
2001-02-27 01:15:44 +03:00
|
|
|
/**
|
|
|
|
* The file name associated with stripped off directory and extension.
|
|
|
|
* (In most cases this is the name of the class.)
|
|
|
|
*/
|
|
|
|
std::string m_ClassExtension;
|
|
|
|
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* The dependencies of this class are gathered here.
|
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
std::vector<std::string> m_Depends;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|