common_util
Loading...
Searching...
No Matches
Functions
config.h File Reference

Config for common_util library, such as initialization and destory for library. More...

#include "logtype.h"

Go to the source code of this file.

Functions

std::string cutl::library_name ()
 Get the name of the library.
 
std::string cutl::library_version ()
 Get the version of the library.
 
void cutl::library_init (LogFuncType log_func)
 Initialize the library.
 

Detailed Description

Config for common_util library, such as initialization and destory for library.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations.

Author
spencer.luo
Date
2024-05-13

Function Documentation

◆ library_init()

void cutl::library_init ( LogFuncType log_func)

Initialize the library.

Parameters
log_funcThe function pointer for LogFuncType, register a log function for the library.

◆ library_name()

std::string cutl::library_name ( )

Get the name of the library.

Returns
library name.

◆ library_version()

std::string cutl::library_version ( )

Get the version of the library.

Returns
the version of the library