Skip to main content

Post-processing tools 2023 R2

logger_interface.h

Last update: 17.04.2023
Go to the documentation of this file.
1 /* *************************************************************
2  * Copyright 2018-2019 ANSYS, Inc.
3  * All Rights Reserved.
4  *
5  * Restricted Rights Legend
6  *
7  * Use, duplication, or disclosure of this
8  * software and its documentation by the
9  * Government is subject to restrictions as
10  * set forth in subdivision [(b)(3)(ii)] of
11  * the Rights in Technical Data and Computer
12  * Software clause at 52.227-7013.
13  * *************************************************************
14  */
15 
16 #ifndef ____DVS_LOGGER_INTERFACE_H____
17 #define ____DVS_LOGGER_INTERFACE_H____
18 
27 
28 namespace DVS
29 {
34 class ILogger
35 {
36 public:
37  ILogger() = default;
38  virtual ~ILogger() = default;
39  ILogger(ILogger&&) = default;
40  ILogger& operator=(ILogger&&) = default;
41  ILogger(const ILogger&) = default;
42  ILogger& operator=(const ILogger&) = default;
43 
51  virtual void log(int type, const char* msg, ...) = 0;
52 
60  virtual void release() {};
61 };
62 }
63 
64 #endif //____DVS_LOGGER_INTERFACE_H____
Interface for a logger to be used by DVS::IClient.
ILogger(ILogger &&)=default
default
virtual ~ILogger()=default
default
virtual void release()
Release the memory of the object.
ILogger(const ILogger &)=default
support copying
virtual void log(int type, const char *msg,...)=0
Logging method to be overriden.
ILogger & operator=(const ILogger &)=default
default
ILogger()=default
default
ILogger & operator=(ILogger &&)=default
default
C API for using Dynamic Visualization Store.