Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
PcapSettings Class Reference

#include <pcap_settings.h>

Inheritance diagram for PcapSettings:
Inheritance graph
Collaboration diagram for PcapSettings:
Collaboration graph

Public Member Functions

 PcapSettings (ConfigProvider *config_provider)
 
 PcapSettings ()
 
void load_registry ()
 
void validate_settings ()
 
double bytes_to_user_unit (u_short bytes)
 
double timeval_to_double (timeval ts)
 
double round_double (double time)
 
bool is_aggregation_active ()
 
bool is_aggregation_active (AggrLevel level)
 
bool add_packet_to_diagram (Packet *p, ParseLayer layer)
 
bool ignore_packet (Packet *p)
 
 ~PcapSettings ()
 
- Public Member Functions inherited from ConfigReader
 ConfigReader ()
 
 ConfigReader (ConfigProvider *config_provider)
 
virtual ~ConfigReader ()
 
void set_config_provider (ConfigProvider *config_provider)
 
ConfigProviderget_config_provider () const
 
long get_config_long (const std::wstring &section, const std::wstring &parameter, long def=0) const
 
float get_config_float (const std::wstring &section, const std::wstring &parameter, float def=0.0f) const
 
std::wstring get_config_string (const std::wstring &section, const std::wstring &parameter, std::wstring def=L"") const
 

Public Attributes

bool show_timestamps
 
TimeFormat time_format
 
int time_unit
 
int data_unit
 
std::string pcap_filter
 
ParseLayer parse_layer
 
bool ignore_packets
 
ViewSettingsview_settings
 
AdvancedSettingsadv_settings
 
AggregSettingsflow_settings
 

Detailed Description

Class to hold and handle user defined settings for pcap import Interaction with transformation algorithm

Definition at line 194 of file pcap_settings.h.

Constructor & Destructor Documentation

PcapSettings::PcapSettings ( ConfigProvider config_provider)
inline

Constructor for Visio add-on -> data from Windows registry

Definition at line 214 of file pcap_settings.h.

PcapSettings::PcapSettings ( )
inline

Default constructor

Definition at line 219 of file pcap_settings.h.

PcapSettings::~PcapSettings ( )
inline

Destructor

Definition at line 269 of file pcap_settings.h.

References adv_settings, flow_settings, and view_settings.

Member Function Documentation

bool PcapSettings::add_packet_to_diagram ( Packet p,
ParseLayer  layer 
)

Return true if given packet should be added to diagram, false otherwise

Definition at line 116 of file pcap_settings.cpp.

References Packet::get_upper_data_size(), Packet::get_upper_proto(), ignore_packets, and parse_layer.

Referenced by PcapHandler::packet_handler().

double PcapSettings::bytes_to_user_unit ( u_short  bytes)

Return data size in user defined data units

Definition at line 83 of file pcap_settings.cpp.

References BITS, data_unit, result, and round().

Referenced by AggregHandler::get_label(), and PcapHandler::get_message_label().

bool PcapSettings::ignore_packet ( Packet p)

Return true if given packet should be ignored

Definition at line 121 of file pcap_settings.cpp.

References Packet::get_upper_data_size(), Packet::get_upper_proto(), and ignore_packets.

Referenced by PcapHandler::packet_handler().

bool PcapSettings::is_aggregation_active ( )
bool PcapSettings::is_aggregation_active ( AggrLevel  level)
void PcapSettings::load_registry ( )
double PcapSettings::round_double ( double  time)

Return double rounded by time unit (added for relative times)

Definition at line 70 of file pcap_settings.cpp.

References MICROSECONDS, MILISECONDS, round(), SECONDS, and time_unit.

Referenced by PcapHandler::create_relative_interval().

double PcapSettings::timeval_to_double ( timeval  ts)

Return timeval value in rounded double format

Definition at line 57 of file pcap_settings.cpp.

References MICROSECONDS, MILISECONDS, result, round(), SECONDS, and time_unit.

Referenced by PcapHandler::packet_handler().

void PcapSettings::validate_settings ( )

Member Data Documentation

AdvancedSettings* PcapSettings::adv_settings
int PcapSettings::data_unit

Definition at line 201 of file pcap_settings.h.

Referenced by bytes_to_user_unit(), Pcap::load_configuration(), and load_registry().

AggregSettings* PcapSettings::flow_settings
bool PcapSettings::ignore_packets

Definition at line 205 of file pcap_settings.h.

Referenced by add_packet_to_diagram(), ignore_packet(), and validate_settings().

ParseLayer PcapSettings::parse_layer
std::string PcapSettings::pcap_filter

Definition at line 202 of file pcap_settings.h.

Referenced by Pcap::load_configuration(), Pcap::load_msc(), and load_registry().

bool PcapSettings::show_timestamps
TimeFormat PcapSettings::time_format
int PcapSettings::time_unit
ViewSettings* PcapSettings::view_settings

The documentation for this class was generated from the following files:

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen