rcs
Class RCS_VERSION

java.lang.Object
  extended by rcs.RCS_VERSION

public class RCS_VERSION
extends java.lang.Object

Class for checking at run-time which version of the RCS Library is being used.

 Related Documentation:
 RCS Library,
 RCS Version Functions

 Source Code:
 RCS_VERSION.java

 


Field Summary
static java.lang.String date_string
          String in which the library was compiled is stored.
static java.lang.String info_string
          String in which a brief message describing the library, it's version and compile date etc.
static java.lang.String version_string
          String in which the version number 2011.08.15_1829 is stored.
 
Constructor Summary
RCS_VERSION()
           
 
Method Summary
static int compare(java.lang.String str_to_compare)
          Compare the version of the library with some other version.
static void main(java.lang.String[] args)
          Running this class as a stand-alone application displays the RCS Library version information and the Java System properties.
static void print()
          Function that prints the info_string to System.out
 java.lang.String toString()
          Function that returns the info_string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version_string

public static final java.lang.String version_string
String in which the version number 2011.08.15_1829 is stored.

See Also:
Constant Field Values

date_string

public static final java.lang.String date_string
String in which the library was compiled is stored.

See Also:
Constant Field Values

info_string

public static final java.lang.String info_string
String in which a brief message describing the library, it's version and compile date etc. is stored.

See Also:
Constant Field Values
Constructor Detail

RCS_VERSION

public RCS_VERSION()
Method Detail

toString

public java.lang.String toString()
Function that returns the info_string.

Overrides:
toString in class java.lang.Object
Returns:
info_string

print

public static void print()
Function that prints the info_string to System.out


main

public static void main(java.lang.String[] args)
Running this class as a stand-alone application displays the RCS Library version information and the Java System properties.

Parameters:
args - NOT used.

compare

public static int compare(java.lang.String str_to_compare)
Compare the version of the library with some other version. If the argument only includes a major version number, the minor version number is ignored.

Parameters:
str_to_compare - A version to compare with the library being used.
Returns:
0 if the versions are match, a negative number if the library is older than the version passed as an argument, or a positive number if the library is newer than the version passed as an argument.