Run-Time Diagnostics
[CORELIB]

Collaboration diagram for Run-Time Diagnostics:


Classes

class  CDiagCompileInfo
 Incapsulate compile time information such as _FILE_ _LINE NCBI_MODULE NCBI_MODULE is used only in .cpp file. More...
struct  WRONG_ERROR_SUBCODE_IN_POST_MACRO< errorCode, errorSubcode, maxErrorSubcode, false >
 Specialization of template: when error subcode is valid existence of this specialization will be valuable for not issuing compiler error. More...
struct  WRONG_USAGE_OF_DEFINE_ERR_SUBCODE_MACRO< errorCode, false >
 Specialization of template: when usage of NCBI_DEFINE_ERR_SUBCODE_X is correct existence of this specialization will be valuable for not issuing compiler error. More...
class  ErrCode
 ErrCode --. More...
class  Severity
 Severity --. More...
class  MDiagModule
 MDiagModule --. More...
class  MDiagClass
 MDiagClass --. More...
class  MDiagFunction
 MDiagFunction --. More...
class  CNcbiDiag
 CNcbiDiag --. More...
class  CDiagCollectGuard
 Guard for collecting diag messages (affects the current thread only). More...
class  CDiagAutoPrefix
 CDiagAutoPrefix --. More...
class  INextDiagMessage
 Callback interface for stream parser. More...
struct  SDiagMessage
 SDiagMessage --. More...
class  CDiagContextThreadData
 Thread local context data stored in TLS. More...
class  CDiagContext_Extra
 Temporary object for holding extra message arguments. More...
class  CDiagContext
class  CDiagHandler
 CDiagHandler --. More...
class  CStreamDiagHandler_Base
 CStreamDiagHandler_Base --. More...
class  CStreamDiagHandler
 CStreamDiagHandler --. More...
class  CFileHandleDiagHandler
 CFileHandleDiagHandler --. More...
class  CFileDiagHandler
class  CDiagFactory
 CDiagFactory --. More...
class  CDiagRestorer
 CDiagRestorer --. More...
struct  SDiagErrCodeDescription
 SDiagErrCodeDescription --. More...
class  CDiagErrCodeInfo
 CDiagErrCodeInfo --. More...
class  CRequestContext
class  CRequestStatus
class  CSysLog

Defines

#define NCBI_CURRENT_FUNCTION   NCBI_NS_NCBI::g_DiagUnknownFunction()
 Get current function name.
#define NCBI_MAKE_MODULE(module)   NCBI_AS_STRING(module)
 Set default module name based on NCBI_MODULE macro.
#define DIAG_COMPILE_INFO
 Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define ERR_POST(message)
 Error posting with file, line number information but without error codes.
#define LOG_POST(message)
 Log message only without severity, location, prefix information.
#define ERR_POST_EX(err_code, err_subcode, message)
 Error posting with error codes.
#define LOG_POST_EX(err_code, err_subcode, message)
 Log posting with error codes.
#define NCBI_DEFINE_ERRCODE_X(name, err_code, max_err_subcode)
 Define global error code name with given value (err_code) and given maximum value of error subcode within this code.
#define NCBI_DEFINE_ERR_SUBCODE_X(max_err_subcode)   NCBI_DEFINE_ERR_SUBCODE_XX(NCBI_USE_ERRCODE_X, max_err_subcode)
 Define maximum value of subcode for the error code currently in use.
#define NCBI_DEFINE_ERR_SUBCODE_XX(name, max_err_subcode)
 Define maximum value of subcode for particular error code name.
#define NCBI_ERRCODE_X_NAME(name)   NCBI_NS_NCBI::err_code_x::NCBI_NAME2(eErrCodeX_, name)
 Returns value of error code by its name defined by NCBI_DEFINE_ERRCODE_X.
#define NCBI_ERRCODE_X   NCBI_ERRCODE_X_NAME(NCBI_USE_ERRCODE_X)
 Returns currently set default error code.
#define NCBI_MAX_ERR_SUBCODE_X_NAME(name)   NCBI_NS_NCBI::err_code_x::NCBI_NAME2(SErrCodeX_Max_, name)<true>::value
 Returns maximum value of error subcode within error code with given name.
#define NCBI_MAX_ERR_SUBCODE_X   NCBI_MAX_ERR_SUBCODE_X_NAME(NCBI_USE_ERRCODE_X)
 Returns maximum value of error subcode within current default error code.
#define NCBI_CHECK_ERRCODE_USAGE(name)
 Check that NCBI_DEFINE_ERR_SUBCODE_X is used for correctly defined error code.
#define NCBI_CHECK_ERR_SUBCODE_X_NAME(name, subcode)
 Issue compile-time error if error subcode given is not valid for given error code name.
#define NCBI_CHECK_ERR_SUBCODE_X(subcode)   NCBI_CHECK_ERR_SUBCODE_X_NAME(NCBI_USE_ERRCODE_X, subcode)
 Issue compile-time error if error subcode given is not valid for current error code.
#define ERR_POST_X(err_subcode, message)   ERR_POST_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 Error posting with default error code and given error subcode.
#define LOG_POST_X(err_subcode, message)   LOG_POST_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 Log posting with default error code and given error subcode.
#define ERR_POST_XX(error_name, err_subcode, message)
 Error posting with error code having given name and with given error subcode.
#define LOG_POST_XX(error_name, err_subcode, message)
 Log posting with error code having given name and with given error subcode.
#define NCBI_REPEAT_POST_N_TIMES(post_macro, count, params)
 Common code for making log or error posting only given number of times during program execution.
#define LOG_POST_N_TIMES(count, message)   NCBI_REPEAT_POST_N_TIMES( LOG_POST, count, (message) )
 Log posting only given number of times during program execution.
#define ERR_POST_N_TIMES(count, message)   NCBI_REPEAT_POST_N_TIMES( ERR_POST, count, (message) )
 Error posting only given number of times during program execution.
#define LOG_POST_ONCE(message)   LOG_POST_N_TIMES(1, message)
 Log posting only once during program execution.
#define ERR_POST_ONCE(message)   ERR_POST_N_TIMES(1, message)
 Error posting only once during program execution.
#define LOG_POST_X_N_TIMES(count, err_subcode, message)   NCBI_REPEAT_POST_N_TIMES( LOG_POST_X, count, (err_subcode, message) )
 Log posting only given number of times during program execution with default error code and given error subcode.
#define ERR_POST_X_N_TIMES(count, err_subcode, message)   NCBI_REPEAT_POST_N_TIMES( ERR_POST_X, count, (err_subcode, message) )
 Error posting only given number of times during program execution with default error code and given error subcode.
#define LOG_POST_X_ONCE(err_subcode, message)   LOG_POST_X_N_TIMES(1, err_subcode, message)
 Log posting only once during program execution with default error code and given error subcode.
#define ERR_POST_X_ONCE(err_subcode, message)   ERR_POST_X_N_TIMES(1, err_subcode, message)
 Error posting only once during program execution with default error code and given error subcode.
#define LOG_POST_XX_N_TIMES(count, error_name, err_subcode, message)
 Log posting only given number of times during program execution with given error code name and given error subcode.
#define ERR_POST_XX_N_TIMES(count, error_name, err_subcode, message)
 Error posting only given number of times during program execution with given error code name and given error subcode.
#define LOG_POST_XX_ONCE(error_name, err_subcode, message)   LOG_POST_XX_N_TIMES(1, error_name, err_subcode, message)
 Log posting only once during program execution with given error code name and given error subcode.
#define ERR_POST_XX_ONCE(error_name, err_subcode, message)   ERR_POST_XX_N_TIMES(1, error_name, err_subcode, message)
 Error posting only once during program execution with given error code name and given error subcode.
#define DIAG_POST_LEVEL   "DIAG_POST_LEVEL"
 Diagnostic post severity level.
#define DIAG_TRACE   "DIAG_TRACE"
 Diagnostic trace setting.
#define DIAG_MESSAGE_FILE   "MessageFile"
 Diagnostic message file.

Typedefs

typedef int TDiagUserAndHost
typedef int TDiagPostFlags
 Binary OR of "EDiagPostFlag".
typedef void(* FAbortHandler )(void)
 Abort handler function type.
typedef void(* FDiagHandler )(const SDiagMessage &mess)
 Diagnostic handler function type.
typedef void(* FDiagCleanup )(void *data)
 Diagnostic cleanup function type.
typedef map< string, string > CRequestContext::TProperties
 User-defined request properties.
typedef int CRequestContext::TPropSet
typedef CSysLog CSysLogDiagHandler

Enumerations

enum  EDiagUserAndHost { fDiag_AddUser = 1 << 0, fDiag_AddHost = 1 << 1, fDiag_OverrideExisting = 1 << 2 }
 Flags for SetDiagUserAndHost(). More...
enum  EDiagSev {
  eDiag_Info = 0, eDiag_Warning, eDiag_Error, eDiag_Critical,
  eDiag_Fatal, eDiag_Trace, eDiagSevMin = eDiag_Info, eDiagSevMax = eDiag_Trace
}
 Severity level for the posted diagnostics. More...
enum  EDiagSevChange { eDiagSC_Unknown, eDiagSC_Disable, eDiagSC_Enable }
 Severity level change state. More...
enum  EDiagPostFlag {
  eDPF_File = 0x1, eDPF_LongFilename = 0x2, eDPF_Line = 0x4, eDPF_Prefix = 0x8,
  eDPF_Severity = 0x10, eDPF_ErrorID = 0x20, eDPF_DateTime = 0x80, eDPF_ErrCodeMessage = 0x100,
  eDPF_ErrCodeExplanation = 0x200, eDPF_ErrCodeUseSeverity = 0x400, eDPF_Location = 0x800, eDPF_PID = 0x1000,
  eDPF_TID = 0x2000, eDPF_SerialNo = 0x4000, eDPF_SerialNo_Thread = 0x8000, eDPF_RequestId = 0x10000,
  eDPF_Iteration = 0x10000, eDPF_UID = 0x20000, eDPF_ErrCode = eDPF_ErrorID, eDPF_ErrSubCode = eDPF_ErrorID,
  eDPF_All = 0xFFFFF, eDPF_Trace = 0x581F, eDPF_Log = 0x0, eDPF_PreMergeLines = 0x100000,
  eDPF_MergeLines = 0x200000, eDPF_OmitInfoSev = 0x400000, eDPF_OmitSeparator = 0x800000, eDPF_AppLog = 0x1000000,
  eDPF_IsMessage = 0x2000000, eDPF_AtomicWrite = 0x4000000, eDPF_Default = 0x10000000, eDPF_ImportantFlagsMask,
  eDPF_UseExactUserFlags = 0x20000000
}
 Which parts of the diagnostic context should be posted. More...
enum  EDiagAppState {
  eDiagAppState_NotSet, eDiagAppState_AppBegin, eDiagAppState_AppRun, eDiagAppState_AppEnd,
  eDiagAppState_RequestBegin, eDiagAppState_Request, eDiagAppState_RequestEnd
}
 Application execution states shown in the std prefix. More...
enum  EDiagTrace { eDT_Default = 0, eDT_Disable, eDT_Enable }
 Which setting disables/enables posting of "eDiag_Trace" messages. More...
enum  EAppDiagStream {
  eDS_ToStdout, eDS_ToStderr, eDS_ToStdlog, eDS_ToMemory,
  eDS_Disable, eDS_User, eDS_AppSpecific, eDS_Default,
  eDS_ToSyslog
}
 Where to write the application's diagnostics to. More...
enum  EDiagCollectMessages {
  eDCM_Init, eDCM_InitNoLimit, eDCM_NoChange, eDCM_Flush,
  eDCM_Discard
}
 Flags to control collecting messages and flushing them to the new destination when switching diag handlers. More...
enum  EPostNumberIncrement { ePostNumber_NoIncrement, ePostNumber_Increment }
 Post nubmer increment flag for GetProcessPostNumber() and GetThreadPostNumber(). More...
enum  EDiagFilter { eDiagFilter_Trace, eDiagFilter_Post, eDiagFilter_All }
 Diag severity types to put the filter on. More...
enum  EDiagFileType { eDiagFile_Err, eDiagFile_Log, eDiagFile_Trace, eDiagFile_All }
 Type of file for the output. More...
enum  CRequestContext::EProperty {
  CRequestContext::eProp_RequestID = 1 << 0, CRequestContext::eProp_ClientIP = 1 << 1, CRequestContext::eProp_SessionID = 1 << 2, CRequestContext::eProp_HitID = 1 << 3,
  CRequestContext::eProp_ReqStatus = 1 << 4, CRequestContext::eProp_BytesRd = 1 << 5, CRequestContext::eProp_BytesWr = 1 << 6
}

Functions

void SetDiagUserAndHost (TDiagUserAndHost flags=fDiag_AddUser|fDiag_AddHost)
 Set username and hostname properties for the diag context.
const char * g_DiagUnknownFunction (void)
void CheckErrSubcodeX (int)
 Additional dummy function for use in NCBI_CHECK_ERR_SUBCODE_X macro.
bool IsSetDiagPostFlag (EDiagPostFlag flag, TDiagPostFlags flags=eDPF_Default)
 Check if a specified flag is set.
TDiagPostFlags SetDiagPostAllFlags (TDiagPostFlags flags)
 Set global post flags to "flags".
void SetDiagPostFlag (EDiagPostFlag flag)
 Set the specified flag (globally).
void UnsetDiagPostFlag (EDiagPostFlag flag)
 Unset the specified flag (globally).
TDiagPostFlags SetDiagTraceAllFlags (TDiagPostFlags flags)
 Versions of the above for extra trace flags.
void SetDiagTraceFlag (EDiagPostFlag flag)
void UnsetDiagTraceFlag (EDiagPostFlag flag)
void SetDiagPostPrefix (const char *prefix)
 Specify a string to prefix all subsequent error postings with.
void PushDiagPostPrefix (const char *prefix)
 Push a string to the list of message prefixes.
void PopDiagPostPrefix (void)
 Pop a string from the list of message prefixes.
int GetDiagRequestId (void)
 Get iteration number/request ID.
void SetDiagRequestId (int id)
 Set iteration number/request ID.
NCBI_DEPRECATED int GetFastCGIIteration (void)
NCBI_DEPRECATED void SetFastCGIIteration (int id)
EDiagSev SetDiagPostLevel (EDiagSev post_sev=eDiag_Error)
 Set the threshold severity for posting the messages.
int CompareDiagPostLevel (EDiagSev sev1, EDiagSev sev2)
 Compare two severities.
bool IsVisibleDiagPostLevel (EDiagSev sev)
 Check if the specified severity is higher or equal to the currently selected post level and will be printed by LOG_POST/ERR_POST.
bool DisableDiagPostLevelChange (bool disable_change=true)
 Disable change the diagnostic post level.
void SetDiagFixedPostLevel (EDiagSev post_sev)
 Sets and locks the level, combining the previous two calls.
EDiagSev SetDiagDieLevel (EDiagSev die_sev=eDiag_Fatal)
 Set the "die" (abort) level for the program.
bool IgnoreDiagDieLevel (bool ignore)
 Ignore the die level settings.
void SetAbortHandler (FAbortHandler func=0)
 Set/unset abort handler.
void Abort (void)
 Smart abort function.
void SetDiagTrace (EDiagTrace how, EDiagTrace dflt=eDT_Default)
 Set the diagnostic trace settings.
CNcbiOstreamoperator<< (CNcbiOstream &os, const SDiagMessage &mess)
 Insert message in output stream.
CDiagContextGetDiagContext (void)
 Get diag context instance.
void SetDiagHandler (CDiagHandler *handler, bool can_delete=true)
 Set the diagnostic handler using the specified diagnostic handler class.
CDiagHandlerGetDiagHandler (bool take_ownership=false)
 Get the currently set diagnostic handler class.
void SetDiagHandler (FDiagHandler func, void *data, FDiagCleanup cleanup)
 Set the diagnostic handler using the specified diagnostic handler and cleanup functions.
bool IsSetDiagHandler (void)
 Check if diagnostic handler is set.
void DiagHandler_Reopen (void)
 Ask diagnostic handler to reopen log files if necessary.
void SetDiagFilter (EDiagFilter what, const char *filter_str)
 Set diagnostic filter.
NCBI_DEPRECATED void SetDoubleDiagHandler (void)
 Output diagnostics using both old and new style handlers.
void SetDiagStream (CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name="STREAM")
 Set diagnostic stream.
bool IsDiagStream (const CNcbiOstream *os)
CNcbiOstreamGetDiagStream (void)
 Get current diagnostic stream (if it was set by SetDiagStream) or NULL.
void SetSplitLogFile (bool value=true)
 Split log files flag.
bool GetSplitLogFile (void)
 Get split log files flag.
bool SetLogFile (const string &file_name, EDiagFileType file_type=eDiagFile_All, bool quick_flush=true)
 Set log files.
string GetLogFile (EDiagFileType file_type)
 Get log file name for the given log type.
string GetLogFile (void)
 Get log file name or diag handler name.
void SetDiagErrCodeInfo (CDiagErrCodeInfo *info, bool can_delete=true)
 Set handler for processing error codes.
bool IsSetDiagErrCodeInfo ()
 Indicates whether an error-code processing handler has been set.
CDiagErrCodeInfoGetDiagErrCodeInfo (bool take_ownership=false)
 Get handler for processing error codes.
virtual CRequestContext::~CRequestContext (void)
int CRequestContext::GetRequestID (void) const
 Get request ID (or zero if not set).
void CRequestContext::SetRequestID (int rid)
 Set request ID.
bool CRequestContext::IsSetRequestID (void) const
 Check if request ID was assigned a value.
void CRequestContext::UnsetRequestID (void)
 Reset request ID.
int CRequestContext::SetRequestID (void)
 Assign the next available request ID to this request.
static int CRequestContext::GetNextRequestID (void)
 Return the next available application-wide request ID.
EDiagAppState CRequestContext::GetAppState (void) const
 Application state.
void CRequestContext::SetAppState (EDiagAppState state)
const string & CRequestContext::GetClientIP (void) const
 Client IP/hostname.
void CRequestContext::SetClientIP (const string &client)
bool CRequestContext::IsSetClientIP (void) const
void CRequestContext::UnsetClientIP (void)
const string & CRequestContext::GetSessionID (void) const
 Session ID.
void CRequestContext::SetSessionID (const string &session)
bool CRequestContext::IsSetSessionID (void) const
void CRequestContext::UnsetSessionID (void)
const string & CRequestContext::SetSessionID (void)
 Create and set new session ID.
const string & CRequestContext::GetEncodedSessionID (void) const
 Get URL-encoded session ID.
const string & CRequestContext::GetHitID (void) const
 Hit ID.
