#include <PacketDrillUtils.h>
PacketDrillScript::PacketDrillScript |
( |
const char * |
file | ) |
|
274 eventList =
new cQueue(
"scriptEventList");
277 assert(scriptFile !=
nullptr);
cQueue * optionList
Definition: PacketDrillUtils.h:608
int length
Definition: PacketDrillUtils.h:611
char * buffer
Definition: PacketDrillUtils.h:610
cQueue * eventList
Definition: PacketDrillUtils.h:609
const char * scriptPath
Definition: PacketDrillUtils.h:612
PacketDrillScript::~PacketDrillScript |
( |
| ) |
|
284 for (cQueue::Iterator iter(*
eventList); !iter.end(); iter++)
287 for (cQueue::Iterator iter(*
optionList); !iter.end(); iter++)
Definition: PacketDrillUtils.h:482
cQueue * optionList
Definition: PacketDrillUtils.h:608
cQueue * eventList
Definition: PacketDrillUtils.h:609
Referenced by yyparse().
cQueue * eventList
Definition: PacketDrillUtils.h:609
Referenced by yyparse().
cQueue * optionList
Definition: PacketDrillUtils.h:608
char* PacketDrillScript::getBuffer |
( |
| ) |
|
|
inline |
char * buffer
Definition: PacketDrillUtils.h:610
cQueue* PacketDrillScript::getEventList |
( |
| ) |
|
|
inline |
cQueue * eventList
Definition: PacketDrillUtils.h:609
int PacketDrillScript::getLength |
( |
| ) |
const |
|
inline |
int length
Definition: PacketDrillUtils.h:611
cQueue* PacketDrillScript::getOptionList |
( |
| ) |
|
|
inline |
const char* PacketDrillScript::getScriptPath |
( |
| ) |
|
|
inline |
Referenced by parse_script().
const char * scriptPath
Definition: PacketDrillUtils.h:612
int PacketDrillScript::parseScriptAndSetConfig |
( |
PacketDrillConfig * |
config, |
|
|
const char * |
script_buffer |
|
) |
| |
345 EV_DETAIL <<
"parse_and_run_script: " <<
scriptPath << endl;
PacketDrillConfig * config
Definition: PacketDrillUtils.h:338
void setScriptPath(const char *sPath)
Definition: PacketDrillUtils.h:457
void readScript()
Definition: PacketDrillUtils.cc:292
Definition: PacketDrillUtils.h:337
int parse_script(PacketDrillConfig *config, PacketDrillScript *script, struct invocation *callback_invocation)
Definition: parser.cc:206
const char * scriptPath
Definition: PacketDrillUtils.h:612
void PacketDrillScript::readScript |
( |
| ) |
|
297 struct stat script_info;
302 EV_INFO <<
"parse error: stat() of script file '" <<
scriptPath <<
"': " << strerror(errno) << endl;
307 size = fmax((
int)script_info.st_size, size) + 1;
315 EV_INFO <<
"parse error opening script file '" <<
scriptPath <<
"': " << strerror(errno) << endl;
319 EV_INFO <<
"parse error reading script file '" <<
scriptPath <<
"': " << strerror(errno) << endl;
332 EV_INFO <<
"File destriptor was closed\n";
334 EV_INFO <<
"Script " <<
scriptPath <<
" was read with " <<
length <<
" length\n";
bool close(double one, double two)
Tests whether two doubles are close enough to be declared equal.
Definition: INETMath.h:135
int length
Definition: PacketDrillUtils.h:611
char * buffer
Definition: PacketDrillUtils.h:610
const char * scriptPath
Definition: PacketDrillUtils.h:612
char* PacketDrillScript::buffer |
|
private |
cQueue* PacketDrillScript::eventList |
|
private |
int PacketDrillScript::length |
|
private |
cQueue* PacketDrillScript::optionList |
|
private |
const char* PacketDrillScript::scriptPath |
|
private |
The documentation for this class was generated from the following files: