mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
add some annotate
This commit is contained in:
parent
2477158095
commit
dc4996eeea
|
@ -65,7 +65,6 @@ extern "C"
|
||||||
#define LOGE(...)
|
#define LOGE(...)
|
||||||
#define LOGF(...)
|
#define LOGF(...)
|
||||||
#endif
|
#endif
|
||||||
typedef struct i_log ILog;
|
|
||||||
typedef struct i_log
|
typedef struct i_log
|
||||||
{
|
{
|
||||||
void (*init)(ILog *, const enum LogInstance);
|
void (*init)(ILog *, const enum LogInstance);
|
||||||
|
|
|
@ -16,6 +16,11 @@
|
||||||
#define ILOGCPP_H
|
#define ILOGCPP_H
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
/**
|
||||||
|
* @brief Abstract interface class
|
||||||
|
* If you want to add additional functions, you can derive a class from it to
|
||||||
|
* meet the product requirements.
|
||||||
|
*/
|
||||||
class ILogCpp
|
class ILogCpp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Create a log instance
|
||||||
|
*
|
||||||
|
*/
|
||||||
#ifndef ILOG_MAKE_PTR_H
|
#ifndef ILOG_MAKE_PTR_H
|
||||||
#define ILOG_MAKE_PTR_H
|
#define ILOG_MAKE_PTR_H
|
||||||
#include "ILogCpp.h"
|
#include "ILogCpp.h"
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
ENABLED = false
|
ENABLED = false
|
||||||
FILENAME = "/tmp/logs/myeasylog-configuration.cpp-error.log"
|
FILENAME = "/tmp/logs/myeasylog-configuration.cpp-error.log"
|
||||||
* FATAL:
|
* FATAL:
|
||||||
ENABLED = false
|
ENABLED = false
|
Loading…
Reference in New Issue
Block a user