void CRequestContext::SetHitID (const string &hit)
bool CRequestContext::IsSetHitID (void) const
void CRequestContext::UnsetHitID (void)
const string & CRequestContext::SetHitID (void)
 Generate unique hit id, assign it to this request, return the hit id value.
int CRequestContext::GetRequestStatus (void) const
 Request exit startus.
void CRequestContext::SetRequestStatus (int status)
void CRequestContext::SetRequestStatus (CRequestStatus::ECode code)
bool CRequestContext::IsSetRequestStatus (void) const
void CRequestContext::UnsetRequestStatus (void)
const CStopWatchCRequestContext::GetRequestTimer (void) const
 Request execution timer.
CStopWatchCRequestContext::GetRequestTimer (void)
Int8 CRequestContext::GetBytesRd (void) const
 Bytes read.
void CRequestContext::SetBytesRd (Int8 bytes)
bool CRequestContext::IsSetBytesRd (void) const
void CRequestContext::UnsetBytesRd (void)
Int8 CRequestContext::GetBytesWr (void) const
 Bytes written.
void CRequestContext::SetBytesWr (Int8 bytes)
bool CRequestContext::IsSetBytesWr (void) const
void CRequestContext::UnsetBytesWr (void)
void CRequestContext::Reset (void)
 Reset all properties to the initial state.
void CRequestContext::SetProperty (const string &name, const string &value)
 Add/change property.
const string & CRequestContext::GetProperty (const string &name) const
 Get property value or empty string.
bool CRequestContext::IsSetProperty (const string &name) const
 Check if the property has a value (even if it's an empty string).
void CRequestContext::UnsetProperty (const string &name)
 Remove property from the map.
const TProperties & CRequestContext::GetProperties (void) const
 Get all properties (read only).
TProperties & CRequestContext::GetProperties (void)
 Get all properties (non-const).
void CRequestContext::SetAutoIncRequestIDOnPost (bool enable)
 Auto-increment request ID with every posted message.
bool CRequestContext::GetAutoIncRequestIDOnPost (void) const
 Get auto-increment state.
static void CRequestContext::SetDefaultAutoIncRequestIDOnPost (bool enable)
 Set default auto-increment flag used for each default request context.
static bool CRequestContext::GetDefaultAutoIncRequestIDOnPost (void)
 Get default auto-increment flag.
 CRequestContext::CRequestContext (const CRequestContext &)
CRequestContextCRequestContext::operator= (const CRequestContext &)
void CRequestContext::StartRequest (void)
void CRequestContext::StopRequest (void)
bool CRequestContext::IsRunning (void) const
bool CRequestContext::x_IsSetProp (EProperty prop) const
void CRequestContext::x_SetProp (EProperty prop)
void CRequestContext::x_UnsetProp (EProperty prop)
static boolCRequestContext::sx_GetDefaultAutoIncRequestIDOnPost (void)

Variables

int CRequestContext::m_RequestID
EDiagAppState CRequestContext::m_AppState
string CRequestContext::m_ClientIP
CEncodedString CRequestContext::m_SessionID
string CRequestContext::m_HitID
int CRequestContext::m_ReqStatus
CStopWatch CRequestContext::m_ReqTimer
Int8 CRequestContext::m_BytesRd
Int8 CRequestContext::m_BytesWr
TProperties CRequestContext::m_Properties
TPropSet CRequestContext::m_PropSet
bool CRequestContext::m_IsRunning
bool CRequestContext::m_AutoIncOnPost


Define Documentation

#define DIAG_COMPILE_INFO
 

Value:

NCBI_NS_NCBI::CDiagCompileInfo(__FILE__,              \
                                 __LINE__,              \
                                 NCBI_CURRENT_FUNCTION, \
                                 NCBI_MAKE_MODULE(NCBI_MODULE))
Make compile time diagnostic information object to use in CNcbiDiag and CException.

This macro along with functionality of macro NCBI_MAKE_MODULE and of constructor CDiagCompileInfo ensures that if variable NCBI_MODULE will be defined then its value will be used as module name, but if it isn't defined then module name in CDiagCompileInfo will be empty. "Checking" of definition of NCBI_MODULE is performed at the moment of macro issuing so you can define and redefine NCBI_MODULE several times during one cpp-file. But BE WARNED that macro NCBI_MODULE is considered as not defined when used in any header file. So if you want for example make some error posting from inline function defined in hpp-file and want your custom module name to be shown in error message then you have to use MDiagModule manipulator as following:

ERR_POST_X(1, MDiagModule("MY_MODULE_NAME") << "Error message" );

See also:
CDiagCompileInfo

Definition at line 158 of file ncbidiag.hpp.

Referenced by CDBL_Connection::CheckDead(), CDBUDPriorityMapper::CleanExcluded(), CDBUDRandomMapper::CleanExcluded(), CNCMMDBCache::CNCMMDBCache(), CDB_UserHandler_Exception::HandleIt(), CNWAlignerThread_Align::Main(), CToMultiExHandler::ReplaceMultiEx(), CToupper_Base::C_Data::ThrowInvalidSelection(), CTolower_Base::C_Data::ThrowInvalidSelection(), CSubs_Base::C_E_Subs::ThrowInvalidSelection(), CStrip_Base::C_E_Strip::ThrowInvalidSelection(), CRule_Base::C_Data::ThrowInvalidSelection(), CPad_Base::C_E_Pad::ThrowInvalidSelection(), CObjectUrl_Base::C_Data::ThrowInvalidSelection(), CObjectUrl_Base::C_Data::C_Rule::ThrowInvalidSelection(), CObjectUrl_Base::C_Data::C_BaseData::C_Rule::ThrowInvalidSelection(), CObjectList_Base::C_Data::ThrowInvalidSelection(), CNormalize_Base::C_Data::ThrowInvalidSelection(), CApad_Base::C_E_Apad::ThrowInvalidSelection(), CItem_Base::C_E_Item::ThrowInvalidSelection(), CESummaryResult_Base::C_Data::ThrowInvalidSelection(), CTranslationStack_Base::C_Data::ThrowInvalidSelection(), CESearchResult_Base::C_Data::ThrowInvalidSelection(), CLinkSetDb_Base::C_Data::ThrowInvalidSelection(), CLinkSet_Base::C_Data::ThrowInvalidSelection(), CLinkSet_Base::C_Data::C_Links::C_LL::ThrowInvalidSelection(), CIdUrlSet_Base::C_Data::ThrowInvalidSelection(), CIdCheckList_Base::C_II::C_E_II::ThrowInvalidSelection(), CLink_Base::C_Selector::ThrowInvalidSelection(), CEInfoResult_Base::ThrowInvalidSelection(), CT3StatusFlags_Base::C_Value::ThrowInvalidSelection(), CT3Request_Base::ThrowInvalidSelection(), CT3Reply_Base::ThrowInvalidSelection(), CTaxon1_resp_Base::ThrowInvalidSelection(), CTaxon1_req_Base::ThrowInvalidSelection(), CSeq_submit_Base::C_Data::ThrowInvalidSelection(), CSeqTestResults_Base::C_Source::ThrowInvalidSelection(), CSeqTable_sparse_index_Base::ThrowInvalidSelection(), CSeqTable_single_data_Base::ThrowInvalidSelection(), CSeqTable_multi_data_Base::ThrowInvalidSelection(), CID2S_Seq_loc_Base::ThrowInvalidSelection(), CID2S_Chunk_Data_Base::C_Id::ThrowInvalidSelection(), CID2S_Chunk_Content_Base::ThrowInvalidSelection(), CID2S_Bioseq_Ids_Base::C_E::ThrowInvalidSelection(), CSeq_entry_Base::ThrowInvalidSelection(), CSeq_graph_Base::C_Graph::ThrowInvalidSelection(), CSeq_loc_Base::ThrowInvalidSelection(), CSeq_id_Base::ThrowInvalidSelection(), CTrna_ext_Base::C_Aa::ThrowInvalidSelection(), CSeqFeatData_Base::ThrowInvalidSelection(), CRsite_ref_Base::ThrowInvalidSelection(), CRNA_ref_Base::C_Ext::ThrowInvalidSelection(), COrgName_Base::C_Name::ThrowInvalidSelection(), CGenetic_code_Base::C_E::ThrowInvalidSelection(), CFeat_id_Base::ThrowInvalidSelection(), CCode_break_Base::C_Aa::ThrowInvalidSelection(), CSeqEdit_Id_Base::ThrowInvalidSelection(), CSeqEdit_Cmd_ReplaceAnnot_Base::C_Data::ThrowInvalidSelection(), CSeqEdit_Cmd_RemoveAnnot_Base::C_Data::ThrowInvalidSelection(), CSeqEdit_Cmd_ChangeSetAttr_Base::C_Data::ThrowInvalidSelection(), CSeqEdit_Cmd_ChangeSeqAttr_Base::C_Data::ThrowInvalidSelection(), CSeqEdit_Cmd_AddAnnot_Base::C_Data::ThrowInvalidSelection(), CSeqEdit_Cmd_AddAnnot_Base::C_Search_param::ThrowInvalidSelection(), CSeqEdit_Cmd_AddAnnot_Base::C_Search_param::C_Obj::ThrowInvalidSelection(), CSeqEdit_Cmd_Base::ThrowInvalidSelection(), CEMBL_dbname_Base::ThrowInvalidSelection(), CSpliced_seg_modifier_Base::ThrowInvalidSelection(), CSpliced_exon_chunk_Base::ThrowInvalidSelection(), CSeq_align_Base::C_Segs::ThrowInvalidSelection(), CScore_Base::C_Value::ThrowInvalidSelection(), CProduct_pos_Base::ThrowInvalidSelection(), CSeqdesc_Base::ThrowInvalidSelection(), CSeq_hist_Base::C_Deleted::ThrowInvalidSelection(), CSeq_ext_Base::ThrowInvalidSelection(), CSeq_data_Base::ThrowInvalidSelection(), CSeq_annot_Base::C_Data::ThrowInvalidSelection(), CNumbering_Base::ThrowInvalidSelection(), CDelta_seq_Base::ThrowInvalidSelection(), CAnnotdesc_Base::ThrowInvalidSelection(), CAnnot_id_Base::ThrowInvalidSelection(), CRMRequest_Base::ThrowInvalidSelection(), CRMReply_Base::ThrowInvalidSelection(), CPub_set_Base::ThrowInvalidSelection(), CPub_Base::ThrowInvalidSelection(), CProject_item_Base::ThrowInvalidSelection(), CProjdesc_Base::ThrowInvalidSelection(), CPC_XRefData_Base::ThrowInvalidSelection(), CPC_StereoCenter_Base::ThrowInvalidSelection(), CPC_Source_Base::ThrowInvalidSelection(), CPC_InfoData_Base::C_Value::ThrowInvalidSelection(), CPC_CompoundType_Base::C_Id::ThrowInvalidSelection(), CPC_ResultType_Base::C_Constraints::ThrowInvalidSelection(), CPC_AssaySubmit_Base::C_Assay::ThrowInvalidSelection(), CPC_AssayData_Base::C_Value::ThrowInvalidSelection(), CPrintForm_Base::ThrowInvalidSelection(), CNcbi_mime_asn1_Base::ThrowInvalidSelection(), CEntrez_general_Base::C_Data::ThrowInvalidSelection(), CBiostruc_seqs_aligns_cdd_Base::C_Seq_align_data::ThrowInvalidSelection(), CResidue_pntrs_Base::ThrowInvalidSelection(), CRegion_pntrs_Base::C_Region::ThrowInvalidSelection(), CRegion_boundary_Base::ThrowInvalidSelection(), CMove_Base::ThrowInvalidSelection(), CChem_graph_pntrs_Base::ThrowInvalidSelection(), CBiostruc_feature_set_descr_Base::ThrowInvalidSelection(), CBiostruc_feature_Base::C_Location::ThrowInvalidSelection(), CBiostruc_feature_Base::C_Property::ThrowInvalidSelection(), CSurface_coordinates_Base::C_Surface::ThrowInvalidSelection(), CModel_descr_Base::ThrowInvalidSelection(), CModel_coordinate_set_Base::C_Coordinates::ThrowInvalidSelection(), CCoordinates_Base::ThrowInvalidSelection(), CAtomic_temperature_factors_Base::ThrowInvalidSelection(), CResidue_graph_pntr_Base::ThrowInvalidSelection(), CBiostruc_source_Base::C_Version_of_database::ThrowInvalidSelection(), CBiostruc_id_Base::ThrowInvalidSelection(), CBiostruc_descr_Base::ThrowInvalidSelection(), CBiomol_descr_Base::ThrowInvalidSelection(), CMla_request_Base::ThrowInvalidSelection(), CMla_back_Base::ThrowInvalidSelection(), CID2_Seq_id_Base::ThrowInvalidSelection(), CID2_Request_Get_Blob_Info_Base::C_Blob_id::ThrowInvalidSelection(), CID2_Request_Base::C_Request::ThrowInvalidSelection(), CID2_Reply_Base::C_Reply::ThrowInvalidSelection(), CID1server_request_Base::ThrowInvalidSelection(), CID1server_back_Base::ThrowInvalidSelection(), CGC_Replicon_Base::C_Sequence::ThrowInvalidSelection(), CGC_GenomicPart_Base::ThrowInvalidSelection(), CUser_field_Base::C_Data::ThrowInvalidSelection(), CPerson_id_Base::ThrowInvalidSelection(), CObject_id_Base::ThrowInvalidSelection(), CInt_fuzz_Base::ThrowInvalidSelection(), CDate_Base::ThrowInvalidSelection(), CMaps_Base::C_Method::ThrowInvalidSelection(), CEntrez2_boolean_element_Base::ThrowInvalidSelection(), CE2Request_Base::ThrowInvalidSelection(), CE2Reply_Base::ThrowInvalidSelection(), CUpdate_comment_Base::ThrowInvalidSelection(), CSeqTree_node_Base::C_Children::ThrowInvalidSelection(), CFeature_evidence_Base::ThrowInvalidSelection(), CCdd_pref_node_descr_Base::ThrowInvalidSelection(), CCdd_id_Base::ThrowInvalidSelection(), CCdd_descr_Base::ThrowInvalidSelection(), CBlast4_value_Base::ThrowInvalidSelection(), CBlast4_subject_Base::ThrowInvalidSelection(), CBlast4_request_body_Base::ThrowInvalidSelection(), CBlast4_reply_body_Base::ThrowInvalidSelection(), CBlast4_queries_Base::ThrowInvalidSelection(), CBlast4_cutoff_Base::ThrowInvalidSelection(), CBlast4_common_options_db_restriction_by_organism_Base::ThrowInvalidSelection(), CTitle_Base::C_E::ThrowInvalidSelection(), CId_pat_Base::C_Id::ThrowInvalidSelection(), CCit_art_Base::C_From::ThrowInvalidSelection(), CAuth_list_Base::C_Names::ThrowInvalidSelection(), CArticleId_Base::ThrowInvalidSelection(), CAffil_Base::ThrowInvalidSelection(), CViewDescriptor_Base::C_Data::ThrowInvalidSelection(), CViewDataLink_Base::C_Fingerprint::ThrowInvalidSelection(), CProjectItem_Base::C_Item::ThrowInvalidSelection(), CPluginValueConstraint_Base::ThrowInvalidSelection(), CPluginValue_Base::ThrowInvalidSelection(), CPluginReplyAction_Base::ThrowInvalidSelection(), CPluginArg_Base::C_Data::ThrowInvalidSelection(), CGBenchServiceRequest_Base::ThrowInvalidSelection(), CGBenchServiceReply_Base::ThrowInvalidSelection(), CDataHandleAction_Base::C_Action::ThrowInvalidSelection(), CFilter_Base::C_FF::C_E_FF::ThrowInvalidSelection(), CComponentList_Base::C_E_ComponentList::C_SAD::ThrowInvalidSelection(), CSupDataDesc_Base::C_E_SupDataDesc::ThrowInvalidSelection(), CSupDataArray_Base::C_FDIBSTU::ThrowInvalidSelection(), CSpectrumInstrument_Base::C_E_SpectrumInstrument::ThrowInvalidSelection(), CSpectrum_Base::C_SS::C_E_SS::ThrowInvalidSelection(), CSource_Base::C_E::ThrowInvalidSelection(), CSampleDescription_Base::C_E_SampleDescription::ThrowInvalidSelection(), CProcessingMethod_Base::C_E::ThrowInvalidSelection(), CIonSelection_Base::C_E::ThrowInvalidSelection(), CDetector_Base::C_E::ThrowInvalidSelection(), CAnalyzer_Base::C_E::ThrowInvalidSelection(), CAdditional_Base::C_E::ThrowInvalidSelection(), CActivation_Base::C_E::ThrowInvalidSelection(), CAcquisition_Base::C_E_Acquisition::ThrowInvalidSelection(), CMarkov_chain_params_Base::C_E_Probabilities::ThrowInvalidSelection(), CGnomon_param_Base::C_Param::ThrowInvalidSelection(), and SNetServerConnectionImpl::WriteLine().

#define DIAG_MESSAGE_FILE   "MessageFile"
 

Diagnostic message file.

Definition at line 2644 of file ncbidiag.hpp.

#define DIAG_POST_LEVEL   "DIAG_POST_LEVEL"
 

Diagnostic post severity level.

The value of DIAG_POST_LEVEL can be a digital value (0-9) or string value from CDiagBuffer::sm_SeverityName[].

Definition at line 1337 of file ncbidiag.hpp.

#define DIAG_TRACE   "DIAG_TRACE"
 

Diagnostic trace setting.

Definition at line 1419 of file ncbidiag.hpp.

Referenced by CNcbiApplication::x_HonorStandardSettings().

#define ERR_POST message   ) 
 

Value:

( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO).GetRef() \
      << message                                          \
      << NCBI_NS_NCBI::Endm )
Error posting with file, line number information but without error codes.

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro ERR_POST_X to make possible more flexible error statistics and logging.

See also:
ERR_POST_EX, ERR_POST_X

Definition at line 174 of file ncbidiag.hpp.

Referenced by CObjectIndex::Add(), HitDistributor::addBatch(), CMenuService::AddContributor(), CDataMiningService::AddContributor(), CExtensionRegistry::AddExtensionPoint(), CWindowManagerService::AddToolBarFactory(), CUIToolRegistry::AddToolToMRU(), CUICommandRegistry::AppendMenuItem(), CUICommandRegistry::ApplyAccelerators(), CSelectionService::Broadcast(), CProjectView::BroadcastVisibleRange(), CAcceptRequest::CAcceptRequest(), CQueue::Cancel(), CSearchToolBase::CancelSearch(), CQueue::CheckJobsExpiry(), CQueue::ClearAffinityIdx(), CTmpStreamGuard::Close(), CNCFSOpenFile::CNCFSOpenFile(), CNetCacheServer::CNetCacheServer(), CBlastDBAliasApp::ConvertGiFile(), CUIToolRegistry::CreateMRUList(), CSearchHelper::CreateSearchSettings(), CWindowManagerService::DeleteToolBarFactory(), HitDistributor::distribute(), CSampleJob::Do(), CJobQueueExecutionWatcherThread::DoJob(), CJobQueueCleanerThread::DoJob(), CJobNotificationThread::DoJob(), CQueue::ExecProject(), CFormattingArgs::ExtractAlgorithmOptions(), CJob::Fetch(), CAppRegistry::Find(), CMergeAligner::GenerateAlignments(), CInstancedAligner::GenerateAlignments(), CQueue::GetAffinityList(), GetAlignmentColumnsForCD(), CSparseMultiDataSource::GetAlnFromSeq(), Residue::GetAtomInfo(), Molecule::GetAtomInfo(), ChemicalGraph::GetAtomInfo(), CSplitQueryBlk::GetChunkOverlapSize(), GetExtensionAsInterface(), GetHexChar(), CUIToolRegistry::GetMRUToolNames(), CFastaBioseqSource::GetNext(), CProjectItem::GetObject(), StructureBase::GetParentOfType(), CSparseMultiDataSource::GetSeqFromAln(), IntegerSpinCtrl::GetUnsignedInteger(), CAsn2FlatApp::HandleSeqEntry(), CCleanupApp::HandleSeqID(), CAsn2FlatApp::HandleSeqID(), CAsn2FastaApp::HandleSeqID(), HexToString(), CMassArray::Init(), CMSMod::Init(), InputError(), CQueue::JobDelayExpiration(), CColorTableMethod::Load(), CRemoteAppParams::Load(), CTextDataSource::LoadAsn(), CSpectrumSet::LoadDTA(), CTextDataSource::LoadFasta(), CTextDataSource::LoadFlatFile(), CDbIndex::LoadIndex(), CTemplateScoringMethod::LoadInfo(), CSpectrumSet::LoadMGF(), CSpectrumSet::LoadMultDTA(), CTextDataSource::LoadXml(), CId1FetchApp::LookUpGI(), SeqTreeAPI::makeTree(), CCrossAlnPane::MZHH_ZoomPoint(), OMSSACallback(), CScoreCache::OnAJNotification(), CFeatureGraph::OnAJNotification(), CSearchToolBase::OnAJNotification(), CSparseMultiDataSource::OnAppJobNotification(), CAlnVecMultiDataSource::OnAppJobNotification(), CAppJobTask::OnAppJobNotification(), CAppJobTask::OnAppJobProgress(), CProjectTreePanel::OnBeginDrag(), CEventHandler::OnEvent(), CwxNCBIApp::OnIdle(), CGridCgiSampleApplication::OnJobDone(), CTextDataSource::OnJobNotification(), CNCMessageHandler::OnOverflow(), CTextDataSource::OnProgress(), CSearchToolBase::OnProgress(), Matrix::operator[](), Vector::operator[](), CAbstractProjectItem::PostRead(), CRemoteAppClientSampleApp::PrintJobInfo(), CBlastFormat::PrintOneResultSet(), CCgiSampleApplication::ProcessRequest(), CMSPeak::ReadAndProcess(), ReadBlock(), CSearchHelper::ReadCompleteSearch(), CSearchHelper::ReadFile(), ReadId(), CQueue::ReadJobs(), CSearchHelper::ReadModFiles(), ReadOctetString(), CSearchHelper::ReadSearchRequest(), ReadString(), ReadValue(), RecoverSearchStrategy(), CAccelTable::RegisterAccelerator(), CUICommandRegistry::RegisterCommand(), CUIToolRegistry::RegisterTemplateTool(), CUIToolRegistry::RegisterTool(), CDataMiningService::RegisterTool(), CObjectIndex::Remove(), CNetCacheAPI::Remove(), CMenuService::RemoveContributor(), CDataMiningService::RemoveContributor(), CQueueWorkerNodeList::RemoveJob(), CAlnVecRow::RenderColumn(), CQueue::ReturnJob(), CSampleObjmgrApplication::Run(), CSampleNetScheduleNode::Run(), CSampleNetCacheClient::Run(), CSampleLdsApplication::Run(), CAVApp::Run(), CNCBIwxApplication::Run(), CAppJobTask::Run(), CWig2tableApplication::Run(), CNetScheduleDApp::Run(), CId1FetchApp::Run(), CSaveToNetCacheApp::Run(), CNetScheduleCheck::Run(), CNetCacheControl::Run(), CPsiBlastApp::Run(), CXcompareAnnotsApplication::Run(), COMSSAMerge::Run(), COMSSA::Run(), CReadresult::Run(), CSRSearchApplication::Run(), CMkIndexApplication::Run(), CAsn2Asn::RunAsn2Asn(), CBlastArgs::s_CreateBlastOptions(), s_Dump(), s_GetMaskLoc(), s_ImportSearchStrategy(), s_ProgressCallback(), CSearchHelper::SaveAnyFile(), ScanForCpGs(), CSearch< LEGACY, NHITS >::Search(), CSeqMaskerIstat::set_min_count(), CDiagContext::SetAppName(), CRequestContext::SetClientIP(), CMSPeak::SetComputedCharge(), CDiagContext::SetHostIP(), CSearch< LEGACY, NHITS >::SetIons(), CUIToolRegistry::SetMaxMRUSize(), CUIToolRegistry::SetMRUToolNames(), CQueueWorkerNodeList::SetPort(), CSearch< LEGACY, NHITS >::SetResult(), COMSSABase::SetSearchSettings(), CProjectView::SetSelection(), CJobStatusTracker::SetStatus(), COMSSABase::SetThreadCount(), sGetMessageAndReport(), CAppJobDispatcher::ShutDown(), SkipComments(), SkipWhiteSpace(), CSearch< LEGACY, NHITS >::Spectrum2Peak(), CSearchToolBase::StartSearch(), SNetICacheClientImpl::StickToServerAndExec(), CQueueWorkerNodeList::UpdateJob(), CSearchHelper::ValidateSearchSettings(), VectorRemoveElements(), CPipeProcessWatcher_Base::Watch(), CFeatureGraph::x_CancelJob(), CQueue::x_ChangeGroupStatus(), CQueue::x_CheckExecutionTimeout(), CAffinityDict::x_CheckToken(), CWindowManager::x_CloseClient(), CEUtilsApp::x_CreateLitRequest(), CEUtilsApp::x_CreateSeqRequest(), CEUtilsApp::x_CreateTaxRequest(), CWig2tableApplication::x_Error(), CCompareSeqRegions::x_GetPutativeMatches(), CAppJobDispatcher::x_GetRegisteredEngine(), CBlastScopeSource::x_InitBlastDatabaseDataLoader(), CNetBLASTUIDataSource::x_InitDatabases(), TestUtil::CBlastOM::x_InitGenbankDataLoader(), CBlastScopeSource::x_InitGenbankDataLoader(), CId2FetchApp::x_InitPubSeqConnection(), CUIToolRegistry::x_LoadTemplateTool(), CGraphTrack::x_OnJobCompleted(), CSnpTrack::x_OnJobCompleted(), CLDBlockTrack::x_OnJobCompleted(), CHapmapTrack::x_OnJobCompleted(), CGapTrack::x_OnJobCompleted(), CBinsTrack::x_OnJobCompleted(), CSearchToolBase::x_OnJobCompleted(), CFeatureGraph::x_OnJobFailed(), CSearchToolBase::x_OnJobFailed(), CId2FetchApp::x_ProcessData(), CMakeBlastDBApp::x_ProcessInputData(), CBlastDBCmdApp::x_ProcessSearchRequest(), CXcompareAnnotsApplication::x_ProcessSeqAlignSetFromFile(), CBlastDBCmdApp::x_ProcessSingleQuery(), CUIToolRegistry::x_ReadToolInfo(), CAffinityDict::x_RemoveToken(), CAlnMultiRenderer::x_Render(), CAlnMultiPane::x_Render(), CAppTaskService::x_ReportTaskFailure(), CInstancedAligner::x_RunAligner(), CId2FetchApp::x_SendRequestPacket(), CCleanupApp::x_SeqIdToGiNumber(), CAsn2FlatApp::x_SeqIdToGiNumber(), CAsn2FastaApp::x_SeqIdToGiNumber(), CSeqMap::x_SetSeq_data(), CGBenchApplication::x_StartMonitor(), CScoreCache::x_TransferResults(), CQueue::x_UpdateDB_GetJobNoLock(), CQueue::x_UpdateDB_PutResultNoLock(), CAffinityDict::~CAffinityDict(), CBDB_CacheIReader::~CBDB_CacheIReader(), CBuildDatabase::~CBuildDatabase(), CCgiSession::~CCgiSession(), CCgiSession_NetCache::~CCgiSession_NetCache(), CDockPanel::~CDockPanel(), CSQLITE_StatementLock::~CSQLITE_StatementLock(), CTmpStreamGuard::~CTmpStreamGuard(), and STmpDirGuard::~STmpDirGuard().

#define ERR_POST_EX err_code,
err_subcode,
message   ) 
 

Value:

( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO).GetRef()   \
      << NCBI_NS_NCBI::ErrCode( (err_code), (err_subcode) ) \
      << message                                            \
      << NCBI_NS_NCBI::Endm )
Error posting with error codes.

This macro should be used only when you need to make non-constant error subcode. In all other cases it's strongly recomended to move in all projects (except tests) to macro ERR_POST_X to make possible more flexible error statistics and logging.

See also:
ERR_POST, ERR_POST_X

Definition at line 202 of file ncbidiag.hpp.

Referenced by CAlignFormatUtil::BlastPrintError(), and AbstractLexer::LexerWarning().

#define ERR_POST_N_TIMES count,
message   )     NCBI_REPEAT_POST_N_TIMES( ERR_POST, count, (message) )
 

Error posting only given number of times during program execution.

Definition at line 565 of file ncbidiag.hpp.

#define ERR_POST_ONCE message   )     ERR_POST_N_TIMES(1, message)
 

Error posting only once during program execution.

Definition at line 572 of file ncbidiag.hpp.

Referenced by CNcbiRegistry::x_Init(), CDiagContext::x_PrintMessage(), and CDiagContext::x_StartRequest().

#define ERR_POST_X err_subcode,
message   )     ERR_POST_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 

Error posting with default error code and given error subcode.

Also checks subcode correctness. When error subcode is incorrect (greater than defined in NCBI_DEFINE_ERRCODE_X) compile-time error is issued. All calls to ERR_POST_X or LOG_POST_X under the same default error code MUST be with deferent error subcodes to make possible more flexible error statistics and logging. If using of macro leads to compile errors containing in message strings like "err_code_x" or "ErrCodeX" then you didn't defined error code name with NCBI_DEFINE_ERRCODE_X macro or didn't selected current default error code with valid NCBI_USE_ERRCODE_X definition. This macro allows the use of only constant error subcodes (integer literals or enum constants). If you need to make variable error subcode you need to use macro ERR_POST_EX as follows:

NCBI_DEFINE_ERRCODE_X(Corelib_Util, 110, 5); ... define NCBI_USE_ERRCODE_X Corelib_Util ... ERR_POST_EX(NCBI_ERRCODE_X, my_subcode, "My error message with variables " << var);

Or in more complicated way:

NCBI_DEFINE_ERRCODE_X(Corelib_Util, 110, 5); ... no need to define NCBI_USE_ERRCODE_X ... ERR_POST_EX(NCBI_ERRCODE_X_NAME(Corelib_Util), my_subcode, "My error message with variables " << var);

It's strongly recomended to use macro NCBI_CHECK_ERR_SUBCODE_X (or NCBI_CHECK_ERR_SUBCODE_X_NAME in complicated case) to check validity of error subcodes in places where variable 'my_subcode' is assigned.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, ERR_POST_EX

Definition at line 516 of file ncbidiag.hpp.

Referenced by CSeqsRange::Add(), CCgiCookies::Add(), CCodeGenerator::AddConfigLine(), CFeature_table_reader_imp::AddFeatQual(), CFileModules::AddModule(), AlignmentDisplay::AlignmentDisplay(), AlignmentSet::AlignmentSet(), CSerialObject::Assign(), CContainerTypeInfo::Assign(), CTime::AsString(), CAV_DisplayMultiple(), CConn_Streambuf::CConn_Streambuf(), CheckBinaryTruncation(), CWNJobsWatcher::CheckInfinitLoop(), CDataTypeModule::CheckNames(), CTaxon1::CheckOrgRef(), CheckStringTruncation(), CArg_OutputFile::CloseFile(), CArg_InputFile::CloseFile(), CNCBlobStorage::CNCBlobStorage(), CNetCacheServer::CNetCacheServer(), CDBAPI_CacheAdmin::Connect(), CMSModSpecSet::CreateArrays(), CDbapiSampleApp::CreateConnection(), CNCDBFile::CreateIndexDatabase(), CServer::CreateRequest(), CSafeStaticLifeSpan::CSafeStaticLifeSpan(), CSmallDNS::CSmallDNS(), CTLibContext::CTLIB_cterr_handler(), CTLibContext::CTLIB_srverr_handler(), CProcess::Daemonize(), CDBLibContext::DBLIB_dbmsg_handler(), CObjectMemoryPool::Delete(), TextRow::DeleteGaps(), DestinationFile::DestinationFile(), DisableSuppressSystemMessageBox(), SNetServiceImpl::DiscoverServers(), CObject::DoDeleteThisObject(), CDataSource::DropAllTSEs(), CNcbiApplication::DryRun(), AlignmentDisplay::DumpCondensed(), AlignmentDisplay::DumpFASTA(), AlignmentDisplay::DumpText(), CSQLITE_Global::EnableSharedCache(), CNcbiRelocateCommand::Execute(), CObjectIStream::ExpectedMember(), CNetServerGroup::FindServer(), NStr::FormatVarargs(), CCodeGenerator::GenerateClientCode(), CFileCode::GenerateCPP(), CFileCode::GenerateHPP(), CCodeGenerator::GenerateModuleCPP(), CCodeGenerator::GenerateModuleHPP(), CId1Reader::GetBlobVersion(), AlignmentDisplay::GetCharAt(), CObjectMemoryPoolChunk::GetChunk(), GetCtlibTdsVersion(), CDbapiSampleApp::GetDriverContext(), CBlobStreamHelper::GetIStream(), CGridThreadContext::GetJob(), CSmallDNS::GetLocalHost(), CTaxon1::GetNodeProperty(), CCgiResponse::GetOutput(), CDirEntry::GetTmpName(), CArgErrorHandler::HandleError(), CDB_UserHandler_Exception::HandleIt(), CDB_UserHandler_Diag::HandleIt(), CNcbiRegistry::IncludeNcbircIfAllowed(), IndexAlnLocToSeqLocRow::InsertGaps(), TextRow::InsertGaps(), IsSameBioseq(), TextRow::IsSqueezable(), CGridThreadContext::JobDelayExpiration(), CCodeGenerator::LoadConfig(), LoadedChunksPacket(), CScheduler_ExecThread_Impl::Main(), CFileCode::ModifiedByUser(), DTDParser::Module(), ASNParser::ModuleBody(), XSDParser::ParseHeader(), WSDLParser::ParseHeader(), XSDParser::ParseList(), XSDParser::ParseMaxOccurs(), XSDParser::ParseMinOccurs(), XSDParser::ParseUnion(), CFileModules::PrintDTDModular(), CFileModules::PrintSampleDEF(), CFileModules::PrintXMLSchemaModular(), CDataTool::ProcessData(), CProcessor_SE_SNP::ProcessObjStream(), CProcessor_SE::ProcessObjStream(), CGridCgiApplication::ProcessRequest(), CCgiRedirectApplication::ProcessRequest(), CByteSourceReader::Pushback(), CSQLITE_Global::RegisterCustomVFS(), CObjectManager::RegisterDataLoader(), CObjectManager::ReleaseDataSource(), CFileObsolete::Remove(), CObject::RemoveLastReference(), CLDS_Query::ReportDuplicateObjectSeqId(), CODBC_Reporter::ReportErrors(), CPtrToObjectExProxy::ReportIncompatibleType(), CObjectCounterLocker::ReportIncompatibleType(), CPluginManagerGetterImpl::ReportKeyConflict(), CNcbiArguments::Reset(), CNcbiEnvironment::Reset(), CScopeTransaction_Impl::RollBack(), CDbapiSampleApp::Run(), CDBAPI_CacheAdmin::Run(), CThreadedServer::Run(), CGridWorkerNode::Run(), CServer::Run(), CCgiApplication::Run(), s_ConvertTaskResult(), s_FillModuleListTH32(), s_HandleError(), s_LoadGuide(), s_ParseErrCodeInfoStr(), s_ProcessECNumberLine(), s_ProcessInstitutionCollectionCodeLine(), s_ServiceConnectorBuilder(), s_SetContainerData(), SequenceSet::SequenceSet(), CDiagContext::SetAppState(), CRWStreambuf::setbuf(), CSQLITE_Global::SetCustomMallocFuncs(), CSQLITE_Global::SetCustomPageCache(), SetDoubleDiagHandler(), CObjectOStream::SetFailFlags(), CNcbiApplication::SetFullVersion(), CGridThreadContext::SetJobRunTimeout(), CChoicePointerTypeInfo::SetPointerType(), CSplitCacheApp::SetupCache(), CDiagContext::SetupDiag(), CArgDescriptions::SetUsageContext(), CNcbiApplication::SetVersion(), SourceFile::SourceFile(), SourceToProduct(), AlignmentDisplay::Squeeze(), CSeq_loc_Mapper_Base::sx_GetExonPartLength(), CSeqTableColumnInfo::UpdateSeq_feat(), CSeqTableColumnInfo::UpdateSeq_loc(), CSymbolGuard::UpdateSymbols(), CValidError_imp::Validate(), CValidError_bioseq::ValidateSegRef(), VerifyAlignmentData(), CObjectOStreamXml::WriteContainerContents(), CFileCode::WriteUserFile(), CReader::x_AbortConnection(), CCgiApplication::x_AddLBCookie(), CGridWorkerNode::x_AreMastersBusy(), CNcbiTestApplication::x_CallUserFuncs(), CCgiCookies::x_CheckField(), CBDB_RawFile::x_Close(), CBDB_Cache::x_DropOverflow(), CGFFReader::x_Error(), CPhrapReader::x_FindSeq(), CCgiApplication::x_GetContext(), CCgiApplication::x_GetResource(), CCgiContext::x_GetServerContext(), CWorkerNodeRequest::x_HandleProcessError(), CGridThreadContext::x_HandleRunJobError(), CGFFReader::x_Info(), CSeq_align_Mapper_Base::x_Init(), CNcbiRegistry::x_Init(), CSeq_loc_Mapper_Base::x_InitAlign(), CSeq_annot_Info::x_InitFeatTableKeys(), CSeq_loc_Mapper_Base::x_InitSparse(), CSeq_loc_Mapper_Base::x_InitSpliced(), CNCMessageHandler::x_ManageCmdPipeline(), CSeq_annot_Info::x_MapAnnotObject(), CSeq_loc_Mapper_Base::x_MapInterval(), CNCBlobStorage::x_MonitorError(), CNCBlobStorage::x_ParseTimestampParam(), CId2ReaderBase::x_ProcessGetChunk(), CId2ReaderBase::x_ProcessGetSplitInfo(), CNcbiTestApplication::x_ReadConfiguration(), CObjectManager::x_RegisterLoader(), SNetScheduleExecuterImpl::x_RegUnregClient(), CNCMessageHandler::x_ReportException(), CObjectManager::x_RevokeDataLoader(), CEnvironmentRegistry::x_SetComment(), CException::x_ThrowSanityCheck(), CSysLog::x_TranslateFlags(), CNcbiApplication::x_TryMain(), CGFFReader::x_Warn(), CObjectOStream::ByteBlock::~ByteBlock(), CObjectIStream::ByteBlock::~ByteBlock(), CAutoTrans::~CAutoTrans(), CBDB_Volumes::~CBDB_Volumes(), CBlobStorage_File::~CBlobStorage_File(), CObjectOStream::CharBlock::~CharBlock(), CObjectIStream::CharBlock::~CharBlock(), CIStreamBuffer::~CIStreamBuffer(), CNCBlobLockHolder::~CNCBlobLockHolder(), CObject::~CObject(), CObjectIStream::~CObjectIStream(), CObjectManager::~CObjectManager(), CObjectOStream::~CObjectOStream(), CObjectOStreamAsnBinary::~CObjectOStreamAsnBinary(), COStreamBuffer::~COStreamBuffer(), CQueryParserEnv::~CQueryParserEnv(), CScopeTransaction::~CScopeTransaction(), CScopeTransaction_Impl::~CScopeTransaction_Impl(), CServer_ConnectionPool::~CServer_ConnectionPool(), CYieldingRWLock::~CYieldingRWLock(), and SNetServerMultilineCmdOutputImpl::~SNetServerMultilineCmdOutputImpl().

