NCBI C++ ToolKit
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
SNetServiceMap Struct Reference

Search Toolkit Book for SNetServiceMap

#include "netservice_api_impl.hpp"
(Private to src/connect/services.)

+ Collaboration diagram for SNetServiceMap:

Public Member Functions

 SNetServiceMap ()
 
 SNetServiceMap (const SNetServiceMap &source)
 
CNetService GetServiceByName (const string &service_name, SNetServiceImpl *prototype)
 
void Restrict ()
 
bool IsAllowed (const string &service_name) const
 
bool IsAllowed (CNetServer::TInstance server, SNetServiceImpl *prototype)
 
void AddToAllowed (const string &service_name)
 

Public Attributes

CFastMutex m_ServiceMapMutex
 
TNetServiceByName m_ServiceByName
 

Private Member Functions

CNetService GetServiceByNameImpl (const string &, SNetServiceImpl *)
 

Private Attributes

bool m_Restricted = false
 
set< string, PNocasem_Allowed
 

Detailed Description

Definition at line 381 of file netservice_api_impl.hpp.

Constructor & Destructor Documentation

◆ SNetServiceMap() [1/2]

SNetServiceMap::SNetServiceMap ( )
inline

Definition at line 385 of file netservice_api_impl.hpp.

◆ SNetServiceMap() [2/2]

SNetServiceMap::SNetServiceMap ( const SNetServiceMap source)
inline

Definition at line 386 of file netservice_api_impl.hpp.

Member Function Documentation

◆ AddToAllowed()

void SNetServiceMap::AddToAllowed ( const string service_name)

Definition at line 1436 of file netservice_api.cpp.

References set< Key, Compare >::insert(), and m_Allowed.

Referenced by SNetCacheAPIImpl::Init().

◆ GetServiceByName()

CNetService SNetServiceMap::GetServiceByName ( const string service_name,
SNetServiceImpl prototype 
)

Definition at line 1395 of file netservice_api.cpp.

References GetServiceByNameImpl(), and m_ServiceMapMutex.

Referenced by SNetCacheAPIImpl::ExecMirrorAware().

◆ GetServiceByNameImpl()

CNetService SNetServiceMap::GetServiceByNameImpl ( const string service_name,
SNetServiceImpl prototype 
)
private

◆ IsAllowed() [1/2]

bool SNetServiceMap::IsAllowed ( CNetServer::TInstance  server,
SNetServiceImpl prototype 
)

◆ IsAllowed() [2/2]

bool SNetServiceMap::IsAllowed ( const string service_name) const

Definition at line 1413 of file netservice_api.cpp.

References m_Allowed, and m_Restricted.

Referenced by SNetCacheAPIImpl::ExecMirrorAware().

◆ Restrict()

void SNetServiceMap::Restrict ( )
inline

Definition at line 394 of file netservice_api_impl.hpp.

References m_Restricted.

Referenced by SNetCacheAPIImpl::Init().

Member Data Documentation

◆ m_Allowed

set<string, PNocase> SNetServiceMap::m_Allowed
private

Definition at line 403 of file netservice_api_impl.hpp.

Referenced by AddToAllowed(), and IsAllowed().

◆ m_Restricted

bool SNetServiceMap::m_Restricted = false
private

Definition at line 402 of file netservice_api_impl.hpp.

Referenced by IsAllowed(), and Restrict().

◆ m_ServiceByName

TNetServiceByName SNetServiceMap::m_ServiceByName

Definition at line 383 of file netservice_api_impl.hpp.

Referenced by GetServiceByNameImpl().

◆ m_ServiceMapMutex

CFastMutex SNetServiceMap::m_ServiceMapMutex

Definition at line 382 of file netservice_api_impl.hpp.

Referenced by GetServiceByName(), and IsAllowed().


The documentation for this struct was generated from the following files:
Modified on Sun Jun 23 05:21:16 2024 by modify_doxy.py rev. 669887