summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-23 07:54:07 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-04 18:44:37 (GMT)
commit1b323949fe6770fa36846a5a85d049121c7ce2c4 (patch)
tree8f2d350e92ef37bf2ea843296bdcd11f550bb518 /Source/cmState.h
parent91cd014d6452371056bb3f96de29967f506b3bd7 (diff)
downloadCMake-1b323949fe6770fa36846a5a85d049121c7ce2c4.zip
CMake-1b323949fe6770fa36846a5a85d049121c7ce2c4.tar.gz
CMake-1b323949fe6770fa36846a5a85d049121c7ce2c4.tar.bz2
cmState: Extend Snapshot concept with a SnapshotType.
Store it together with the Parent position.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 60b024f..024c9a9 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -21,12 +21,18 @@ class cmCommand;
class cmState
{
+ struct SnapshotDataType;
typedef std::vector<std::string>::size_type PositionType;
friend class Snapshot;
public:
cmState(cmake* cm);
~cmState();
+ enum SnapshotType
+ {
+ BuildsystemDirectoryType
+ };
+
class Snapshot {
public:
Snapshot(cmState* state = 0, PositionType position = 0);
@@ -160,7 +166,7 @@ private:
cmake* CMakeInstance;
std::vector<std::string> Locations;
std::vector<std::string> OutputLocations;
- std::vector<PositionType> ParentPositions;
+ std::vector<SnapshotDataType> SnapshotData;
std::vector<std::vector<std::string> > CurrentSourceDirectoryComponents;
std::vector<std::vector<std::string> > CurrentBinaryDirectoryComponents;