#define ERR_POST_X_N_TIMES count,
err_subcode,
message   )     NCBI_REPEAT_POST_N_TIMES( ERR_POST_X, count, (err_subcode, message) )
 

Error posting only given number of times during program execution with default error code and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, ERR_POST_X

Definition at line 586 of file ncbidiag.hpp.

#define ERR_POST_X_ONCE err_subcode,
message   )     ERR_POST_X_N_TIMES(1, err_subcode, message)
 

Error posting only once during program execution with default error code and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, ERR_POST_X

Definition at line 600 of file ncbidiag.hpp.

Referenced by impl::CConnection::CheckCanOpen(), CDiagContext::SetupDiag(), CObjectOStream::SetVerifyDataGlobal(), and CObjectOStream::SetVerifyDataThread().

#define ERR_POST_XX error_name,
err_subcode,
message   ) 
 

Value:

( (NCBI_CHECK_ERR_SUBCODE_X_NAME(error_name, err_subcode)),            \
      ERR_POST_EX(NCBI_ERRCODE_X_NAME(error_name), err_subcode, message) )
Error posting with error code having given name and with given error subcode.

Macro must be placed in headers instead of ERR_POST_X to not confuse default error codes used in sources where this header is included.

See also:
NCBI_DEFINE_ERRCODE_X, ERR_POST_X

Definition at line 532 of file ncbidiag.hpp.

Referenced by CBlobStorage_NetCache::CreateOStream(), CThreadInPool< TRequest >::Main(), CBlobStorage_NetCache::Reset(), CBDB_RangeMap< TBV >::~CBDB_RangeMap(), CLockVector< BV >::~CLockVector(), CLockVectorGuard< TLockVect >::~CLockVectorGuard(), and CPoolOfThreads< TRequest >::~CPoolOfThreads().

#define ERR_POST_XX_N_TIMES count,
error_name,
err_subcode,
message   ) 
 

Value:

NCBI_REPEAT_POST_N_TIMES( ERR_POST_XX, count,                      \
                              (error_name, err_subcode, message) )
Error posting only given number of times during program execution with given error code name and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, ERR_POST_XX

Definition at line 616 of file ncbidiag.hpp.

#define ERR_POST_XX_ONCE error_name,
err_subcode,
message   )     ERR_POST_XX_N_TIMES(1, error_name, err_subcode, message)
 

Error posting only once during program execution with given error code name and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, ERR_POST_XX

Definition at line 631 of file ncbidiag.hpp.

#define LOG_POST message   ) 
 

Value:

( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO,   \
      eDiag_Error,                                 \
      eDPF_Log | eDPF_IsMessage).GetRef()          \
      << message                                   \
      << NCBI_NS_NCBI::Endm )
Log message only without severity, location, prefix information.

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro LOG_POST_X to make possible more flexible error statistics and logging.

See also:
LOG_POST_EX, LOG_POST_X

Definition at line 187 of file ncbidiag.hpp.

Referenced by CQueueClientInfoList::AddClientInfo(), CProjectService::AddProjectView(), CScoreBuilder::AddScore(), CGuiRegistry::AddSite(), CAppTaskService::AddTask(), CWindowManagerService::AddToolBarContext(), CWindowManagerService::AddToolBarFactory(), CViewManagerService::AddToWorkbench(), CCyclicDepends::AnalyzeProjItem(), MultipleAlignment::appendAlignment(), BOOST_AUTO_TEST_CASE(), CAppTaskService::CancelTask(), CGBDocument::CGBDocument(), CGlOsContext::CGlOsContext(), CDUpdater::checkBlastAndUpdate(), CDUpdater::checkDone(), CGlUtils::CheckGlError(), CPrimeNumberClient::CheckProgress(), CPrimeNumberClient::CheckStatus(), CPluginVersion::CheckVersion(), CFeatTableDS::Clear(), CGenBankUIDataSource::Close(), CQueueDataBase::Close(), ConvertToPairwise(), createAnnot(), CreateDllBuildTree(), CEntrezDB::CreateGene_Gene(), CSQLITE3_BlobCacheCF::CreateInstance(), CAlignCleanup::CreatePairwiseFromMultiple(), CGBDocument::CreateProjectScope(), CTimedReporter::CTimedReporter(), CGlFeedbackFont::DecodeText(), CSGGenBankDS::DeleteAllJobs(), CSampleJob::Do(), CRemoteCgiJob::Do(), CRemoteAppJob::Do(), SMsvcProjectT::DoCreate(), SAsnProjectMultipleT::DoCreate(), SAsnProjectSingleT::DoCreate(), SDllProjectT::DoCreate(), CBDB_CheckPointThread::DoJob(), CAlignGlyph::DrawPWAlignElem(), SequenceTable::dump(), HitDistributor::dump(), CWig2tableApplication::DumpAnnot(), CGlUtils::DumpState(), CEventHandler::CPostQueue::ExecuteFirstRequest(), CNetServer::ExecWithRetry(), SMakeProjectT::ExtractConfigurableDefine(), CRgbaGradColorTable::FillGradient(), CTestDispatcher::Fire(), CEventHandler::FireEvent(), CTestDispatcher::FireFirst(), CJob::Flush(), CProjBulderApp::GenerateUnixProjects(), CGlUtils::GetAccelerated(), CSQLITE3_Cache::GetAccessTime(), CSQLITE3_Cache::GetBlobOwner(), CColumnScoringMethod::GetColorForScore(), CDUpdater::getHits(), CTempTrackProxy::GetId(), CMsvcSite::GetLibInclude(), CGBProjectHandle::GetNextId(), CSequenceGotoData::GetRange(), CProjectView::GetSelection(), CViewManagerService::GetSingletonView(), CSQLITE3_Cache::GetSize(), CNetBLASTUILoadManager::GetTask(), CTaxTreeDS_ObjMgr::GetTaxMap(), CSampleJobCleanupListener::HandleEvent(), CCleanupApp::HandleSeqEntry(), CWorkbench::Init(), CViewManagerService::InitService(), CVisibleRangeService::InitService(), CUIDataSourceService::InitService(), CSelectionService::InitService(), CProjectService::InitService(), CDataMiningService::InitService(), CAppExplorerService::InitService(), CViewGraphic::InitView(), CWinMaskConfig::CIdSet_TextMatch::insert(), CWinMaskConfig::CIdSet_SeqId::insert(), CQueue::IsExpired(), CGlTexture::Load(), CGlWidgetBase::LoadSettings(), LoadTableSettings(), CUIToolRegistry::LoadTemplateToolsInfo(), CDockLayoutTree::LogPost(), CDockLayoutTree::CNode::LogPost(), CSQLITE3_Cache::CWriterThread::Main(), CGlOsContext::MakeCurrent(), CGlTexture::MakeCurrent(), CQueueDataBase::MountQueue(), CSeqGraphicDemoDlg::OnAccClick(), CFrameworkDemoGUI::OnActiveClientChanged(), CFrameworkDemoGUI::OnClientAboutToClose(), CFrameworkDemoGUI::OnClientClosed(), CMapControl::OnContextMenu(), CTestDispatcher::OnEventReceipt(), CTestReceiver::OnEventReceipt(), CAppJobEventTranslator::OnJobProgress(), CAppJobEventTranslator::OnJobStateChanged(), CwxDemoTableCtrlFrame::OnOpenClick(), CwxMainFrame::OnPostEventsClick(), CDataMiningPanel::OnSearchFinished(), CwxMainFrame::OnTestEvent(), CNCMessageHandler::OnTimeout(), CNCMessageHandler::OnTimer(), CGenBankUIDataSource::Open(), CNetBLASTUIDataSource::Open(), CSQLITE3_Cache::Open(), CBDB_Cache::Open(), CQueueDataBase::Open(), PLibExclude::operator()(), PIsExcludedByProjectMakefile::operator()(), CPrintTextProxy::operator<<(), CDUpdater::overlapWithCDRow(), CEventHandler::CPostQueue::Post(), PrintContext(), CRemoteAppClientSampleApp::PrintJobInfo(), CBLASTParams::PrintParams(), CAppJobRequest::Process(), CTruncateRequest::Process(), CDUpdater::processBlastHits(), GroupUpdater::processBlastHits(), CNetScheduleHandler::ProcessJobRunTimeout(), CProjBulderApp::ProcessLocationMacros(), CNetScheduleHandler::ProcessLog(), CMsvcSite::ProcessMacros(), CGlCgiImageApplication::ProcessRequest(), CGBenchIndexCgi::ProcessRequest(), CNetScheduleHandler::ProcessShutdown(), CSQLITE3_Cache::Purge(), CSQLITE3_Cache::Read(), SNS_Parameters::Read(), CReadHook_SkipError::ReadObject(), CFormatReadHook::ReadObject(), ReadProject(), CProjectItem::Refresh(), CViewManagerService::RegisterFactory(), CLayoutTrack::RegisterIconImage(), CDataMiningService::RegisterTool(), CGlTextureManager::Release(), CAppExplorerService::Remove(), CWindowManagerService::RemoveToolBarContext(), CSeqTestApplication::Render(), CSymResolver::Resolve(), CFrameworkDemoGUI::RestoreWindowLayout(), CGBenchGUI::RestoreWindowLayout(), CDUpdater::retrieveAllSequences(), CSubImageApp::Run(), CImageTestApp::Run(), CConvImageApp::Run(), CSampleNetScheduleNode::Run(), CSampleIdleTask::Run(), CSampleLdsApplication::Run(), CEntrez2ClientApp::Run(), CNCBIwxApplication::Run(), CTextRetrieveJob::Run(), CScoringJob::Run(), CBuildSparseAlnJob::Run(), CBuildAlnVecJob::Run(), CTestDispatchApp::Run(), CPeriodicTestJob::Run(), CPrimeNumbersJob::Run(), CEditAppJob::Run(), CGffExportJob::Run(), CFlatFileExportJob::Run(), CPhyExportJob::Run(), CNetBlastMonitoringJob::Run(), CNetBlastSubmittingJob::Run(), CProjectServiceTestJob::Run(), CDataLoadingAppJob::Run(), CAsnExportJob::Run(), CThreadedApp::Run(), CProjBulderApp::Run(), CWig2tableApplication::Run(), CStreamTestApp::Run(), CObjExtractApp::Run(), CNetScheduleDApp::Run(), CGi2TaxIdApp::Run(), CBDBEnvKeeperApp::Run(), CXcompareAnnotsApplication::Run(), CQueueDataBase::RunExecutionWatcherThread(), CQueueDataBase::RunNotifThread(), CQueueDataBase::RunPurgeThread(), s_AttachEntryToScope(), s_DetachAnnotFromScope(), s_DetachEntryFromScope(), s_passes_bitfield(), CGBProjectHandle::Save(), CGlWidgetBase::SaveSettings(), CPkgManager::ScanPackages(), CGBenchService::SendFeedbackReport(), CGeneOverlapProcess::SeqEntryProcess(), CFastaProcess::SeqEntryProcess(), CDeflineProcess::SeqEntryProcess(), CCleanupProcess::SeqEntryProcess(), CBDB_FieldString::Set(), CPkgManager::SetAppPkg(), CProjectItemPrx::SetDescr(), CNetSchedule_AccessList::SetHosts(), CQueueWorkerNodeList::SetPort(), SetWinRegVariable(), CUndoManager::ShowErrorMsg(), ShowFeedbackDialog(), CSchedulerEngine::ShutDown(), CWorkbench::ShutDown(), CViewManagerService::ShutDownService(), CVisibleRangeService::ShutDownService(), CSelectionService::ShutDownService(), CProjectService::ShutDownService(), CDataMiningService::ShutDownService(), CAppExplorerService::ShutDownService(), sMRUListToCombo(), sReportDSExceptionToLog(), sReportLoadExceptionToLog(), CPrimeNumberClient::StartJobs(), CSQLITE3_Cache::CWriterThread::Stop(), CQueueDataBase::StopExecutionWatcherThread(), CQueueDataBase::StopNotifThread(), CQueueDataBase::StopPurgeThread(), CQueue::SubmitBatch(), CDUpdater::submitBlast(), SeqSwapper::swapSequences(), sx_Compact(), CFeatTableDS::Update(), CDUpdater::update(), CGeneModelConfig::UpdateSettings(), CChangeSeqFeatCommand::x_Add(), CNetBLASTUIDataSource::x_AddCategorizedDBs(), CNetBlastSubmittingJob::x_AddError(), x_AddQueueToMap(), CSGGenBankDS::x_BackgroundJob(), CAnnotCompareDS::x_BackgroundJob(), CAlignGlyph::x_CalcIntervals(), CSeqGraphicPane::x_ChangeSwitchPoint(), CNetScheduleHandler::x_CheckAccess(), CAlignCleanup::x_Cleanup_AnchoredAln(), CUIDataSourceService::x_CloseDataSources(), CFrameworkDemoApp::x_CreateGUI(), CGBenchFeedbackAgent::x_CreateGUI(), CGBenchApp::x_CreateGUI(), CProjectServiceTestJob::x_CreateItems(), CCleanupTool::x_CreateLoadingJob(), CFindOverlapJob::x_CreateProjectItems(), CAsnLoadJob::x_CreateProjectItems(), CAnnotCompareDS::x_DeleteAllJobs(), CProjectServiceTestJob::x_DeleteItems(), CFrameworkDemoApp::x_DestroyGUI(), CGBenchApp::x_DestroyGUI(), CAppHitFilter::x_DoMultiple(), CComponentSearchJob::x_DoSearch(), CRunToolDlg::x_DoTransition(), CAlignGlyph::x_DrawMultiAlign(), CAlignGlyph::x_DrawPWAlignElemSequence(), CSGSegmentsSeqIDJob::x_Execute(), CSGSegmentMapJob::x_Execute(), CAppTaskService::x_ExecuteNextTaskInQueue(), CDataMiningPanel::x_ExecuteSearch(), CProjectPrx::x_FixProjectTitle(), CEntrez2ClientApp::x_GetLinked(), CEntrez2ClientApp::x_GetLinks(), CEntrez2ClientApp::x_GetTermHierarchy(), CEntrez2ClientApp::x_GetTermList(), CEntrez2ClientApp::x_GetTermPos(), CHitMatrixDataSource::x_GoodSeg(), CGBenchApplication::x_HandleRemote(), CGlWidgetPane::x_Handlers_handle(), CId2FetchApp::x_InitConnection(), CUIDataSourceService::x_InitDataSourceTypes(), CGBenchApplication::x_InitGBenchService(), CwxNCBIApp::x_InitGuiRegistry(), CSampleLdsApplication::x_InitLDS(), CAlignSpanView::x_InitWidget(), CNetBLASTUIDataSource::x_LoadJobDescriptors(), CSixFramesTransTrack::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CFeatureTrack::x_LoadSettings(), CFeaturePanel::x_LoadSettings(), CEpigenomicsTrack::x_LoadSettings(), CGBenchGUI::x_LoadWindowLayout(), CProjectService::x_LoadWorkspace(), CSQLITE3_Statement::x_Log(), CPipeProcessWatcher::x_Log(), CProjectServiceTestJob::x_ModifyItems(), CNCBlobStorage::x_MonitorPost(), CNCMessageHandler::x_MonitorPost(), CNetBlastJobDescriptor::x_NotifyDataSource(), CFeaturePanel::x_OnColorIconClicked(), CFeaturePanel::x_OnDecorationIconClicked(), CTrackContainer::x_OnJobCompleted(), CSixFramesTransTrack::x_OnJobCompleted(), CSegmentMapTrack::x_OnJobCompleted(), CGeneModelTrack::x_OnJobCompleted(), CFeatureTrack::x_OnJobCompleted(), CEpigenomicsTrack::x_OnJobCompleted(), CAlignmentTrack::x_OnJobCompleted(), CAppJobDispatcher::x_OnJobStateChangedEvent(), CAppJobDispatcher::x_OnJobStateChangedNotify(), CFeaturePanel::x_OnLabelIconClicked(), CPrintDlg::x_OnOK(), CFeaturePanel::x_OnSizeIconClicked(), CUIDataSourceService::x_OpenDataSources(), CProjectServiceTestJob::x_PrintItems(), CXcompareAnnotsApplication::x_ProcessComparison(), CMRUCache::x_ReadCacheFile(), CPhyloTreeCGIApplication::x_RenderImage(), CProjectTask::x_Run(), CProjectServiceTestTask::x_Run(), CGBenchApplication::x_Run(), CGBenchGUI::x_SaveDefaultWindowLayout(), CwxNCBIApp::x_SaveGuiRegistry(), CNetBLASTUIDataSource::x_SaveJobDescriptors(), CWindowManagerService::x_ShowToolBar(), CWorkbench::x_ShutDownServices(), CSnpTableModel::x_StartFilterJob(), CSnpTableModel::x_StartLoadJob(), CGBenchApplication::x_StartMonitor(), CGBenchApplication::x_StopMonitor(), CGBenchApplication::x_TestGuiRegistry(), CDataMiningPanel::x_UpdateWidgetAndTool(), CPkgManager::x_ValidatePackage(), CAppJobDispatcher::x_VerifyProgressNotNull(), CNetBLASTUIDataSource::x_WaitForDBLoadJob(), CSchedulerEngine::x_WorkOnThread(), CProjectFileWriter::x_WriteObject(), CAlnVecMultiDataSource::~CAlnVecMultiDataSource(), CClockPanelWMClient::~CClockPanelWMClient(), CGBDocument::~CGBDocument(), CObjectPool< C >::~CObjectPool(), CSchedulerEngine::~CSchedulerEngine(), CSparseMultiDataSource::~CSparseMultiDataSource(), CSQLITE3_Cache::~CSQLITE3_Cache(), CTimedReporter::~CTimedReporter(), CWorkspacePrx::~CWorkspacePrx(), and SW::~SW().

#define LOG_POST_EX err_code,
err_subcode,
message   ) 
 

Value:

( NCBI_NS_NCBI::CNcbiDiag(eDiag_Error,                  \
      eDPF_Log | eDPF_IsMessage).GetRef()                   \
      << NCBI_NS_NCBI::ErrCode( (err_code), (err_subcode) ) \
      << message << NCBI_NS_NCBI::Endm )
Log posting with error codes.

This macro should be used only when you need to make non-constant error subcode. In all other cases it's strongly recomended to move in all projects (except tests) to macro LOG_POST_X to make possible more flexible error statistics and logging.

See also:
LOG_POST, LOG_POST_X

Definition at line 216 of file ncbidiag.hpp.

#define LOG_POST_N_TIMES count,
message   )     NCBI_REPEAT_POST_N_TIMES( LOG_POST, count, (message) )
 

Log posting only given number of times during program execution.

Definition at line 561 of file ncbidiag.hpp.

#define LOG_POST_ONCE message   )     LOG_POST_N_TIMES(1, message)
 

Log posting only once during program execution.

Definition at line 569 of file ncbidiag.hpp.

#define LOG_POST_X err_subcode,
message   )     LOG_POST_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 

Log posting with default error code and given error subcode.

See comments to ERR_POST_X for clarifying the way of use and details of behaviour of this macro.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, ERR_POST_X, LOG_POST_EX

Definition at line 524 of file ncbidiag.hpp.

Referenced by CSeq_annot::AddTitle(), CLDS_Object::BuildSeqIdIdx(), CBDB_Env::CleanLog(), CBDB_Cache::Close(), CNetCacheServer::CNetCacheServer(), CBDB_RawFile::CompactEx(), CLDS_Database::Create(), CBDB_CheckPointThread::DoJob(), EnabledDelayBuffers(), CSeq_id_not_set_Tree::FindMatch(), CSeq_id_not_set_Tree::FindReverseMatch(), g_GetConfigFlag(), g_GetConfigInt(), g_GetConfigString(), CRemoteAppRequestSB_Executer::Log(), CRemoteAppResultMB_Executer::Log(), CRemoteAppRequestMB_Executer::Log(), CReadDispatcher::LogStat(), CWorkerNodeIdleThread::Main(), CWNJobsWatcher::Notify(), CWorkerNodeIdleThread::OnExit(), CGridControlThread::OnExit(), CReader::OpenInitialConnection(), CBDB_Cache::OpenReadOnly(), CValidError_imp::PostErr(), CGBRequestStatistics::PrintStat(), CObjectsSniffer::ProbeASN1_Bin(), CShutdownProcessor::Process(), CRmOutReader::Read(), CImageIO::ReadImage(), CImageIO::ReadImageInfo(), CImageIO::ReadSubImage(), CBDB_Cache::RegisterOverflow(), CDbapiSampleApp::Run(), CGridWorkerNode::Run(), CNetCacheDApp::Run(), CBDB_Env::RunBackgroundWriter(), CGridThreadContext::RunJobs(), s_LogEnvParam(), s_ReportError(), CLDS_Object::SaveObject(), CLDS_Object::SaveObjects(), CRemoteAppRequestSB_Impl::Serialize(), CRemoteAppRequestMB_Impl::Serialize(), CSeq_loc::SetId(), CReader::SetMaximumConnections(), CBlobSplitterImpl::SplitPieces(), CBDB_Env::StopBackgroundWriterThread(), CBDB_Cache::StopPurgeThread(), CCgiStatistics::Submit(), CLDS_Manager::sx_CreateDB(), CLDS_Object::UpdateBinaryASNObject(), CLDS_Object::UpdateBinaryASNObjects(), CLDS_Object::UpdateFileObjects(), CBDB_Cache::Verify(), CImageIO::WriteImage(), CImageIO::WriteSubImage(), CNCBlobStorage::x_CheckDBInitialized(), CBDB_RawFile::x_Close(), CReader::x_DisconnectAtSlot(), CId2Reader::x_DisconnectAtSlot(), CId1Reader::x_DisconnectAtSlot(), CPromote::x_GetProductId(), CBDB_Env::x_Open(), CScope_Impl::x_ReportNewDataConflict(), CBDB_Cache::x_Store(), CLDS_File::x_SyncWithDir(), CDBAPI_CacheIWriter::~CDBAPI_CacheIWriter(), CId2ReaderBase::CDebugPrinter::~CDebugPrinter(), CLDS_Database::~CLDS_Database(), CNetCacheServer::~CNetCacheServer(), and CWorkerNodeControlServer::~CWorkerNodeControlServer().

#define LOG_POST_X_N_TIMES count,
err_subcode,
message   )     NCBI_REPEAT_POST_N_TIMES( LOG_POST_X, count, (err_subcode, message) )
 

Log posting only given number of times during program execution with default error code and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, LOG_POST_X

Definition at line 579 of file ncbidiag.hpp.

#define LOG_POST_X_ONCE err_subcode,
message   )     LOG_POST_X_N_TIMES(1, err_subcode, message)
 

Log posting only once during program execution with default error code and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_ERRCODE_X, LOG_POST_X

Definition at line 593 of file ncbidiag.hpp.

#define LOG_POST_XX error_name,
err_subcode,
message   ) 
 

Value:

( (NCBI_CHECK_ERR_SUBCODE_X_NAME(error_name, err_subcode)),            \
      LOG_POST_EX(NCBI_ERRCODE_X_NAME(error_name), err_subcode, message) )
Log posting with error code having given name and with given error subcode.

Macro must be placed in headers instead of LOG_POST_X to not confuse default error codes used in sources where this header is included.

See also:
NCBI_DEFINE_ERRCODE_X, LOG_POST_X

Definition at line 541 of file ncbidiag.hpp.

Referenced by CBDB_SplitCursor< BDB_SplitStore, BDB_Vol >::CBDB_SplitCursor(), CICacheCF< CNetICacheClient >::ConfigureTimeStamp(), CPluginManager< TClass >::CreateInstanceFromList(), CCacheCleanerThread::DoJob(), CSimpleJobFactoryEx< TWorkerNodeJob, TWorkerNodeIdleTask >::Init(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::~CBDB_BlobSplitStore(), and CBDB_ExtBlobStore< TBV >::~CBDB_ExtBlobStore().

#define LOG_POST_XX_N_TIMES count,
error_name,
err_subcode,
message   ) 
 

Value:

NCBI_REPEAT_POST_N_TIMES( LOG_POST_XX, count,                      \
                              (error_name, err_subcode, message) )
Log posting only given number of times during program execution with given error code name and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, LOG_POST_XX

Definition at line 608 of file ncbidiag.hpp.

#define LOG_POST_XX_ONCE error_name,
err_subcode,
message   )     LOG_POST_XX_N_TIMES(1, error_name, err_subcode, message)
 

Log posting only once during program execution with given error code name and given error subcode.

See also:
NCBI_DEFINE_ERRCODE_X, LOG_POST_XX

Definition at line 624 of file ncbidiag.hpp.

#define NCBI_CHECK_ERR_SUBCODE_X subcode   )     NCBI_CHECK_ERR_SUBCODE_X_NAME(NCBI_USE_ERRCODE_X, subcode)
 

Issue compile-time error if error subcode given is not valid for current error code.

Definition at line 438 of file ncbidiag.hpp.

#define NCBI_CHECK_ERR_SUBCODE_X_NAME name,
subcode   ) 
 

Value:

NCBI_NS_NCBI::CheckErrSubcodeX(                                   \
        (int)sizeof(NCBI_NS_NCBI::WRONG_ERROR_SUBCODE_IN_POST_MACRO<  \
              NCBI_ERRCODE_X_NAME(name), subcode,                     \
              NCBI_MAX_ERR_SUBCODE_X_NAME(name),                      \
              ((unsigned int)subcode >                                \
                    (unsigned int)NCBI_MAX_ERR_SUBCODE_X_NAME(name))  \
                                                                   >) \
                                  )
Issue compile-time error if error subcode given is not valid for given error code name.

This design is used for all compilers except early versions of gcc. Though for MIPSpro and ICC it's not enough to make error message clear (see addition below).

See also:
LOG_POST_X, ERR_POST_X

Definition at line 424 of file ncbidiag.hpp.

#define NCBI_CHECK_ERRCODE_USAGE name   ) 
 

Value:

inline void NCBI_NAME2(s_ErrCodeCheck_, name) (                 \
        NCBI_NS_NCBI::WRONG_USAGE_OF_DEFINE_ERR_SUBCODE_MACRO <     \
              NCBI_ERRCODE_X_NAME(name),                            \
              NCBI_NS_NCBI::err_code_x::eErrCodeX_Max_##name != 0>  \
                                                   err_subcode)     \
    {}
Check that NCBI_DEFINE_ERR_SUBCODE_X is used for correctly defined error code.

Definition at line 384 of file ncbidiag.hpp.

#define NCBI_CURRENT_FUNCTION   NCBI_NS_NCBI::g_DiagUnknownFunction()
 

Get current function name.

Defined inside of either a method or a function body only.

Definition at line 130 of file ncbidiag.hpp.

Referenced by CBlastSeqVectorFromCSeq_data::CBlastSeqVectorFromCSeq_data(), CSQLITE3_Cache::GetAccessTime(), CSQLITE3_Cache::GetBlobOwner(), CSQLITE3_Cache::GetSize(), CSQLITE3_Cache::Open(), CSQLITE3_Cache::Purge(), CSQLITE3_Cache::Read(), CDBLibContext::x_Close(), CBlastSeqVectorFromCSeq_data::x_Encoding_CSeq_data2CSeqUtil(), CSequenceDataTester::x_TestSingleNucleotide_Local(), CStaticArraySearchBase< PKeyValueSelf< KeyType >, KeyCompare >::x_Validate(), CAutoTrans::~CAutoTrans(), python::CCallableStmtHelper::~CCallableStmtHelper(), python::CConnection::~CConnection(), python::CCursor::~CCursor(), CDB_BCPInCmd::~CDB_BCPInCmd(), CDB_Connection::~CDB_Connection(), CDB_CursorCmd::~CDB_CursorCmd(), CDB_LangCmd::~CDB_LangCmd(), CDB_Result::~CDB_Result(), CDB_ResultProcessor::~CDB_ResultProcessor(), CDB_RPCCmd::~CDB_RPCCmd(), CDB_SendDataCmd::~CDB_SendDataCmd(), CDB_Stream::~CDB_Stream(), CDB_UserHandler_Diag::~CDB_UserHandler_Diag(), CDB_UserHandler_Stream::~CDB_UserHandler_Stream(), impl::CDBExceptionStorage::~CDBExceptionStorage(), CDBL_BCPInCmd::~CDBL_BCPInCmd(), CDBL_BlobResult::~CDBL_BlobResult(), CDBL_ComputeResult::~CDBL_ComputeResult(), CDBL_Connection::~CDBL_Connection(), CDBL_CursorCmd::~CDBL_CursorCmd(), CDBL_CursorResult::~CDBL_CursorResult(), CDBL_LangCmd::~CDBL_LangCmd(), CDBL_ParamResult::~CDBL_ParamResult(), CDBL_RowResult::~CDBL_RowResult(), CDBL_RPCCmd::~CDBL_RPCCmd(), CDBL_SendDataCmd::~CDBL_SendDataCmd(), CDBLibContext::~CDBLibContext(), CDblibContextRegistry::~CDblibContextRegistry(), CMemStore::~CMemStore(), CMySQL_Connection::~CMySQL_Connection(), CMySQL_LangCmd::~CMySQL_LangCmd(), CODBC_BCPInCmd::~CODBC_BCPInCmd(), CODBC_Connection::~CODBC_Connection(), CODBC_CursorCmd::~CODBC_CursorCmd(), CODBC_CursorCmdExpl::~CODBC_CursorCmdExpl(), CODBC_CursorResult::~CODBC_CursorResult(), CODBC_LangCmd::~CODBC_LangCmd(), CODBC_RowResult::~CODBC_RowResult(), CODBC_RPCCmd::~CODBC_RPCCmd(), CODBC_SendDataCmd::~CODBC_SendDataCmd(), CODBCContext::~CODBCContext(), CODBCContextRegistry::~CODBCContextRegistry(), ctlib::Command::~Command(), ctlib::Connection::~Connection(), impl::CResult::~CResult(), CSQLITE3_Cache::~CSQLITE3_Cache(), CStatementBase::~CStatementBase(), python::CStmtHelper::~CStmtHelper(), CTL_BCPInCmd::~CTL_BCPInCmd(), CTL_Cmd::~CTL_Cmd(), CTL_Connection::~CTL_Connection(), CTL_CursorCmd::~CTL_CursorCmd(), CTL_CursorCmdExpl::~CTL_CursorCmdExpl(), CTL_CursorResult::~CTL_CursorResult(), CTL_CursorResultExpl::~CTL_CursorResultExpl(), CTL_LangCmd::~CTL_LangCmd(), CTL_LRCmd::~CTL_LRCmd(), CTL_RowResult::~CTL_RowResult(), CTL_RPCCmd::~CTL_RPCCmd(), CTL_SendDataCmd::~CTL_SendDataCmd(), CTLibContext::~CTLibContext(), CTLibContextRegistry::~CTLibContextRegistry(), and python::CTransaction::~CTransaction().

#define NCBI_DEFINE_ERR_SUBCODE_X max_err_subcode   )     NCBI_DEFINE_ERR_SUBCODE_XX(NCBI_USE_ERRCODE_X, max_err_subcode)
 

Define maximum value of subcode for the error code currently in use.

Currently used error code is defined by macro NCBI_USE_ERRCODE_X. This macro is a simplified version of NCBI_DEFINE_ERR_SUBCODE_XX and can be handy to use when some error code is used only in one source file and no other error code is used in the same source file. To use this macro you must put 0 as max_err_subcode in NCBI_DEFINE_ERRCODE_X macro. Otherwise compilation error will occur. Macro MUST be used inside ncbi scope.

Example: NCBI_DEFINE_ERRCODE_X(Corelib_Util, 110, 0); ... define NCBI_USE_ERRCODE_X Corelib_Util NCBI_DEFINE_ERR_SUBCODE_X(5); ... ERR_POST_X(3, "My error message with variables " << var);

See also:
NCBI_DEFINE_ERRCODE_X, NCBI_DEFINE_ERR_SUBCODE_XX

Definition at line 285 of file ncbidiag.hpp.

#define NCBI_DEFINE_ERR_SUBCODE_XX name,
max_err_subcode   ) 
 

Value:

NCBI_CHECK_ERRCODE_USAGE(name)                              \
    namespace err_code_x {                                      \
        template <>                                             \
        struct NCBI_NAME2(SErrCodeX_Max_, name)<true> {         \
            enum {                                              \
                value = max_err_subcode                         \
            };                                                  \
        };                                                      \
    }
Define maximum value of subcode for particular error code name.

To use this macro you must put 0 as max_err_subcode in NCBI_DEFINE_ERRCODE_X macro. Otherwise compilation error will occur. Macro can be used only once per compilation unit. Macro MUST be used inside ncbi scope.

Example: NCBI_DEFINE_ERRCODE_X(Corelib_Util, 110, 0); ... NCBI_DEFINE_ERR_SUBCODE_XX(Corelib_Util, 5); ... define NCBI_USE_ERRCODE_X Corelib_Util ... ERR_POST_X(3, "My error message with variables " << var);

See also:
NCBI_DEFINE_ERRCODE_X

Definition at line 306 of file ncbidiag.hpp.

#define NCBI_DEFINE_ERRCODE_X name,
err_code,
max_err_subcode   ) 
 

Value:

namespace err_code_x {                                      \
        enum {                                                  \
            eErrCodeX_##name     = err_code,                    \
            eErrCodeX_Max_##name = max_err_subcode              \
        };                                                      \
        template <bool dummy>                                   \
        struct SErrCodeX_Max_##name {                           \
            enum {                                              \
                value = max_err_subcode,                        \
                dumm_dumm = int(dummy)                          \
            };                                                  \
        };                                                      \
    }                                                           \
    extern void err_code_x__dummy_for_semicolon(void)
Define global error code name with given value (err_code) and given maximum value of error subcode within this code.

To use defined error code you need to define symbol NCBI_USE_ERRCODE_X with name as its value. This error code is used only in macros LOG_POST_X and ERR_POST_X. Maximum value of error subcode is being checked during compilation and exists for developers to know what code they can use in next inserted ERR_POST_X call (i.e. when one want to insert new ERR_POST_X call he has to find definition of error code used in the source file, increase value of maximum subcode and put result in ERR_POST_X call). Definition of error code and its maximum subcode can be split into 2 independent macros to avoid recompilation of everything that includes header with error code definition. For more information about it see NCBI_DEFINE_ERR_SUBCODE_X. Macro MUST be used inside ncbi scope.

Example: NCBI_DEFINE_ERRCODE_X(Corelib_Util, 110, 5); ... define NCBI_USE_ERRCODE_X Corelib_Util ... ERR_POST_X(3, "My error message with variables " << var);

See also:
NCBI_DEFINE_ERR_SUBCODE_X, LOG_POST_X, ERR_POST_X, NCBI_ERRCODE_X, NCBI_MAX_ERR_SUBCODE_X

Definition at line 249 of file ncbidiag.hpp.

#define NCBI_ERRCODE_X   NCBI_ERRCODE_X_NAME(NCBI_USE_ERRCODE_X)
 

Returns currently set default error code.

Default error code is set by definition of NCBI_USE_ERRCODE_X with name of error code as its value.

See also:
NCBI_DEFINE_ERRCODE_X

Definition at line 328 of file ncbidiag.hpp.

Referenced by AbstractLexer::LexerWarning(), ReplaceVisibleChar(), CObjectOStream::ThrowError1(), CObjectIStream::ThrowError1(), CDataValue::Warning(), CDataType::Warning(), and CConn_Streambuf::x_LogIfError().

#define NCBI_ERRCODE_X_NAME name   )     NCBI_NS_NCBI::err_code_x::NCBI_NAME2(eErrCodeX_, name)
 

Returns value of error code by its name defined by NCBI_DEFINE_ERRCODE_X.

See also:
NCBI_DEFINE_ERRCODE_X

Definition at line 321 of file ncbidiag.hpp.

Referenced by CStaticArraySearchBase< PKeyValueSelf< KeyType >, KeyCompare >::x_Validate().

#define NCBI_MAKE_MODULE module   )     NCBI_AS_STRING(module)
 

Set default module name based on NCBI_MODULE macro.

See also:
DIAG_COMPILE_INFO

Definition at line 137 of file ncbidiag.hpp.

Referenced by CStaticArraySearchBase< PKeyValueSelf< KeyType >, KeyCompare >::x_Validate().

#define NCBI_MAX_ERR_SUBCODE_X   NCBI_MAX_ERR_SUBCODE_X_NAME(NCBI_USE_ERRCODE_X)
 

Returns maximum value of error subcode within current default error code.

See also:
NCBI_DEFINE_ERRCODE_X

Definition at line 339 of file ncbidiag.hpp.

#define NCBI_MAX_ERR_SUBCODE_X_NAME name   )     NCBI_NS_NCBI::err_code_x::NCBI_NAME2(SErrCodeX_Max_, name)<true>::value
 

Returns maximum value of error subcode within error code with given name.

See also:
NCBI_DEFINE_ERRCODE_X

Definition at line 333 of file ncbidiag.hpp.

#define NCBI_REPEAT_POST_N_TIMES post_macro,
count,
params   ) 
 

Value:

do {                                                        \
        static volatile int sx_to_show = (count);               \
        int to_show = sx_to_show;                               \
        if ( to_show > 0 ) {                                    \
            sx_to_show = to_show - 1;                           \
            post_macro params;  /* parenthesis are in params */ \
        }                                                       \
    } while ( false )
Common code for making log or error posting only given number of times during program execution.

This macro MUST not be used outside this header.

Definition at line 549 of file ncbidiag.hpp.


Typedef Documentation

typedef CSysLog CSysLogDiagHandler
 

Definition at line 127 of file syslog.hpp.

typedef void(* FAbortHandler)(void)
 

Abort handler function type.

Definition at line 1403 of file ncbidiag.hpp.

typedef void(* FDiagCleanup)(void *data)
 

Diagnostic cleanup function type.

Definition at line 2168 of file ncbidiag.hpp.

typedef void(* FDiagHandler)(const SDiagMessage &mess)
 

Diagnostic handler function type.

Definition at line 2165 of file ncbidiag.hpp.

typedef int TDiagPostFlags
 

Binary OR of "EDiagPostFlag".

Definition at line 744 of file ncbidiag.hpp.

typedef int TDiagUserAndHost
 

Definition at line 56 of file ncbi_userhost.hpp.

typedef map<string, string> CRequestContext::TProperties [inherited]
 

User-defined request properties.

Definition at line 134 of file request_ctx.hpp.

typedef int CRequestContext::TPropSet [private, inherited]
 

Definition at line 189 of file request_ctx.hpp.


Enumeration Type Documentation

enum EAppDiagStream
 

Where to write the application's diagnostics to.

Enumerator:
eDS_ToStdout  To standard output stream.
eDS_ToStderr  To standard error stream.
eDS_ToStdlog  Try standard log file (app.name + ".log") in /log/ and current directory, use stderr if both fail.
eDS_ToMemory  Keep in a temp.memory buffer, see FlushMessages().
eDS_Disable  Dont write it anywhere.
eDS_User  Leave as was previously set (or not set) by user.
eDS_AppSpecific  Call the application's SetupDiag_AppSpecific().

eDS_Default  Try standard log file (app.name + ".log") in /log/, use stderr on failure.
eDS_ToSyslog  To system log daemon.

Definition at line 1640 of file ncbidiag.hpp.

enum EDiagAppState
 

Application execution states shown in the std prefix.

Enumerator:
eDiagAppState_NotSet  Reserved value, never used in messages.
eDiagAppState_AppBegin  AB.
eDiagAppState_AppRun  A.
eDiagAppState_AppEnd  AE.
eDiagAppState_RequestBegin  RB.
eDiagAppState_Request  R.
eDiagAppState_RequestEnd  RE.

Definition at line 748 of file ncbidiag.hpp.

enum EDiagCollectMessages
 

Flags to control collecting messages and flushing them to the new destination when switching diag handlers.

Enumerator:
eDCM_Init  Start collecting messages (with limit), do nothing if already initialized.
eDCM_InitNoLimit  Start collecting messages without limit (must stop collecting later using eDCM_Flush or eDCM_Discard).
eDCM_NoChange  Continue collecting messages if already started.
eDCM_Flush  Flush the collected messages and stop collecting.
eDCM_Discard  Discard the collected messages without flushing.

Definition at line 1658 of file ncbidiag.hpp.

enum EDiagFileType
 

Type of file for the output.

Specialization of "CDiagHandler" for the file-based diagnostics. Splits output into three files: .err (severity higher than the threshold), .trace (severity below the threshold) and .log (application access log). Re-opens the files periodically to allow safe log rotation.

Enumerator:
eDiagFile_Err  Error log file.
eDiagFile_Log  Access log file.
eDiagFile_Trace  Trace log file.
eDiagFile_All  All log files.

Definition at line 2335 of file ncbidiag.hpp.

enum EDiagFilter
 

Diag severity types to put the filter on.

See also:
SetDiagFilter
Enumerator:
eDiagFilter_Trace  for TRACEs only
eDiagFilter_Post  for all non-TRACE, non-FATAL
eDiagFilter_All  for all non-FATAL

Definition at line 2207 of file ncbidiag.hpp.

enum EDiagPostFlag
 

Which parts of the diagnostic context should be posted.

Generic appearance of the posted message is as follows:

"<file>", line <line>: <severity>: (<err_code>.<err_subcode>) [<prefix1>::<prefix2>::<prefixN>] <message>
<err_code_message>
<err_code_explanation>

Example:

  • If all flags are set, and prefix string is set to "My prefix", and ERR_POST(eDiag_Warning, "Take care!"): "/home/iam/myfile.cpp", line 33: Warning: (2.11) Module::Class::Function() - [My prefix] Take care!

See also:
SDiagMessage::Compose()
Enumerator:
eDPF_File  Set by default if _DEBUG; else not set.
eDPF_LongFilename  Set by default if _DEBUG; else not set.
eDPF_Line  Set by default if _DEBUG; else not set.
eDPF_Prefix  Set by default (always).
eDPF_Severity  Set by default (always).
eDPF_ErrorID  Module, error code and subcode.
eDPF_DateTime  Include date and time.
eDPF_ErrCodeMessage  Set by default (always).
eDPF_ErrCodeExplanation  Set by default (always).
eDPF_ErrCodeUseSeverity  Set by default (always).
eDPF_Location  Include class and function if any, not set by default.
eDPF_PID  Process ID.
eDPF_TID  Thread ID.
eDPF_SerialNo  Serial # of the post, process-wide.
eDPF_SerialNo_Thread  Serial # of the post, in the thread.
eDPF_RequestId  fcgi iteration number or request ID
eDPF_Iteration 
eDPF_UID  UID of the log.
eDPF_ErrCode 
eDPF_ErrSubCode 
eDPF_All  All flags (except for the "unusual" ones!).
eDPF_Trace  Default flags to use when tracing.
eDPF_Log  Print the posted message only; without severity, location, prefix, etc.
eDPF_PreMergeLines  Remove EOLs before calling handler.
eDPF_MergeLines  Ask diag.handlers to remove EOLs.
eDPF_OmitInfoSev  No sev. indication if eDiag_Info.
eDPF_OmitSeparator  No '---' separator before message.
eDPF_AppLog  Post message to application log.
eDPF_IsMessage  Print "Message" severity name.
eDPF_AtomicWrite  Hint for the current handler to make message output as atomic as possible (e.g.

for stream and file handlers).

eDPF_Default  Use global default flags (merge with).

See also:
SetDiagPostFlag(), UnsetDiagPostFlag(), IsSetDiagPostFlag()
eDPF_ImportantFlagsMask  Important bits which should be taken from the globally set flags even if a user attempts to override (or forgets to set) them when calling CNcbiDiag().
eDPF_UseExactUserFlags  Use flags provided by user as-is, do not allow CNcbiDiag to replace "important" flags by the globally set ones.

Definition at line 677 of file ncbidiag.hpp.

enum EDiagSev
 

Severity level for the posted diagnostics.

Enumerator:
eDiag_Info  Informational message.
eDiag_Warning  Warning message.
eDiag_Error  Error message.
eDiag_Critical  Critical error message.
eDiag_Fatal  Fatal error -- guarantees exit(or abort).
eDiag_Trace  Trace message.
eDiagSevMin  Verbosity level for min. severity.
eDiagSevMax  Verbosity level for max. severity.

Definition at line 636 of file ncbidiag.hpp.

enum EDiagSevChange
 

Severity level change state.

Enumerator:
eDiagSC_Unknown  Status of changing severity is unknown (first call).
eDiagSC_Disable  Disable change severity level.
eDiagSC_Enable  Enable change severity level.

Definition at line 652 of file ncbidiag.hpp.

enum EDiagTrace
 

Which setting disables/enables posting of "eDiag_Trace" messages.

By default, trace messages are disabled unless:

  • Environment variable $DIAG_TRACE is set (to any value), or
  • Registry value of DIAG_TRACE, section DEBUG is set (to any value)
Enumerator:
eDT_Default  Restores the default tracing context.
eDT_Disable  Ignore messages of severity "eDiag_Trace".
eDT_Enable  Enable messages of severity "eDiag_Trace".

Definition at line 1426 of file ncbidiag.hpp.

enum EDiagUserAndHost
 

Flags for SetDiagUserAndHost().

Enumerator:
fDiag_AddUser  Add username to diag context.
fDiag_AddHost  Add hostname to diag context.
fDiag_OverrideExisting  Set current user and host even if they are already set.

Definition at line 50 of file ncbi_userhost.hpp.

enum EPostNumberIncrement
 

Post nubmer increment flag for GetProcessPostNumber() and GetThreadPostNumber().

Enumerator:
ePostNumber_NoIncrement  Get post number without incrementing it.
ePostNumber_Increment  Increment and return the new post number.

Definition at line 1671 of file ncbidiag.hpp.

enum CRequestContext::EProperty [private, inherited]
 

Enumerator:
eProp_RequestID 
eProp_ClientIP 
eProp_SessionID 
eProp_HitID 
eProp_ReqStatus 
eProp_BytesRd 
eProp_BytesWr 

Definition at line 180 of file request_ctx.hpp.


Function Documentation

void Abort void   ) 
 

Smart abort function.

Processes user abort handler and does not popup assert windows if specified (environment variable DIAG_SILENT_ABORT is "Y" or "y").

Definition at line 5399 of file ncbidiag.cpp.

References _ASSERT, and s_UserAbortHandler.

Referenced by CGlUtils::CheckGlError(), CCacheBlobStream::Close(), CDiagContextThreadData::GetThreadData(), CObject::ThrowNullPointerException(), CObjectException::x_InitErrCode(), and CCacheBlobStream::~CCacheBlobStream().

void CheckErrSubcodeX int   )  [inline]
 

Additional dummy function for use in NCBI_CHECK_ERR_SUBCODE_X macro.

Definition at line 394 of file ncbidiag.hpp.

int CompareDiagPostLevel EDiagSev  sev1,
EDiagSev  sev2
 

Compare two severities.

Returns:
The return value is negative if the first value is lower than the second one, positive if it's higher than the second one, 0 if the severities are equal.

Definition at line 4176 of file ncbidiag.cpp.

References eDiag_Trace.

Referenced by CException::CException(), CException::GetStackTrace(), IsVisibleDiagPostLevel(), CDiagCollectGuard::SetCollectSeverity(), CDiagCollectGuard::SetPrintSeverity(), CException::SetSeverity(), and SDiagMessage::x_Write().

CRequestContext::CRequestContext const CRequestContext  )  [private, inherited]
 

void DiagHandler_Reopen void   ) 
 

Ask diagnostic handler to reopen log files if necessary.

Definition at line 4299 of file ncbidiag.cpp.

References CDiagHandler::fCheck, GetDiagHandler(), and handler().

Referenced by CDefaultIdler::Idle().

bool DisableDiagPostLevelChange bool  disable_change = true  ) 
 

Disable change the diagnostic post level.

Consecutive using SetDiagPostLevel() will not have effect.

Definition at line 4206 of file ncbidiag.cpp.

References eDiagSC_Disable, and eDiagSC_Enable.

Referenced by SetDiagFixedPostLevel().

const char* g_DiagUnknownFunction void   ) 
 

Definition at line 5611 of file ncbidiag.cpp.

References kEmptyCStr.

EDiagAppState CRequestContext::GetAppState void   )  const [inherited]
 

Application state.

Definition at line 85 of file request_ctx.cpp.

References eDiagAppState_NotSet, GetDiagContext(), CDiagContext::GetGlobalAppState(), and CRequestContext::m_AppState.

Referenced by CDiagContext::GetAppState(), and CRequestStateGuard::~CRequestStateGuard().

bool CRequestContext::GetAutoIncRequestIDOnPost void   )  const [inline, inherited]
 

Get auto-increment state.

Definition at line 153 of file request_ctx.hpp.

References CRequestContext::m_AutoIncOnPost.

Referenced by SDiagMessage::SDiagMessage().

Int8 CRequestContext::GetBytesRd void   )  const [inline, inherited]
 

Bytes read.

Definition at line 363 of file request_ctx.hpp.

References CRequestContext::eProp_BytesRd, CRequestContext::m_BytesRd, and CRequestContext::x_IsSetProp().

Referenced by CDiagContext::x_PrintMessage().

Int8 CRequestContext::GetBytesWr void   )  const [inline, inherited]
 

Bytes written.

Definition at line 390 of file request_ctx.hpp.

References CRequestContext::eProp_BytesWr, CRequestContext::m_BytesWr, and CRequestContext::x_IsSetProp().

Referenced by CDiagContext::x_PrintMessage().

const string & CRequestContext::GetClientIP void   )  const [inline, inherited]
 

Client IP/hostname.

Definition at line 248 of file request_ctx.hpp.

References CRequestContext::eProp_ClientIP, kEmptyStr, CRequestContext::m_ClientIP, and CRequestContext::x_IsSetProp().

Referenced by SNetCacheAPIImpl::AppendClientIPSessionID(), SDiagMessage::GetClient(), CDiagContext::GetProperty(), s_AppendClientIPAndSessionID(), and SDiagMessage::x_SaveContextData().

bool CRequestContext::GetDefaultAutoIncRequestIDOnPost void   )  [static, inherited]
 

Get default auto-increment flag.

Definition at line 186 of file request_ctx.cpp.

References CRequestContext::sx_GetDefaultAutoIncRequestIDOnPost().

Referenced by CDiagContextThreadData::CDiagContextThreadData().

CDiagContext& GetDiagContext void   ) 
 

Get diag context instance.

Definition at line 2311 of file ncbidiag.cpp.

References CSafeStaticLifeSpan::eLifeSpan_Long, and CSafeStaticPtr< T >::Get().

Referenced by CQueueWorkerNodeList::AddJob(), CCgiApplication::AppStart(), CNcbiApplication::AppStop(), CCgiApplication::AppStop(), CNcbiApplication::CNcbiApplication(), CRequestStateGuard::CRequestStateGuard(), CNcbiApplication::FlushDiag(), SDiagMessage::GetAppName(), CRequestContext::GetAppState(), SDiagMessage::GetAppState(), GetDiagRequestId(), SDiagMessage::GetHost(), SDiagMessage::GetUID(), main(), CNetScheduleHandler::ProcessMsgRequest(), CQueueWorkerNodeList::RemoveJob(), CCgiApplication::Run(), s_LogSubmit(), SetDiagHandler(), SetDiagRequestId(), SetDiagUserAndHost(), CRequestContext::SetHitID(), CCgiResponse::SetMultipartMode(), CNcbiApplication::SetProgramDisplayName(), CRequestContext::SetSessionID(), CDiagContext::SetupDiag(), CQueue::SubmitBatch(), CDiagContext::sx_ThreadDataTlsCleanup(), CDiagContext::UpdatePID(), CCgiContext::x_InitSession(), SDiagMessage::x_IsSetOldFormat(), SDiagMessage::x_NewWrite(), CCgiApplication::x_OnEvent(), SDiagMessage::x_SaveContextData(), CId2ReaderBase::x_SetContextData(), CNCMessageHandler::x_StartCommand(), and CRequestStateGuard::~CRequestStateGuard().

CDiagErrCodeInfo* GetDiagErrCodeInfo bool  take_ownership = false  ) 
 

Get handler for processing error codes.

Definition at line 4949 of file ncbidiag.cpp.

References _ASSERT.

Referenced by SDiagMessage::x_NewWrite().

CDiagHandler* GetDiagHandler bool  take_ownership = false  ) 
 

Get the currently set diagnostic handler class.

Definition at line 4288 of file ncbidiag.cpp.

References _ASSERT.

Referenced by CWindowsCmdErrorHandler::CWindowsCmdErrorHandler(), CwxLogDiagHandler::CwxLogDiagHandler(), DiagHandler_Reopen(), CNcbiApplication::FlushDiag(), GetDiagStream(), GetLogFile(), SetDiagNode(), CDiagContext::SetupDiag(), and CNcbiApplication::x_HonorStandardSettings().

int GetDiagRequestId void   ) 
 

Get iteration number/request ID.

Definition at line 802 of file ncbidiag.cpp.

References GetDiagContext(), CDiagContext::GetRequestContext(), and CRequestContext::GetRequestID().

Referenced by GetFastCGIIteration().

CNcbiOstream* GetDiagStream void   ) 
 

Get current diagnostic stream (if it was set by SetDiagStream) or NULL.

Definition at line 5360 of file ncbidiag.cpp.

References GetDiagHandler(), and CStreamDiagHandler_Base::GetStream().

Referenced by BOOST_AUTO_TEST_CASE(), and CAutoDiagnosticsRedirector::CAutoDiagnosticsRedirector().

const string & CRequestContext::GetEncodedSessionID void   )  const [inline, inherited]
 

Get URL-encoded session ID.

Definition at line 275 of file request_ctx.hpp.

