21cd38a8a53f9c7a7f4c0840bb36c4e80b864d20
[platform/core/uifw/dali-adaptor.git] / adaptors / base / interfaces / trace-interface.h
1 #ifndef __DALI_INTERNAL_BASE_TRACE_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_TRACE_INTERFACE_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <string>
23
24
25 // INTERNAL INCLUDES
26 #include <base/performance-logging/performance-marker.h>
27
28 namespace Dali
29 {
30
31 namespace Internal
32 {
33
34 namespace Adaptor
35 {
36
37 /**
38  * Abstract Tracing Interface.
39  * Used to log trace messages.
40  * E.g. On Linux this may use ftrace
41  *
42  */
43 class TraceInterface
44 {
45
46 public:
47
48   /**
49    * Write a trace message
50    * @param marker performance marker
51    * @param traceMessage trace message
52    */
53   virtual void Trace( const PerformanceMarker& marker, const std::string& traceMessage ) = 0;
54
55 protected:
56
57   /**
58    * Constructor
59    */
60   TraceInterface()
61   {
62   }
63
64   /**
65    * virtual destructor
66    */
67   virtual ~TraceInterface()
68   {
69   }
70
71   // Undefined copy constructor.
72   TraceInterface( const TraceInterface& );
73
74   // Undefined assignment operator.
75   TraceInterface& operator=( const TraceInterface& );
76 };
77
78 } // namespace Internal
79
80 } // namespace Adaptor
81
82 } // namespace Dali
83
84 #endif