MCPcopy Create free account
hub / github.com/Kitware/VTK / proj_log_level

Function proj_log_level

ThirdParty/libproj/vtklibproj/src/log.cpp:104–118  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

102
103/***************************************************************************************/
104PJ_LOG_LEVEL proj_log_level (PJ_CONTEXT *ctx, PJ_LOG_LEVEL log_level) {
105/****************************************************************************************
106 Set logging level 0-3. Higher number means more debug info. 0 turns it off
107****************************************************************************************/
108 PJ_LOG_LEVEL previous;
109 if (nullptr==ctx)
110 ctx = pj_get_default_ctx();
111 if (nullptr==ctx)
112 return PJ_LOG_TELL;
113 previous = static_cast<PJ_LOG_LEVEL>(abs (ctx->debug_level));
114 if (PJ_LOG_TELL==log_level)
115 return previous;
116 ctx->debug_level = log_level;
117 return previous;
118}
119
120/*****************************************************************************/
121static std::string add_short_name_prefix(const PJ* P, const char* fmt)

Callers 6

proj_transFunction · 0.85
createFromPROJStringMethod · 0.85
update_parametersFunction · 0.85
build_rot_matrixFunction · 0.85
helmert.cppFile · 0.85
computeReverseParametersFunction · 0.85

Calls 2

pj_get_default_ctxFunction · 0.85
absFunction · 0.50

Tested by

no test coverage detected