Changeset 0c0b2d4 in rtems-tools for rtemstoolkit/rld.h


Ignore:
Timestamp:
Apr 3, 2016, 5:37:01 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, master
Children:
2e97351
Parents:
dfa2468
Message:

rtemstoolkit: Add version number parsing to get major, minor, revision.

Add support to return the major, minor or revision numbers as numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/rld.h

    rdfa2468 r0c0b2d4  
    3030#include <functional>
    3131#include <iostream>
     32#include <list>
    3233#include <locale>
    3334#include <sstream>
     
    6465    class archive;
    6566    class object;
     67    class cache;
     68    typedef std::list < object* > object_list;
    6669  }
    6770}
     
    180183
    181184  /**
     185   * Parse version string of format major.minor.revision where revieion can be
     186   * a git hash.
     187   */
     188  void version_parse (const std::string& str,
     189                      uint64_t&          major,
     190                      uint64_t&          minor,
     191                      uint64_t&          revision);
     192
     193  /**
    182194   * Increment the verbose level.
    183195   */
     
    194206   */
    195207  const std::string version ();
     208
     209  /**
     210   * Get the major version number.
     211   */
     212  uint64_t version_major ();
     213
     214  /**
     215   * Get the minor version number.
     216   */
     217  uint64_t version_minor ();
     218
     219  /**
     220   * Get the revision version number.
     221   */
     222  uint64_t version_revision ();
    196223
    197224  /**
Note: See TracChangeset for help on using the changeset viewer.