activemq::util::Guid Class Reference

#include <Guid.h>

List of all members.

Public Member Functions

 Guid (void)
 Guid (const Guid &source)
 Guid (const std::string &source) throw ( exceptions::IllegalArgumentException )
virtual ~Guid (void)
bool isNull (void) const
void setNull (void)
GuidcreateGUID (void) throw ( exceptions::RuntimeException )
std::string toString (void) const throw ( exceptions::RuntimeException )
const unsigned char * toBytes (void) const
GuidfromBytes (const unsigned char *bytes) throw ( exceptions::IllegalArgumentException )
int getRawBytesSize (void) const
 operator std::string () const
 operator const unsigned char * () const
Guidoperator= (const Guid &source) throw ( exceptions::IllegalArgumentException )
Guidoperator= (const std::string &source) throw ( exceptions::IllegalArgumentException )
bool operator== (const Guid &source) const
bool operator== (const std::string &source) const
bool operator!= (const Guid &source) const
bool operator!= (const std::string &source) const
bool operator< (const Guid &source) const
bool operator< (const std::string &source) const
bool operator<= (const Guid &source) const
bool operator<= (const std::string &source) const
bool operator> (const Guid &source) const
bool operator> (const std::string &source) const
bool operator>= (const Guid &source) const
bool operator>= (const std::string &source) const

Static Public Member Functions

static std::string createGUIDString (void)
static const unsigned char * createGUIDBytes (void)

Private Attributes

::GUID uuid


Constructor & Destructor Documentation

Guid::Guid void   ) 
 

Guid::Guid const Guid source  ) 
 

Guid::Guid const std::string &  source  )  throw ( exceptions::IllegalArgumentException )
 

Guid::~Guid void   )  [virtual]
 


Member Function Documentation

Guid & Guid::createGUID void   )  throw ( exceptions::RuntimeException )
 

Generate a new GUID which will overwrite any current GUID value

Returns:
Reference to this object that now has a new GUID

static const unsigned char* activemq::util::Guid::createGUIDBytes void   )  [static]
 

Static Guid Create Method, create a GUID and returns the byte representation of the new GUID.

Returns:
Guid bytes array, size is 16

std::string Guid::createGUIDString void   )  [static]
 

Static Guid Creation Method, creates a GUID and returns it as a string

Returns:
Guid string.

Guid & Guid::fromBytes const unsigned char *  bytes  )  throw ( exceptions::IllegalArgumentException )
 

Initializes this GUID with the GUID specified in the bytes parameter

Returns:
reference to this object.

int Guid::getRawBytesSize void   )  const
 

Returns the Size in Bytes of the Raw bytes representation of the GUID.

Returns:
size of the Raw bytes representation

bool Guid::isNull void   )  const
 

Determines if this GUID is null, if so it can be initialized with a call to createGUID.

Returns:
true for Null GUID, false otherwise.

Guid::operator const unsigned char *  )  const
 

byte array cast operator, caller does not own this memeory

Returns:
byte array with the GUID byte value representation

Guid::operator std::string  )  const
 

string type cast operator

Returns:
string representation of this GUID

bool Guid::operator!= const std::string &  source  )  const
 

bool Guid::operator!= const Guid source  )  const
 

Inequality Comparison Operators

Returns:
true for equal. false otherwise

bool Guid::operator< const std::string &  source  )  const
 

bool Guid::operator< const Guid source  )  const
 

Less than operators

Returns:
true for equal. false otherwise

bool Guid::operator<= const std::string &  source  )  const
 

bool Guid::operator<= const Guid source  )  const
 

Less than or equal to operators

Returns:
true for equal. false otherwise

Guid & Guid::operator= const std::string &  source  )  throw ( exceptions::IllegalArgumentException )
 

Guid & Guid::operator= const Guid source  )  throw ( exceptions::IllegalArgumentException )
 

Assignment operators

Returns:
Reference to this GUID object

bool Guid::operator== const std::string &  source  )  const
 

bool Guid::operator== const Guid source  )  const
 

Equality Comparison Operators

Returns:
true for equal. false otherwise

bool Guid::operator> const std::string &  source  )  const
 

bool Guid::operator> const Guid source  )  const
 

Greater than operators

Returns:
true for equal. false otherwise

bool Guid::operator>= const std::string &  source  )  const
 

bool Guid::operator>= const Guid source  )  const
 

Greater than or equal to operators

Returns:
true for equal. false otherwise

void Guid::setNull void   ) 
 

Clears the GUID's current value and sets it to a NULL GUID value will now pass isNull.

const unsigned char * Guid::toBytes void   )  const
 

Converts the GUID to a byte array and return a pointer to the new array, called takes ownership and must delete this array when done.

Returns:
a byte array with the GUID byte value, size = 16

std::string Guid::toString void   )  const throw ( exceptions::RuntimeException )
 

Converts the GUID to a string and returns that string

Returns:
a string with this GUID's stringified value


Member Data Documentation

::GUID activemq::util::Guid::uuid [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5