cleaned up the coding style made ivars private etc

This commit is contained in:
Ken Martin
2001-04-19 13:28:46 -04:00
parent 57c4325c7d
commit 24bce99cbf
10 changed files with 92 additions and 37 deletions

View File

@@ -28,9 +28,29 @@
class cmTarget
{
public:
/**
* is this target a library?
*/
bool IsALibrary() const { return m_IsALibrary; }
bool GetIsALibrary() const { return m_IsALibrary; }
void SetIsALibrary(bool f) { m_IsALibrary = f; }
/**
* Get the list of the custom commands for this target
*/
const std::vector<cmCustomCommand> &GetCustomCommands() const {return m_CustomCommands;}
std::vector<cmCustomCommand> &GetCustomCommands() {return m_CustomCommands;}
/**
* Get the list of the source lists used by this target
*/
const std::vector<std::string> &GetSourceLists() const {return m_SourceLists;}
std::vector<std::string> &GetSourceLists() {return m_SourceLists;}
private:
std::vector<cmCustomCommand> m_CustomCommands;
bool m_IsALibrary;
std::vector<std::string> m_SourceLists;
bool m_IsALibrary;
};
typedef std::map<std::string,cmTarget> cmTargets;