logging_sup.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 86 行
H
86 行
// Logging_Sup.h,v 1.3 1998/10/20 02:33:18 levine Exp
// ============================================================================
//
// = FILENAME
// Logging_Sup.h
//
// = DESCRIPTION
// Event supplier for visualization of scheduling behavior, using
// arrival and dispatch data logged by an EC dispatch command object
//
// = AUTHOR
// Chris Gill (cdgill@cs.wustl.edu)
//
// Adapted from the orginal DOVE simulation event supplier written by
// Michael Kircher (mk1@cs.wustl.edu)
//
// ============================================================================
#ifndef LOGGING_SUP_H
#define LOGGING_SUP_H
//#include <ctype.h>
//#include <stdio.h>
#include "NavWeapC.h"
#include "DOVE_Supplier.h"
struct Schedule_Viewer_Data
{
char operation_name [BUFSIZ];
double utilitzation;
double overhead;
u_long arrival_time;
u_long deadline_time;
u_long completion_time;
u_long computation_time;
};
class Logging_Supplier
{
// = TITLE
// Event Supplier.
//
// = DESCRIPTION
// Reads Scheduler information out of a file and
// feeds it with additional navigation and
// weapon data into the dove_supplier, which
// is connected to the event channel
public:
Logging_Supplier (int argc, char** argv);
~Logging_Supplier (void);
int init (void);
// connect the DOVE_Supplier
void start_generating_events (void);
// here is really something going on,
// here we deliver the messages
void load_schedule_data (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data);
// Load the scheduling information into memory
private:
void insert_event_data (CORBA::Any &data,
ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter);
// just a helper to put all the information into the CORBA::Any
unsigned int get_options (int argc, char *argv []);
DOVE_Supplier dOVE_Supplier_;
Navigation navigation_;
Weapons weapons_;
int argc_;
char **argv_;
unsigned long total_messages_;
char *input_file_name_;
unsigned long update_data_;
const char* schedule_file_name_;
};
#endif /* LOGGING_SUP_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?