public class CMakeCacheFileParser extends Object
CMakeCache.txt). This
implementation extracts only key-value-pairs corresponding to an entry. It
does not extract any help texts nor entry types.| Modifier and Type | Class and Description |
|---|---|
static interface |
CMakeCacheFileParser.EntryFilter
A filter for CMake cache file entry keys.
|
| Constructor and Description |
|---|
CMakeCacheFileParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
parse(Reader isr,
CMakeCacheFileParser.EntryFilter filter,
Collection<SimpleCMakeCacheEntry> parsedEntries,
List<String> errorLog)
Parses the content of the specified input stream as a CMake cache file
content.
|
public boolean parse(Reader isr, CMakeCacheFileParser.EntryFilter filter, Collection<SimpleCMakeCacheEntry> parsedEntries, List<String> errorLog) throws IOException
isr - the reader that serves the content of the CMake cache filefilter - an optional filter for CMake cache file entries or
null if all entries are of interestparsedEntries - receives the parsed cache file entries. Specify null,
if you want to verify the correct syntax of the cache file
only. Specify an instance of List, if you expect
multiple cache entires of the same key int the file. Normally,
you would specify an instance of Set here.errorLog - receives messages concerning parse errors. Specify
null, if you are not interested in error messages.true if the file could be parsed without errors,
otherwise falseIOException - if an operation on the input stream failedCopyright © 2016–2021. All rights reserved.