~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Source/cmSourceFile.h

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmSourceFile.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2005/04/13 20:35:26 $
7
 
  Version:   $Revision: 1.14 $
 
6
  Date:      $Date: 2006/05/14 19:22:43 $
 
7
  Version:   $Revision: 1.15.2.2 $
8
8
 
9
9
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
34
34
   */
35
35
  cmSourceFile()
36
36
    {
37
 
      m_CustomCommand = 0;
 
37
      this->CustomCommand = 0;
38
38
    }
39
39
  ~cmSourceFile()
40
40
    {
46
46
   * in.  The various extensions provided are tried on the name
47
47
   * (e.g., cxx, cpp) in the directory to find the actual file.
48
48
   */
49
 
  void SetName(const char* name, const char* dir,
 
49
  bool SetName(const char* name, const char* dir,
50
50
               const std::vector<std::string>& sourceExts,
51
 
               const std::vector<std::string>& headerExts);
 
51
               const std::vector<std::string>& headerExts,
 
52
               const char* target = 0);
52
53
 
53
54
  /**
54
55
   * Get the list of the custom commands for this source file
55
56
   */
56
57
  const cmCustomCommand *GetCustomCommand() const 
57
 
    {return m_CustomCommand;}
58
 
  cmCustomCommand *GetCustomCommand() {return m_CustomCommand;}
 
58
    {return this->CustomCommand;}
 
59
  cmCustomCommand *GetCustomCommand() {return this->CustomCommand;}
59
60
  void SetCustomCommand(cmCustomCommand *cc);
60
61
    
61
62
  /**
79
80
  /**
80
81
   * The full path to the file.
81
82
   */
82
 
  const std::string &GetFullPath() const {return m_FullPath;}
83
 
  void SetFullPath(const char *name) {m_FullPath = name;}
 
83
  const std::string &GetFullPath() const {return this->FullPath;}
 
84
  void SetFullPath(const char *name) {this->FullPath = name;}
84
85
 
85
86
  /**
86
87
   * The file name associated with stripped off directory and extension.
87
88
   * (In most cases this is the name of the class.)
88
89
   */
89
 
  const std::string &GetSourceName() const {return m_SourceName;}
90
 
  void SetSourceName(const char *name) {m_SourceName = name;}
 
90
  const std::string &GetSourceName() const {return this->SourceName;}
 
91
  void SetSourceName(const char *name) {this->SourceName = name;}
91
92
 
92
93
  /**
93
94
   * The file extension associated with source file
94
95
   */
95
 
  const std::string &GetSourceExtension() const {return m_SourceExtension;}
96
 
  void SetSourceExtension(const char *name) {m_SourceExtension = name;}
 
96
  const std::string &GetSourceExtension() const {
 
97
    return this->SourceExtension;}
 
98
  void SetSourceExtension(const char *name) {this->SourceExtension = name;}
97
99
 
98
100
  /**
99
101
   * Return the vector that holds the list of dependencies
100
102
   */
101
 
  const std::vector<std::string> &GetDepends() const {return m_Depends;}
102
 
  std::vector<std::string> &GetDepends() {return m_Depends;}
 
103
  const std::vector<std::string> &GetDepends() const {return this->Depends;}
 
104
  std::vector<std::string> &GetDepends() {return this->Depends;}
103
105
 
104
106
  /**
105
107
   * Get the source name without last extension
107
109
  const std::string& GetSourceNameWithoutLastExtension();
108
110
 
109
111
private:
110
 
  std::map<cmStdString,cmStdString> m_Properties;
111
 
  cmCustomCommand *m_CustomCommand;
112
 
  std::string m_FullPath;
113
 
  std::string m_SourceName;
114
 
  std::string m_SourceExtension;
115
 
  std::vector<std::string> m_Depends;
116
 
  std::string m_SourceNameWithoutLastExtension;
 
112
  std::map<cmStdString,cmStdString> Properties;
 
113
  cmCustomCommand *CustomCommand;
 
114
  std::string FullPath;
 
115
  std::string SourceName;
 
116
  std::string SourceExtension;
 
117
  std::vector<std::string> Depends;
 
118
  std::string SourceNameWithoutLastExtension;
117
119
};
118
120
 
119
121
#endif