Use a variable on the stack to not have a temporary in the call
[ACE_TAO.git] / TAO / utils / logWalker / Log.h
blob781ca90e48543286514e559b8d336790cd456dcf
1 // -*- C++ -*-
3 //
5 #ifndef LOG_WALKER_LOG_H
6 #define LOG_WALKER_LOG_H
8 #include "ace/Containers.h"
9 #include "ace/Synch.h"
10 #include "ace/SString.h"
11 #include "ace/Time_Value.h"
12 #include "PeerProcess.h"
13 #include "HostProcess.h"
14 #include "GIOP_Buffer.h"
16 class Session;
17 class HostProcess;
18 class Invocation;
20 typedef ACE_DLList<HostProcess> HostProcesses;
22 class Incident
24 public:
25 ACE_CString timestamp_;
26 size_t offset_;
27 int thread_;
28 ACE_CString annotation_;
29 Invocation *invocation_;
32 typedef ACE_Unbounded_Queue<Incident> IncidentList;
35 class Log
37 public:
38 Log (Session &s);
40 virtual ~Log();
42 bool process_file (const ACE_TCHAR *filename, const char *alias = "");
44 protected:
45 virtual void parse_line ();
47 void get_preamble ();
48 void get_timestamp ();
49 void handle_msg_octets ();
50 bool match_target();
52 void parse_handler_open_i (bool is_ssl);
53 void parse_connection_handler_ctor_i ();
54 void parse_dump_giop_msg_i ();
55 void parse_HEXDUMP_i ();
56 void parse_open_listener_i ();
57 void parse_got_existing_i ();
58 void parse_muxed_tms_i ();
59 void parse_exclusive_tms_i ();
60 void parse_process_parsed_msgs_i ();
61 void parse_wait_for_event_i ();
62 void parse_wait_on_read_i ();
63 void parse_make_idle_i ();
64 void parse_cleanup_queue_i ();
65 void parse_complete_connection_i ();
66 void parse_close_connection_i ();
67 void parse_begin_connection_i ();
68 void parse_local_addr_i ();
69 void parse_connection_not_complete_i ();
70 void parse_open_as_server_i ();
71 void parse_iiop_connection_handler_ctor_i ();
72 void parse_wait_for_connection_i ();
73 void parse_post_open_i ();
74 void parse_notify_poa_helper_i ();
75 void parse_notify_object_i ();
77 ACE_CString origin_;
78 ACE_CString alias_;
79 Session &session_;
80 HostProcesses procs_;
81 GIOP_Buffer unknown_msg_;
82 GIOP_Buffer* dump_target_;
83 ThreadList giop_waiters_;
84 ACE_DLList<PeerProcess> conn_waiters_;
85 IncidentList history_;
87 // parsed for every line
88 ACE_CString timestamp_;
89 ACE_Time_Value time_;
90 char *line_;
91 char *info_;
92 size_t offset_;
93 HostProcess *hostproc_;
94 Thread *thr_;
97 #endif // LOG_WALKER_LOG_H