NCBI C++ ToolKit
Macros | Functions | Variables
netcache_key.cpp File Reference
#include <ncbi_pch.hpp>
#include <algorithm>
#include <connect/services/netcache_key.hpp>
#include <connect/services/netcache_api_expt.hpp>
#include <connect/ncbi_socket.hpp>
#include <util/random_gen.hpp>
#include <util/checksum.hpp>
#include <corelib/ncbistr.hpp>
#include <corelib/ncbimtx.hpp>
+ Include dependency graph for netcache_key.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define KEY_PREFIX   "NCID_"
 
#define KEY_PREFIX_LENGTH   (sizeof(KEY_PREFIX) - 1)
 
#define KEY_EXTENSION_MARKER   "_0MetA0"
 
#define KEY_EXTENSION_MARKER_LENGTH   (sizeof(KEY_EXTENSION_MARKER) - 1)
 
#define PARSE_KEY_PART(part_name, test_function)
 
#define PARSE_NUMERIC_KEY_PART(part_name)   PARSE_KEY_PART(part_name, isdigit)
 

Functions

static void AppendServiceNameExtension (string &blob_id, const string &service_name)
 

Variables

static const CTempString s_KeyPrefix ("NCID_",(sizeof("NCID_") - 1))
 

Macro Definition Documentation

◆ KEY_EXTENSION_MARKER

#define KEY_EXTENSION_MARKER   "_0MetA0"

Definition at line 56 of file netcache_key.cpp.

◆ KEY_EXTENSION_MARKER_LENGTH

#define KEY_EXTENSION_MARKER_LENGTH   (sizeof(KEY_EXTENSION_MARKER) - 1)

Definition at line 57 of file netcache_key.cpp.

◆ KEY_PREFIX

#define KEY_PREFIX   "NCID_"

Definition at line 52 of file netcache_key.cpp.

◆ KEY_PREFIX_LENGTH

#define KEY_PREFIX_LENGTH   (sizeof(KEY_PREFIX) - 1)

Definition at line 53 of file netcache_key.cpp.

◆ PARSE_KEY_PART

#define PARSE_KEY_PART (   part_name,
  test_function 
)
Value:
const char* const part_name = ch; \
while (ch != ch_end && test_function(*ch)) \
++ch; \
if (ch == ch_end || *ch != '_') \
return false; \
++ch;

Definition at line 59 of file netcache_key.cpp.

◆ PARSE_NUMERIC_KEY_PART

#define PARSE_NUMERIC_KEY_PART (   part_name)    PARSE_KEY_PART(part_name, isdigit)

Definition at line 67 of file netcache_key.cpp.

Function Documentation

◆ AppendServiceNameExtension()

static void AppendServiceNameExtension ( string blob_id,
const string service_name 
)
static

Definition at line 274 of file netcache_key.cpp.

Referenced by CNetCacheKey::AddExtensions().

Variable Documentation

◆ s_KeyPrefix

const CTempString s_KeyPrefix("NCID_",(sizeof("NCID_") - 1)) ( "NCID_"  ,
(sizeof("NCID_") - 1)   
)
static
Modified on Tue Feb 27 05:56:42 2024 by modify_doxy.py rev. 669887