Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Hoffman
CMake
Commits
6eee2463
Commit
6eee2463
authored
Jun 10, 2016
by
Tobias Hunger
Committed by
Brad King
Jun 10, 2016
Browse files
cmCacheEntry: Retrieve all properties of cache entries
parent
120899c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmCacheManager.cxx
View file @
6eee2463
...
...
@@ -539,6 +539,11 @@ void cmCacheManager::CacheIterator::Next()
}
}
std
::
vector
<
std
::
string
>
cmCacheManager
::
CacheIterator
::
GetPropertyList
()
const
{
return
this
->
GetEntry
().
GetPropertyList
();
}
void
cmCacheManager
::
CacheIterator
::
SetValue
(
const
char
*
value
)
{
if
(
this
->
IsAtEnd
())
{
...
...
@@ -558,6 +563,11 @@ bool cmCacheManager::CacheIterator::GetValueAsBool() const
return
cmSystemTools
::
IsOn
(
this
->
GetEntry
().
Value
.
c_str
());
}
std
::
vector
<
std
::
string
>
cmCacheManager
::
CacheEntry
::
GetPropertyList
()
const
{
return
this
->
Properties
.
GetPropertyList
();
}
const
char
*
cmCacheManager
::
CacheEntry
::
GetProperty
(
const
std
::
string
&
prop
)
const
{
...
...
Source/cmCacheManager.h
View file @
6eee2463
...
...
@@ -38,6 +38,7 @@ private:
std
::
string
Value
;
cmState
::
CacheEntryType
Type
;
cmPropertyMap
Properties
;
std
::
vector
<
std
::
string
>
GetPropertyList
()
const
;
const
char
*
GetProperty
(
const
std
::
string
&
)
const
;
void
SetProperty
(
const
std
::
string
&
property
,
const
char
*
value
);
void
AppendProperty
(
const
std
::
string
&
property
,
const
char
*
value
,
...
...
@@ -60,6 +61,7 @@ public:
bool
IsAtEnd
()
const
;
void
Next
();
std
::
string
GetName
()
const
{
return
this
->
Position
->
first
;
}
std
::
vector
<
std
::
string
>
GetPropertyList
()
const
;
const
char
*
GetProperty
(
const
std
::
string
&
)
const
;
bool
GetPropertyAsBool
(
const
std
::
string
&
)
const
;
bool
PropertyExists
(
const
std
::
string
&
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment