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.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
/**
|
|
|
|
* cmClassFile a structure that represents a class loaded from
|
|
|
|
* a makefile.
|
|
|
|
*/
|
|
|
|
#ifndef cmClassFile_h
|
|
|
|
#define cmClassFile_h
|
2001-01-05 19:41:20 +03:00
|
|
|
#include "cmStandardIncludes.h"
|
2000-08-29 23:26:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
struct cmClassFile
|
|
|
|
{
|
2001-01-05 19:41:20 +03:00
|
|
|
cmClassFile()
|
|
|
|
{
|
|
|
|
m_AbstractClass = false;
|
|
|
|
m_HeaderFileOnly = false;
|
|
|
|
}
|
|
|
|
|
2000-09-12 13:30:35 +04:00
|
|
|
/**
|
|
|
|
* Set the name of the file, given the directory
|
|
|
|
* the file should be in. Extensions are tried on
|
|
|
|
* the name in the directory to find the actual file.
|
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
void SetName(const char* name, const char* dir);
|
2000-09-12 13:30:35 +04:00
|
|
|
/**
|
|
|
|
* print the structure to cout
|
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
void Print();
|
|
|
|
|
2000-09-12 13:30:35 +04:00
|
|
|
bool m_AbstractClass; // is this an abstract class
|
|
|
|
bool m_HeaderFileOnly; // is this file only a header file
|
|
|
|
std::string m_FullPath; // full path to the file
|
|
|
|
std::string m_ClassName; // class name
|
|
|
|
// list of files that this file depends on
|
2000-08-29 23:26:29 +04:00
|
|
|
std::vector<std::string> m_Depends;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|