DCFG
Dynamic Control Flow Graph
 All Classes Functions
dcfg_trace_api.H
1 /*BEGIN_LEGAL
2 BSD License
3 
4 Copyright (c) 2015 Intel Corporation. All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are
8 met:
9 
10 Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer. Redistributions
12 in binary form must reproduce the above copyright notice, this list of
13 conditions and the following disclaimer in the documentation and/or
14 other materials provided with the distribution. Neither the name of
15 the Intel Corporation nor the names of its contributors may be used to
16 endorse or promote products derived from this software without
17 specific prior written permission.
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR
23 ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 END_LEGAL */
31 
32 #ifndef DCFG_TRACE_API_H
33 #define DCFG_TRACE_API_H
34 
35 #include "dcfg_api.H"
36 
37 namespace dcfg_trace_api {
38 
45  public:
46 
47  // Default virtual destructor to ensure cleanup.
48  virtual ~DCFG_TRACE_READER() {}
49 
59  static DCFG_TRACE_READER*
60  new_reader(dcfg_api::DCFG_ID process_id
64  );
65 
70  virtual bool
71  open(const std::string filename,
74  UINT32 tid,
76  std::string& errMsg
78  ) =0;
79 
88  virtual bool
97  bool& done,
100  std::string& errMsg
102  ) =0;
103  };
104 }; // namespace
105 #endif