References CRequestContext::eProp_SessionID, CEncodedString::GetEncodedString(), kEmptyStr, CRequestContext::m_SessionID, and CRequestContext::x_IsSetProp().

Referenced by SDiagMessage::GetSession(), and SDiagMessage::x_SaveContextData().

NCBI_DEPRECATED int GetFastCGIIteration void   )  [inline]
 

Definition at line 1300 of file ncbidiag.hpp.

References GetDiagRequestId().

const string & CRequestContext::GetHitID void   )  const [inline, inherited]
 

Hit ID.

Definition at line 303 of file request_ctx.hpp.

References CRequestContext::eProp_HitID, kEmptyStr, CRequestContext::m_HitID, and CRequestContext::x_IsSetProp().

Referenced by CCgiApplication::x_OnEvent().

string GetLogFile void   ) 
 

Get log file name or diag handler name.

Definition at line 4919 of file ncbidiag.cpp.

References GetDiagHandler(), handler(), and kEmptyStr.

string GetLogFile EDiagFileType  file_type  ) 
 

Get log file name for the given log type.

Return empty string for eDiagFile_All or if the log file handler is not installed.

Definition at line 4911 of file ncbidiag.cpp.

Referenced by GetLogFile(), and CProjBulderApp::Init().

int CRequestContext::GetNextRequestID void   )  [static, inherited]
 

Return the next available application-wide request ID.

Definition at line 60 of file request_ctx.cpp.

References CAtomicCounter::Add().

Referenced by CRequestContextSubmitGuard::CRequestContextSubmitGuard(), CNSRequestContextFactory::Get(), CRequestContext::SetRequestID(), and CQueue::Submit().

TProperties& CRequestContext::GetProperties void   )  [inline, inherited]
 

Get all properties (non-const).

Definition at line 148 of file request_ctx.hpp.

References CRequestContext::m_Properties.

const TProperties& CRequestContext::GetProperties void   )  const [inline, inherited]
 

Get all properties (read only).

Definition at line 146 of file request_ctx.hpp.

References CRequestContext::m_Properties.

const string & CRequestContext::GetProperty const string &  name  )  const [inherited]
 

Get property value or empty string.

Definition at line 119 of file request_ctx.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), kEmptyStr, and CRequestContext::m_Properties.

int CRequestContext::GetRequestID void   )  const [inline, inherited]
 

Get request ID (or zero if not set).

Definition at line 214 of file request_ctx.hpp.

References CRequestContext::eProp_RequestID, CRequestContext::m_RequestID, and CRequestContext::x_IsSetProp().

Referenced by GetDiagRequestId(), CDiagContext::GetNextHitID(), CDiagContextThreadData::GetRequestId(), and CRequestContext::SetSessionID().

int CRequestContext::GetRequestStatus void   )  const [inline, inherited]
 

Request exit startus.

Definition at line 330 of file request_ctx.hpp.

References CRequestContext::eProp_ReqStatus, CRequestContext::m_ReqStatus, and CRequestContext::x_IsSetProp().

Referenced by CDiagContext::x_PrintMessage().

CStopWatch& CRequestContext::GetRequestTimer void   )  [inline, inherited]
 

Definition at line 116 of file request_ctx.hpp.

References CRequestContext::m_ReqTimer.

const CStopWatch& CRequestContext::GetRequestTimer void   )  const [inline, inherited]
 

Request execution timer.

Definition at line 115 of file request_ctx.hpp.

References CRequestContext::m_ReqTimer.

Referenced by CDiagContext::GetProperty(), CRequestContext::StartRequest(), and CDiagContext::x_PrintMessage().

const string & CRequestContext::GetSessionID void   )  const [inline, inherited]
 

Session ID.

Definition at line 268 of file request_ctx.hpp.

References CRequestContext::eProp_SessionID, CEncodedString::GetOriginalString(), kEmptyStr, CRequestContext::m_SessionID, and CRequestContext::x_IsSetProp().

Referenced by SNetCacheAPIImpl::AppendClientIPSessionID(), and CDiagContext::GetProperty().

bool GetSplitLogFile void   ) 
 

Get split log files flag.

Definition at line 4492 of file ncbidiag.cpp.

bool IgnoreDiagDieLevel bool  ignore  ) 
 

Ignore the die level settings.

Return previous setting.

WARNING!!! -- not recommended for use unless you are real desperate: By passing TRUE to this function you can make your application never exit/abort regardless of the level set by SetDiagDieLevel(). But be warned this is usually a VERY BAD thing to do! -- because any library code counts on at least "eDiag_Fatal" to exit unconditionally, and thus what happens once "eDiag_Fatal" has been posted, is, in general, totally unpredictable! Therefore, use it on your own risk.

Definition at line 4231 of file ncbidiag.cpp.

bool IsDiagStream const CNcbiOstream os  ) 
 

Definition at line 4926 of file ncbidiag.cpp.

References CStreamDiagHandler_Base::GetStream().

bool CRequestContext::IsRunning void   )  const [inline, private, inherited]
 

Definition at line 178 of file request_ctx.hpp.

References CRequestContext::m_IsRunning.

Referenced by CDiagContext::x_PrintMessage(), and CDiagContext::x_StartRequest().

bool CRequestContext::IsSetBytesRd void   )  const [inline, inherited]
 

Definition at line 376 of file request_ctx.hpp.

References CRequestContext::eProp_BytesRd, and CRequestContext::x_IsSetProp().

bool CRequestContext::IsSetBytesWr void   )  const [inline, inherited]
 

Definition at line 403 of file request_ctx.hpp.

References CRequestContext::eProp_BytesWr, and CRequestContext::x_IsSetProp().

bool CRequestContext::IsSetClientIP void   )  const [inline, inherited]
 

Definition at line 254 of file request_ctx.hpp.

References CRequestContext::eProp_ClientIP, and CRequestContext::x_IsSetProp().

Referenced by s_AppendClientIPAndSessionID().

bool IsSetDiagErrCodeInfo  ) 
 

Indicates whether an error-code processing handler has been set.

Definition at line 4944 of file ncbidiag.cpp.

Referenced by SDiagMessage::x_NewWrite().

bool IsSetDiagHandler void   ) 
 

Check if diagnostic handler is set.

Returns:
Return TRUE if user has ever set (or unset) diag. handler.

Definition at line 4283 of file ncbidiag.cpp.

References s_DefaultHandler.

bool IsSetDiagPostFlag EDiagPostFlag  flag,
TDiagPostFlags  flags = eDPF_Default
[inline]
 

Check if a specified flag is set.

Parameters:
flag Flag to check
flags If eDPF_Default is set for "flags" then use the current global flags on its place (merged with other flags from "flags").
Returns:
"TRUE" if the specified "flag" is set in global "flags" that describes the post settings.
See also:
SetDiagPostFlag(), UnsetDiagPostFlag()

Referenced by CDiagContext::ApproveMessage(), CNcbiDiag::ForceImportantFlags(), CStreamDiagHandler::Post(), SDiagMessage::Write(), SDiagMessage::x_NewWrite(), and SDiagMessage::x_OldWrite().

bool CRequestContext::IsSetHitID void   )  const [inline, inherited]
 

Definition at line 316 of file request_ctx.hpp.

References CRequestContext::eProp_HitID, and CRequestContext::x_IsSetProp().

bool CRequestContext::IsSetProperty const string &  name  )  const [inherited]
 

Check if the property has a value (even if it's an empty string).

Definition at line 126 of file request_ctx.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), and CRequestContext::m_Properties.

bool CRequestContext::IsSetRequestID void   )  const [inline, inherited]
 

Check if request ID was assigned a value.

Definition at line 234 of file request_ctx.hpp.

References CRequestContext::eProp_RequestID, and CRequestContext::x_IsSetProp().

bool CRequestContext::IsSetRequestStatus void   )  const [inline, inherited]
 

Definition at line 349 of file request_ctx.hpp.

References CRequestContext::eProp_ReqStatus, and CRequestContext::x_IsSetProp().

Referenced by CDiagContext::GetProperty(), and CRequestStateGuard::~CRequestStateGuard().

bool CRequestContext::IsSetSessionID void   )  const [inline, inherited]
 

Definition at line 289 of file request_ctx.hpp.

References CRequestContext::eProp_SessionID, and CRequestContext::x_IsSetProp().

bool IsVisibleDiagPostLevel EDiagSev  sev  ) 
 

Check if the specified severity is higher or equal to the currently selected post level and will be printed by LOG_POST/ERR_POST.

Definition at line 4185 of file ncbidiag.cpp.

References CompareDiagPostLevel(), and eDiag_Trace.

Referenced by CNCBlobStorage::x_IsMonitored(), and CNCMessageHandler::x_IsMonitored().

CNcbiOstream& operator<< CNcbiOstream os,
const SDiagMessage mess
[inline]
 

Insert message in output stream.

Definition at line 1623 of file ncbidiag.hpp.

References SDiagMessage::Write().

CRequestContext& CRequestContext::operator= const CRequestContext  )  [private, inherited]
 

void PopDiagPostPrefix void   ) 
 

Pop a string from the list of message prefixes.

Definition at line 4144 of file ncbidiag.cpp.

References GetDiagBuffer().

Referenced by CDiagAutoPrefix::~CDiagAutoPrefix().

void PushDiagPostPrefix const char *  prefix  ) 
 

Push a string to the list of message prefixes.

Definition at line 4134 of file ncbidiag.cpp.

References GetDiagBuffer().

Referenced by CDiagAutoPrefix::CDiagAutoPrefix(), and CCgiApplication::Run().

void CRequestContext::Reset void   )  [inherited]
 

Reset all properties to the initial state.

Definition at line 98 of file request_ctx.cpp.

References eDiagAppState_NotSet, CRequestContext::m_AppState, CRequestContext::m_ReqTimer, CStopWatch::Restart(), CStopWatch::Stop(), CRequestContext::UnsetBytesRd(), CRequestContext::UnsetBytesWr(), CRequestContext::UnsetClientIP(), CRequestContext::UnsetHitID(), CRequestContext::UnsetRequestID(), CRequestContext::UnsetRequestStatus(), and CRequestContext::UnsetSessionID().

Referenced by CRequestContext::StopRequest().

void SetAbortHandler FAbortHandler  func = 0  ) 
 

Set/unset abort handler.

If "func"==0 use default handler.

Definition at line 5393 of file ncbidiag.cpp.

void CRequestContext::SetAppState EDiagAppState  state  )  [inherited]
 

Definition at line 92 of file request_ctx.cpp.

References CRequestContext::m_AppState.

Referenced by CRequestStateGuard::CRequestStateGuard(), CRequestStateGuard::RequestStart(), CRequestStateGuard::RequestStop(), CDiagContext::SetAppState(), and CRequestStateGuard::~CRequestStateGuard().

void CRequestContext::SetAutoIncRequestIDOnPost bool  enable  )  [inline, inherited]
 

Auto-increment request ID with every posted message.

Definition at line 151 of file request_ctx.hpp.

References CRequestContext::m_AutoIncOnPost.

Referenced by main().

void CRequestContext::SetBytesRd Int8  bytes  )  [inline, inherited]
 

Definition at line 369 of file request_ctx.hpp.

References CRequestContext::eProp_BytesRd, CRequestContext::m_BytesRd, and CRequestContext::x_SetProp().

Referenced by CRequestContext::StartRequest().

void CRequestContext::SetBytesWr Int8  bytes  )  [inline, inherited]
 

Definition at line 396 of file request_ctx.hpp.

References CRequestContext::eProp_BytesWr, CRequestContext::m_BytesWr, and CRequestContext::x_SetProp().

Referenced by CRequestContext::StartRequest().

void CRequestContext::SetClientIP const string &  client  )  [inherited]
 

Definition at line 141 of file request_ctx.cpp.

References CRequestContext::eProp_ClientIP, ERR_POST, NStr::IsIPAddress(), kBadIP, CRequestContext::m_ClientIP, and CRequestContext::x_SetProp().

Referenced by CQueueWorkerNodeList::AddJob(), CRequestContextSubmitGuard::CRequestContextSubmitGuard(), CRequestStateGuard::CRequestStateGuard(), s_LogSubmit(), and CDiagContext::SetProperty().

void CRequestContext::SetDefaultAutoIncRequestIDOnPost bool  enable  )  [static, inherited]
 

Set default auto-increment flag used for each default request context.

Contexts created by users do not check this flag. The flag is not MT-protected.

Definition at line 180 of file request_ctx.cpp.

References CRequestContext::sx_GetDefaultAutoIncRequestIDOnPost().

Referenced by main().

EDiagSev SetDiagDieLevel EDiagSev  die_sev = eDiag_Fatal  ) 
 

Set the "die" (abort) level for the program.

Abort the application if severity is >= "die_sev". Throw an exception if die_sev is not in the range [eDiagSevMin..eDiag_Fatal].

Returns:
Return previous die-level.

Definition at line 4216 of file ncbidiag.cpp.

References eDiag_Fatal, and NCBI_THROW.

void SetDiagErrCodeInfo CDiagErrCodeInfo info,
bool  can_delete = true
 

Set handler for processing error codes.

By default this handler is unset. NcbiApplication can init itself only if registry key DIAG_MESSAGE_FILE section DEBUG) is specified. The value of this key should be a name of the file with the error codes explanations.

Definition at line 4934 of file ncbidiag.cpp.

Referenced by CDiagRecycler::~CDiagRecycler(), and CDiagRestorer::~CDiagRestorer().

void SetDiagFilter EDiagFilter  what,
const char *  filter_str
 

Set diagnostic filter.

Diagnostic filter acts as a second level filtering mechanism (the primary established by global error post level)

See also:
SetDiagPostLevel
Parameters:
what Filter is set for
filter_str Filter string

Definition at line 4960 of file ncbidiag.cpp.

References eDiagFilter_All, eDiagFilter_Post, eDiagFilter_Trace, s_PostFilter, and s_TraceFilter.

Referenced by CGBenchApplication::CGBenchApplication(), and CNcbiTestApplication::CNcbiTestApplication().

void SetDiagFixedPostLevel EDiagSev  post_sev  ) 
 

Sets and locks the level, combining the previous two calls.

Definition at line 4199 of file ncbidiag.cpp.

References DisableDiagPostLevelChange(), and SetDiagPostLevel().

void SetDiagHandler FDiagHandler  func,
void *  data,
FDiagCleanup  cleanup
 

Set the diagnostic handler using the specified diagnostic handler and cleanup functions.

Definition at line 5314 of file ncbidiag.cpp.

References SetDiagHandler().

void SetDiagHandler CDiagHandler handler,
bool  can_delete = true
 

Set the diagnostic handler using the specified diagnostic handler class.

Definition at line 4254 of file ncbidiag.cpp.

Referenced by Cn3DApp::Cn3DApp(), CGBenchSampleCgi::ConfigureDiagDestination(), CGBenchIndexCgi::ConfigureDiagDestination(), CCgiApplication::ConfigureDiagDestination(), CwxLogDiagHandler::CwxLogDiagHandler(), Cn3DNoWin::Exit(), CProjBulderApp::Init(), Cn3DNoWin::Init(), Cn3DApp::OnExit(), SetDiagHandler(), SetDiagStream(), CDiagContext::SetupDiag(), CDiagRecycler::~CDiagRecycler(), CDiagRestorer::~CDiagRestorer(), and CwxLogDiagHandler::~CwxLogDiagHandler().

TDiagPostFlags SetDiagPostAllFlags TDiagPostFlags  flags  ) 
 

Set global post flags to "flags".

If "flags" have flag eDPF_Default set, it will be replaced by the current global post flags.

Returns:
Previously set flags

Definition at line 4090 of file ncbidiag.cpp.

References s_SetDiagPostAllFlags().

Referenced by CProjBulderApp::GenerateSummary(), and CProjBulderApp::Run().

void SetDiagPostFlag EDiagPostFlag  flag  ) 
 

Set the specified flag (globally).

Definition at line 4095 of file ncbidiag.cpp.

References s_SetDiagPostFlag().

Referenced by CCgiApplication::CCgiApplication(), Cn3DApp::Cn3DApp(), CSampleNetScheduleNode::Init(), CSampleNetScheduleClient::Init(), CDBAPI_CacheAdmin::Init(), CBDB_MergeTest::Init(), CBDB_SplitTest::Init(), CBDB_BLobDemo1::Init(), CBDB_PhoneBookDemo3::Init(), CBDB_PhoneBookDemo2::Init(), CBDB_PhoneBookDemo1::Init(), CGridWorkerNode::Init(), CCgiApplication::Init(), CNetScheduleDApp::Init(), CNetCacheDApp::Init(), Cn3DNoWin::Init(), main(), BMAUtils::PrintPSSMByColumn(), BMAUtils::PrintPSSMByRow(), CId2FetchApp::Run(), CId1FetchApp::Run(), and CXcompareAnnotsApplication::Run().

EDiagSev SetDiagPostLevel EDiagSev  post_sev = eDiag_Error  ) 
 

Set the threshold severity for posting the messages.

This function has effect only if:

  • Environment variable $DIAG_POST_LEVEL is not set, and
  • Registry value of DIAG_POST_LEVEL, section DEBUG is not set

Another way to do filtering is to call SetDiagFilter

Parameters:
post_sev Post only messages with severity greater or equal to "post_sev".
Special case: eDiag_Trace -- print all messages and turn on the tracing.
Returns:
Return previous post-level.
See also:
SetDiagFilter(), SetDiagTrace()

Definition at line 4154 of file ncbidiag.cpp.

References eDiag_Info, eDiag_Trace, eDiagSC_Disable, eDiagSevMax, eDT_Enable, NCBI_THROW, and SetDiagTrace().

Referenced by BOOST_AUTO_TEST_CASE(), CAutoDiagnosticsRedirector::CAutoDiagnosticsRedirector(), CAV_DisplayMultiple(), Cn3DApp::Cn3DApp(), CCgiApplication::ConfigureDiagThreshold(), CreateMimeFromBiostruc(), GetStructureFromCacheFolder(), CDataTool::Init(), CSampleNetScheduleNode::Init(), CSampleNetScheduleClient::Init(), CSampleLdsApplication::Init(), CApp::Init(), CNCBIwxApplication::Init(), CDBAPI_CacheAdmin::Init(), CBDB_MergeTest::Init(), CBDB_SplitTest::Init(), CBDB_BLobDemo1::Init(), CBDB_PhoneBookDemo3::Init(), CBDB_PhoneBookDemo2::Init(), CBDB_PhoneBookDemo1::Init(), CNetScheduleDApp::Init(), CLDSIndexerApplication::Init(), Cn3DNoWin::Init(), CXcompareAnnotsApplication::Init(), COMSSAMerge::Init(), COMSSABase::Init(), CReadresult::Init(), LoadASNFromIstream(), LoadDataOnly(), main(), BMAUtils::PrintPSSMByColumn(), BMAUtils::PrintPSSMByRow(), ReadCD(), CBasicFastaWrapper::ReadFile(), CProjBulderApp::Run(), CWig2tableApplication::Run(), CSplitCacheApp::Run(), CId2FetchApp::Run(), CId1FetchApp::Run(), CTblastxApp::Run(), CTblastnApp::Run(), CRPSTBlastnApp::Run(), CRPSBlastApp::Run(), CPsiBlastApp::Run(), CBlastxApp::Run(), CBlastpApp::Run(), CBlastnApp::Run(), CAsn2Asn::Run(), CAlignmentRefiner::Run(), COMSSA::Run(), CMultiApplication::Run(), CMkIndexApplication::Run(), s_Dump(), and SetDiagFixedPostLevel().

