RSC  0.7.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsc::misc Namespace Reference

Classes

class  IllegalStateException
 Exception indicating a call on a method where the underlying object is in an illegal state for this call. More...
 
class  NullDeleter
 A deleter object that can be used with boost::shared_ptr that doesn't release any memory. More...
 
class  ParentSharedPtrDeleter
 A deleter for boost::shared_ptr which enables to use a pointer in a shared_ptr, which is not a shared_ptr itself and owned by another object. More...
 
class  Registry
 A templatized global registry. More...
 
class  UnsupportedOperationException
 An exception which indicates that a certain operation is not supported by the target. More...
 
class  UUID
 Encapsulates the generation and handling of UUIDs. More...
 

Typedefs

typedef boost::shared_ptr< UUIDUUIDPtr
 

Functions

boost::uint64_t currentTimeMillis ()
 Returns the current system time as milliseconds. More...
 
boost::uint64_t currentTimeMicros ()
 Returns the current system time as microseconds. More...
 
char randAlnumChar ()
 Generates a random alpha-numeric character. More...
 
std::string randAlnumStr (const std::string::size_type &length)
 Generates a random alpha-numeric string with fixed length. More...
 
ostream & operator<< (ostream &stream, const UUID &id)
 

Typedef Documentation

typedef boost::shared_ptr<UUID> rsc::misc::UUIDPtr

Definition at line 124 of file UUID.h.

Function Documentation

RSC_EXPORT boost::uint64_t rsc::misc::currentTimeMicros ( )

Returns the current system time as microseconds.

Returns
current system time in microseconds

Definition at line 82 of file langutils.cpp.

Referenced by rsc::threading::PeriodicTask::continueExec().

Here is the caller graph for this function:

RSC_EXPORT boost::uint64_t rsc::misc::currentTimeMillis ( )

Returns the current system time as milliseconds.

Returns
current system time in milliseconds

Definition at line 64 of file langutils.cpp.

Referenced by rsc::logging::ConsoleLogger::printHeader().

Here is the caller graph for this function:

RSC_EXPORT std::ostream & rsc::misc::operator<< ( ostream &  stream,
const UUID &  id 
)

Definition at line 98 of file UUID.cpp.

RSC_EXPORT char rsc::misc::randAlnumChar ( )

Generates a random alpha-numeric character.

Returns
alpha-numeric character

Definition at line 100 of file langutils.cpp.

Referenced by randAlnumStr().

Here is the caller graph for this function:

RSC_EXPORT std::string rsc::misc::randAlnumStr ( const std::string::size_type &  length)

Generates a random alpha-numeric string with fixed length.

Parameters
lengthdesired length of the string
Returns
random string of specified length

Definition at line 108 of file langutils.cpp.

References randAlnumChar().

Here is the call graph for this function: