Back to index

nordugrid-arc-nox  1.1.0~rc6
Functions | Variables
GUID.cpp File Reference
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include "GUID.h"

Go to the source code of this file.


static void guid_add_string (std::string &guid, uint32_t n)


static bool initialized = false
static char guid_chars []
static uint32_t guid_counter

Function Documentation

static void guid_add_string ( std::string &  guid,
uint32_t  n 
) [static]

Definition at line 54 of file GUID.cpp.

  uint32_t max = 0xFFFFFFFF;
  for (; max;) {
    uint32_t i = n % sizeof(guid_chars);
    guid += guid_chars[i];
    n /= sizeof(guid_chars);
    max /= sizeof(guid_chars);
    n += 0x55555555;

Here is the caller graph for this function:

Variable Documentation

char guid_chars[] [static]
Initial value:
  'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
  'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'

Definition at line 44 of file GUID.cpp.

uint32_t guid_counter [static]

Definition at line 52 of file GUID.cpp.

bool initialized = false [static]

Definition at line 42 of file GUID.cpp.