![]() |
NDEVR
API Documentation
|
Increments the version number in a module's header file, supporting major, minor, and patch version bumps. More...
Public Member Functions | |
| String | fileName () const |
| Returns the file name of the module header containing the version. | |
| String | incrementString (const String &line) const |
| Processes a single line and increments the version number if found. | |
| bool | incrementVersion () const |
| Increments the version in the default module header file. | |
| bool | incrementVersion (File &file) const |
| Increments the version in the specified file. | |
Public Attributes | |
| bool | increment_major = false |
| Whether to increment the major version number. | |
| bool | increment_minor = false |
| Whether to increment the minor version number. | |
| LogPtr | log = nullptr |
| Log for status messages. | |
| String | project_name |
| The module project name whose version is incremented. | |
| File | source_directory |
| The root source directory containing the module. | |
Increments the version number in a module's header file, supporting major, minor, and patch version bumps.
Definition at line 11 of file IncrementVersion.h.
| String IncrementVersion::fileName | ( | ) | const |
Returns the file name of the module header containing the version.
Processes a single line and increments the version number if found.
| [in] | line | The line to process. |
| bool IncrementVersion::incrementVersion | ( | ) | const |
Increments the version in the default module header file.
| bool IncrementVersion::incrementVersion | ( | File & | file | ) | const |
Increments the version in the specified file.
| [in] | file | The file to modify. |