NDEVR
API Documentation
IncrementVersion.h
1#pragma once
2#include "BoilerMaker.h"
3#include <NDEVR/String.h>
4#include <NDEVR/File.h>
5#include <NDEVR/InfoPipe.h>
6#include <NDEVR/LogMessage.h>
7namespace NDEVR
8{
12 {
13 public:
16 LogPtr log = nullptr;
17 bool increment_major = false;
18 bool increment_minor = false;
19 public:
26 String incrementString(const String& line) const;
33 bool incrementVersion() const;
34 };
35}
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
Increments the version number in a module's header file, supporting major, minor, and patch version b...
bool incrementVersion(File &file) const
Increments the version in the specified file.
bool increment_minor
Whether to increment the minor version number.
String project_name
The module project name whose version is incremented.
String incrementString(const String &line) const
Processes a single line and increments the version number if found.
LogPtr log
Log for status messages.
String fileName() const
Returns the file name of the module header containing the version.
File source_directory
The root source directory containing the module.
bool increment_major
Whether to increment the major version number.
bool incrementVersion() const
Increments the version in the default module header file.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
@ file
The source file path associated with this object.