void SetDiagPostPrefix const char *  prefix  ) 
 

Specify a string to prefix all subsequent error postings with.

Definition at line 4122 of file ncbidiag.cpp.

References GetDiagBuffer().

void SetDiagRequestId int  id  ) 
 

Set iteration number/request ID.

Definition at line 808 of file ncbidiag.cpp.

References GetDiagContext(), CDiagContext::GetRequestContext(), and CRequestContext::SetRequestID().

Referenced by CServer::CreateRequest(), CServerConnectionRequest::Process(), CAcceptRequest::Process(), and SetFastCGIIteration().

void SetDiagStream CNcbiOstream os,
bool  quick_flush = true,
FDiagCleanup  cleanup = 0,
void *  cleanup_data = 0,
const string &  stream_name = "STREAM"
 

Set diagnostic stream.

Error diagnostics are written to output stream "os". This uses the SetDiagHandler() functionality.

Parameters:
quick_flush  Do stream flush after every message
cleanup  Call "cleanup(cleanup_data)" if diag.
cleanup_data  Stream is changed (see SetDiagHandler)
stream_name  Stream name (e.g. STDERR, file.log)

Definition at line 5348 of file ncbidiag.cpp.

References SetDiagHandler().

Referenced by BOOST_AUTO_TEST_CASE(), CAV_DisplayMultiple(), CSubImageApp::Exit(), CImageTestApp::Exit(), CConvImageApp::Exit(), CBlastSampleApplication::Exit(), CBlastDemoApplication::Exit(), CSampleBasicApplication::Exit(), CReadFilesApp::Exit(), CNCBIwxApplication::Exit(), CWGLDemoApp::Exit(), CToolTipDemoApp::Exit(), CTexDemoApp::Exit(), CSystemTestApp::Exit(), CSplineDemoApp::Exit(), CGl3dDemoApp::Exit(), CFontDemoApp::Exit(), CTestDispatchApp::Exit(), CAppJobTestApplication::Exit(), CGBenchMonitorApp::Exit(), CStreamTestApp::Exit(), CMytestApplication::Exit(), SegMaskerApplication::Exit(), CObjExtractApp::Exit(), CNmer_repeatsApplication::Exit(), CMultiReaderApp::Exit(), CId2FetchApp::Exit(), CId1FetchApp::Exit(), CFormatGuessApp::Exit(), Cn3DNoWin::Exit(), CGuideTreeApplication::Exit(), CConvert2BlastMaskApplication::Exit(), CBlastDbCheckApplication::Exit(), CAgpconvertApplication::Exit(), CAgpValidateApplication::Exit(), CAlignmentRefiner::Exit(), COmssa2pepxmlApplication::Exit(), CMultiApplication::Exit(), CBlastInputDemoApplication::Exit(), CNcbiApplication::FlushDiag(), main(), Cn3DApp::OnExit(), CAutoDiagnosticsRedirector::Redirect(), CAlnVwrApp::Run(), CId2FetchApp::Run(), CId1FetchApp::Run(), CAsn2Asn::Run(), CAlignmentRefiner::Run(), CAlnMrgApp::SetOptions(), CDiagContext::SetupDiag(), and CAutoDiagnosticsRedirector::~CAutoDiagnosticsRedirector().

void SetDiagTrace EDiagTrace  how,
EDiagTrace  dflt = eDT_Default
 

Set the diagnostic trace settings.

Definition at line 4240 of file ncbidiag.cpp.

References eDT_Default, and eDT_Enable.

Referenced by Cn3DApp::Cn3DApp(), CCgiApplication::ConfigureDiagThreshold(), GetAsnDataViaHTTP(), CBDB_MergeTest::Init(), CBDB_SplitTest::Init(), Cn3DNoWin::Init(), main(), ReadASNFromFile(), CWinMaskApplication::Run(), CXcompareAnnotsApplication::Run(), SetDiagPostLevel(), WriteASNToFile(), and CNcbiApplication::x_HonorStandardSettings().

TDiagPostFlags SetDiagTraceAllFlags TDiagPostFlags  flags  ) 
 

Versions of the above for extra trace flags.

ATTENTION: Thus set trace flags will be ADDED to the regular posting flags.

Definition at line 4106 of file ncbidiag.cpp.

References s_SetDiagPostAllFlags().

void SetDiagTraceFlag EDiagPostFlag  flag  ) 
 

Definition at line 4111 of file ncbidiag.cpp.

References s_SetDiagPostFlag().

Referenced by CCgiApplication::CCgiApplication().

void SetDiagUserAndHost TDiagUserAndHost  flags = fDiag_AddUser|fDiag_AddHost  ) 
 

Set username and hostname properties for the diag context.

Do not update existing properties if fDiag_OverrideExisting is not set.

Definition at line 42 of file ncbi_userhost.cpp.

References CORE_GetUsername(), fDiag_AddUser, fDiag_OverrideExisting, GetDiagContext(), CDiagContext::GetUsername(), and CDiagContext::SetUsername().

NCBI_DEPRECATED void SetDoubleDiagHandler void   ) 
 

Output diagnostics using both old and new style handlers.

Definition at line 5381 of file ncbidiag.cpp.

References ERR_POST_X.

NCBI_DEPRECATED void SetFastCGIIteration int  id  )  [inline]
 

Definition at line 1307 of file ncbidiag.hpp.

References SetDiagRequestId().

const string & CRequestContext::SetHitID void   )  [inherited]
 

Generate unique hit id, assign it to this request, return the hit id value.

Definition at line 67 of file request_ctx.cpp.

References GetDiagContext(), and CRequestContext::m_HitID.

void CRequestContext::SetHitID const string &  hit  )  [inline, inherited]
 

Definition at line 309 of file request_ctx.hpp.

References CRequestContext::eProp_HitID, CRequestContext::m_HitID, and CRequestContext::x_SetProp().

Referenced by CCgiRequest::x_SetPageHitId().

bool SetLogFile const string &  file_name,
EDiagFileType  file_type = eDiagFile_All,
bool  quick_flush = true
 

Set log files.

Send output to file_name or to file_name.(err|log|trace) depending on the split log file flag and file_type. If a single file type is selected, other types remain the same or are switched to stderr if their files have not been assigned yet. If split log flag is off, any file type except eDiagFile_All will be ignored. If the file_name contains one of the extensions .log, .err or .trace and the file type is eDiagFile_All, the extension will be removed before adding the new one. Return true on success, false if the file could not be open.

Definition at line 4833 of file ncbidiag.cpp.

References s_IsSpecialLogName().

Referenced by OpenLogFileFromConfig(), and CDiagContext::SetupDiag().

void CRequestContext::SetProperty const string &  name,
const string &  value
[inherited]
 

Add/change property.

Definition at line 113 of file request_ctx.cpp.

References CRequestContext::m_Properties.

int CRequestContext::SetRequestID void   )  [inline, inherited]
 

Assign the next available request ID to this request.

Definition at line 227 of file request_ctx.hpp.

References CRequestContext::GetNextRequestID(), and CRequestContext::m_RequestID.

void CRequestContext::SetRequestID int  rid  )  [inline, inherited]
 

Set request ID.

Definition at line 220 of file request_ctx.hpp.

References CRequestContext::eProp_RequestID, CRequestContext::m_RequestID, and CRequestContext::x_SetProp().

Referenced by CRequestContextSubmitGuard::CRequestContextSubmitGuard(), CRequestStateGuard::CRequestStateGuard(), CNSRequestContextFactory::Get(), CDiagContextThreadData::IncRequestId(), SDiagMessage::SDiagMessage(), SetDiagRequestId(), CDiagContextThreadData::SetRequestId(), and CQueue::Submit().

void CRequestContext::SetRequestStatus CRequestStatus::ECode  code  )  [inline, inherited]
 

Definition at line 343 of file request_ctx.hpp.

References CRequestContext::SetRequestStatus().

void CRequestContext::SetRequestStatus int  status  )  [inline, inherited]
 

Definition at line 336 of file request_ctx.hpp.

References CRequestContext::eProp_ReqStatus, CRequestContext::m_ReqStatus, and CRequestContext::x_SetProp().

Referenced by CQueueWorkerNodeList::RemoveJob(), CCgiApplication::SetHTTPStatus(), CDiagContext::SetProperty(), CRequestContext::SetRequestStatus(), and CRequestStateGuard::~CRequestStateGuard().

const string & CRequestContext::SetSessionID void   )  [inherited]
 

Create and set new session ID.

Definition at line 74 of file request_ctx.cpp.

References GetDiagContext(), CEncodedString::GetOriginalString(), CRequestContext::GetRequestID(), CDiagContext::GetStringUID(), CRequestContext::m_SessionID, and CDiagContext::UpdateUID().

void CRequestContext::SetSessionID const string &  session  )  [inline, inherited]
 

Definition at line 282 of file request_ctx.hpp.

References CRequestContext::eProp_SessionID, CRequestContext::m_SessionID, CEncodedString::SetString(), and CRequestContext::x_SetProp().

Referenced by CQueueWorkerNodeList::AddJob(), CRequestContextSubmitGuard::CRequestContextSubmitGuard(), CRequestStateGuard::CRequestStateGuard(), s_LogSubmit(), CDiagContext::SetProperty(), and CCgiContext::x_InitSession().

void SetSplitLogFile bool  value = true  ) 
 

Split log files flag.

If set, the output is sent to different log files depending on the severity level.

Definition at line 4486 of file ncbidiag.cpp.

Referenced by main().

void CRequestContext::StartRequest void   )  [private, inherited]
 

Definition at line 156 of file request_ctx.cpp.

References CRequestContext::GetRequestTimer(), CRequestContext::m_IsRunning, CStopWatch::Restart(), CRequestContext::SetBytesRd(), CRequestContext::SetBytesWr(), and CRequestContext::UnsetRequestStatus().

void CRequestContext::StopRequest void   )  [private, inherited]
 

Definition at line 166 of file request_ctx.cpp.

References CRequestContext::m_IsRunning, and CRequestContext::Reset().

bool & CRequestContext::sx_GetDefaultAutoIncRequestIDOnPost void   )  [static, private, inherited]
 

Definition at line 173 of file request_ctx.cpp.

Referenced by CRequestContext::GetDefaultAutoIncRequestIDOnPost(), and CRequestContext::SetDefaultAutoIncRequestIDOnPost().

void CRequestContext::UnsetBytesRd void   )  [inline, inherited]
 

Definition at line 382 of file request_ctx.hpp.

References CRequestContext::eProp_BytesRd, CRequestContext::m_BytesRd, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset().

void CRequestContext::UnsetBytesWr void   )  [inline, inherited]
 

Definition at line 409 of file request_ctx.hpp.

References CRequestContext::eProp_BytesWr, CRequestContext::m_BytesWr, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset().

void CRequestContext::UnsetClientIP void   )  [inline, inherited]
 

Definition at line 260 of file request_ctx.hpp.

References CRequestContext::eProp_ClientIP, CRequestContext::m_ClientIP, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset(), and CRequestStateGuard::~CRequestStateGuard().

void UnsetDiagPostFlag EDiagPostFlag  flag  ) 
 

Unset the specified flag (globally).

Definition at line 4100 of file ncbidiag.cpp.

References s_UnsetDiagPostFlag().

void UnsetDiagTraceFlag EDiagPostFlag  flag  ) 
 

Definition at line 4116 of file ncbidiag.cpp.

References s_UnsetDiagPostFlag().

Referenced by Cn3DApp::Cn3DApp(), Cn3DNoWin::Init(), and main().

void CRequestContext::UnsetHitID void   )  [inline, inherited]
 

Definition at line 322 of file request_ctx.hpp.

References CRequestContext::eProp_HitID, CRequestContext::m_HitID, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset().

void CRequestContext::UnsetProperty const string &  name  )  [inherited]
 

Remove property from the map.

Definition at line 132 of file request_ctx.cpp.

References map_checker< Container >::erase(), and CRequestContext::m_Properties.

void CRequestContext::UnsetRequestID void   )  [inline, inherited]
 

Reset request ID.

Definition at line 240 of file request_ctx.hpp.

References CRequestContext::eProp_RequestID, CRequestContext::m_RequestID, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset().

void CRequestContext::UnsetRequestStatus void   )  [inline, inherited]
 

Definition at line 355 of file request_ctx.hpp.

References CRequestContext::eProp_ReqStatus, CRequestContext::m_ReqStatus, and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset(), CDiagContext::SetProperty(), and CRequestContext::StartRequest().

void CRequestContext::UnsetSessionID void   )  [inline, inherited]
 

Definition at line 295 of file request_ctx.hpp.

References CRequestContext::eProp_SessionID, kEmptyStr, CRequestContext::m_SessionID, CEncodedString::SetString(), and CRequestContext::x_UnsetProp().

Referenced by CRequestContext::Reset(), and CRequestStateGuard::~CRequestStateGuard().

bool CRequestContext::x_IsSetProp EProperty  prop  )  const [inline, private, inherited]
 

Definition at line 417 of file request_ctx.hpp.

References CRequestContext::m_PropSet.

Referenced by CRequestContext::GetBytesRd(), CRequestContext::GetBytesWr(), CRequestContext::GetClientIP(), CRequestContext::GetEncodedSessionID(), CRequestContext::GetHitID(), CRequestContext::GetRequestID(), CRequestContext::GetRequestStatus(), CRequestContext::GetSessionID(), CRequestContext::IsSetBytesRd(), CRequestContext::IsSetBytesWr(), CRequestContext::IsSetClientIP(), CRequestContext::IsSetHitID(), CRequestContext::IsSetRequestID(), CRequestContext::IsSetRequestStatus(), and CRequestContext::IsSetSessionID().

void CRequestContext::x_SetProp EProperty  prop  )  [inline, private, inherited]
 

Definition at line 424 of file request_ctx.hpp.

References CRequestContext::m_PropSet.

Referenced by CRequestContext::SetBytesRd(), CRequestContext::SetBytesWr(), CRequestContext::SetClientIP(), CRequestContext::SetHitID(), CRequestContext::SetRequestID(), CRequestContext::SetRequestStatus(), and CRequestContext::SetSessionID().

void CRequestContext::x_UnsetProp EProperty  prop  )  [inline, private, inherited]
 

Definition at line 430 of file request_ctx.hpp.

References CRequestContext::m_PropSet.

Referenced by CRequestContext::UnsetBytesRd(), CRequestContext::UnsetBytesWr(), CRequestContext::UnsetClientIP(), CRequestContext::UnsetHitID(), CRequestContext::UnsetRequestID(), CRequestContext::UnsetRequestStatus(), and CRequestContext::UnsetSessionID().

CRequestContext::~CRequestContext void   )  [virtual, inherited]
 

Definition at line 55 of file request_ctx.cpp.


Variable Documentation

EDiagAppState CRequestContext::m_AppState [private, inherited]
 

Definition at line 198 of file request_ctx.hpp.

Referenced by CRequestContext::GetAppState(), CRequestContext::Reset(), and CRequestContext::SetAppState().

bool CRequestContext::m_AutoIncOnPost [private, inherited]
 

Definition at line 209 of file request_ctx.hpp.

Referenced by CRequestContext::GetAutoIncRequestIDOnPost(), and CRequestContext::SetAutoIncRequestIDOnPost().

Int8 CRequestContext::m_BytesRd [private, inherited]
 

Definition at line 204 of file request_ctx.hpp.

Referenced by CRequestContext::GetBytesRd(), CRequestContext::SetBytesRd(), and CRequestContext::UnsetBytesRd().

Int8 CRequestContext::m_BytesWr [private, inherited]
 

Definition at line 205 of file request_ctx.hpp.

Referenced by CRequestContext::GetBytesWr(), CRequestContext::SetBytesWr(), and CRequestContext::UnsetBytesWr().

string CRequestContext::m_ClientIP [private, inherited]
 

Definition at line 199 of file request_ctx.hpp.

Referenced by CRequestContext::GetClientIP(), CRequestContext::SetClientIP(), and CRequestContext::UnsetClientIP().

string CRequestContext::m_HitID [private, inherited]
 

Definition at line 201 of file request_ctx.hpp.

Referenced by CRequestContext::GetHitID(), CRequestContext::SetHitID(), and CRequestContext::UnsetHitID().

bool CRequestContext::m_IsRunning [private, inherited]
 

Definition at line 208 of file request_ctx.hpp.

Referenced by CRequestContext::IsRunning(), CRequestContext::StartRequest(), and CRequestContext::StopRequest().

TProperties CRequestContext::m_Properties [private, inherited]
 

Definition at line 206 of file request_ctx.hpp.

Referenced by CRequestContext::GetProperties(), CRequestContext::GetProperty(), CRequestContext::IsSetProperty(), CRequestContext::SetProperty(), and CRequestContext::UnsetProperty().

TPropSet CRequestContext::m_PropSet [private, inherited]
 

Definition at line 207 of file request_ctx.hpp.

Referenced by CRequestContext::x_IsSetProp(), CRequestContext::x_SetProp(), and CRequestContext::x_UnsetProp().

int CRequestContext::m_ReqStatus [private, inherited]
 

Definition at line 202 of file request_ctx.hpp.

Referenced by CRequestContext::GetRequestStatus(), CRequestContext::SetRequestStatus(), and CRequestContext::UnsetRequestStatus().

CStopWatch CRequestContext::m_ReqTimer [private, inherited]
 

Definition at line 203 of file request_ctx.hpp.

Referenced by CRequestContext::GetRequestTimer(), and CRequestContext::Reset().

int CRequestContext::m_RequestID [private, inherited]
 

Definition at line 197 of file request_ctx.hpp.

Referenced by CRequestContext::GetRequestID(), CRequestContext::SetRequestID(), and CRequestContext::UnsetRequestID().

CEncodedString CRequestContext::m_SessionID [private, inherited]
 

Definition at line 200 of file request_ctx.hpp.

Referenced by CRequestContext::GetEncodedSessionID(), CRequestContext::GetSessionID(), CRequestContext::SetSessionID(), and CRequestContext::UnsetSessionID().


Generated on Mon Dec 7 16:01:30 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:35 2009 by modify_doxy.py rev. 173732