1 #ifndef VERSION_STRUCTURE_GROUP
2 #define VERSION_STRUCTURE_GROUP
53 version(
int major,
int minor,
int rev = 0,
int build = 0);
68 bool equal_to(
const equalizable &to_test)
const;
73 bool less_than(
const orderable &to_test)
const;
Provides a dynamically resizable ASCII character string.
A very common template for a dynamic array of bytes.
A base for objects that can be alphabetically (lexicographically) ordered.
A base class for objects that can pack into an array of bytes.
An array of strings with some additional helpful methods.
Holds all information about a file's versioning.
basis::astring product_name
DEFINE_CLASS_NAME("version_record")
basis::astring text_form() const
basis::astring company_name
basis::astring description
basis::astring original_name
basis::astring web_address
basis::astring trademarks
virtual ~version_record()
basis::astring internal_name
Holds a file's version identifier.
virtual basis::astring text_form() const
virtual void pack(basis::byte_array &target) const
Creates a packed form of the packable object in "packed_form".
static version from_text(const basis::astring &to_convert)
returns a version structure parsed from "to_convert".
basis::astring get_component(int index) const
returns the component at the specified index.
int components() const
reports the number of components that make up this version.
virtual int packed_size() const
Estimates the space needed for the packed structure.
void set_component(int index, const basis::astring &to_set)
sets the component at "index" to "to_set".
static void * __global_module_handle()
a static resource required to identify the actual win32 module that this lives in.
bool bogus() const
returns true if the version held here is clearly bogus.
bool equal_to(const equalizable &to_test) const
compares two versions for exact equality.
bool less_than(const orderable &to_test) const
reports if this version is less than "to_test".
int v_minor() const
minor version number.
int v_major() const
major version number.
int v_build() const
build number.
int v_revision() const
revision level.
bool compatible(const version &that) const
returns true if this is compatible with "that" version on win32.
version()
constructs a blank version.
version & operator=(const version &to_copy)
assigns this to the "to_copy".
virtual bool unpack(basis::byte_array &source)
Restores the packable from the "packed_form".
basis::astring flex_text_form(version_style style=DOTS, int including=-1) const
returns a textual form of the version number.
DEFINE_CLASS_NAME("version")
A dynamic container class that holds any kind of object via pointers.