summaryrefslogtreecommitdiffstats
path: root/Source/cmClassFile.h
blob: 307d13c4eaf9683c0b2077c52f2bd2f878a15723 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*=========================================================================

  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
#include "cmStandardIncludes.h"


struct cmClassFile
{
  cmClassFile()
    {
      m_AbstractClass = false;
      m_HeaderFileOnly = false;
    }
  
  /**
   * 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.
   */
  void SetName(const char* name, const char* dir);
  /**
   * print the structure to cout
   */
  void Print();

  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
  std::vector<std::string> m_Depends;
};

#endif