~ubuntu-branches/ubuntu/utopic/sip-tester/utopic

« back to all changes in this revision

Viewing changes to actions.hpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell, Paul Belanger, Mark Purcell
  • Date: 2011-11-03 21:56:17 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20111103215617-nnxicj1oto9e8ix5
Tags: 1:3.2-1
[ Paul Belanger ]
* New Upstream Release (Closes: #623915).
* Switch to dpkg-source 3.0 (quilt) format
* Building with PCAP play.
* Switch back to Debhelper.
* debian/patches/spelling-error-in-binary: Fix lintian warning

[ Mark Purcell ]
* Drop pabs from Uploaders: at his request
* fix debhelper-overrides-need-versioned-build-depends
* fix description-synopsis-starts-with-article

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "prepare_pcap.h"
32
32
#endif
33
33
 
34
 
#define MAX_ACTION_MESSAGE 2
 
34
#define MAX_ACTION_MESSAGE 3
35
35
 
36
36
class CAction
37
37
{
48
48
      E_AT_ASSIGN_FROM_GETTIMEOFDAY,
49
49
      E_AT_JUMP,
50
50
      E_AT_LOOKUP,
 
51
      E_AT_INSERT,
 
52
      E_AT_REPLACE,
51
53
      E_AT_PAUSE_RESTORE,
52
54
      E_AT_LOG_TO_FILE,
53
55
      E_AT_LOG_WARNING,
 
56
      E_AT_LOG_ERROR,
54
57
      E_AT_EXECUTE_CMD,
55
58
      E_AT_EXEC_INTCMD,
56
59
      E_AT_VAR_ADD,
62
65
      E_AT_VAR_STRCMP,
63
66
      E_AT_VAR_TRIM,
64
67
      E_AT_VERIFY_AUTH,
 
68
      E_AT_SET_DEST,
 
69
      E_AT_CLOSE_CON,
65
70
#ifdef PCAPPLAY
66
71
      E_AT_PLAY_PCAP_AUDIO,
67
72
      E_AT_PLAY_PCAP_VIDEO,
73
78
    {
74
79
      E_LP_MSG = 0,
75
80
      E_LP_HDR,
 
81
      E_LP_BODY,
 
82
      E_LP_VAR,
76
83
      E_LP_NB_LOOKING_PLACE
77
84
    };
78
85
 
108
115
    T_LookingPlace getLookingPlace();
109
116
    T_Comparator   getComparator();
110
117
    bool           getCheckIt();
 
118
    bool           getCheckItInverse();
111
119
    bool           getCaseIndep();
112
120
    bool           getHeadersOnly();
113
121
    int            getVarId();
114
122
    int            getVarInId();
 
123
    int            getVarIn2Id();
115
124
    int            getOccurence();
116
125
    char*          getLookingChar();
117
126
    char*          getRegularExpression();
118
127
    SendingMessage *getMessage(int n = 0);  /* log specific function  */
119
 
    SendingMessage *getCmdLine();  /* exec specific function */
120
128
    T_IntCmdType   getIntCmd();   /* exec specific function */
121
129
#ifdef PCAPPLAY
122
130
    pcap_pkts     *getPcapPkts(); /* send_packets specific function */
126
134
    void setLookingPlace (T_LookingPlace P_value);
127
135
    void setComparator   (T_Comparator   P_value);
128
136
    void setCheckIt      (bool           P_value);
 
137
    void setCheckItInverse (bool           P_value);
129
138
    void setVarId        (int            P_value);
130
139
    void setVarInId      (int            P_value);
 
140
    void setVarIn2Id      (int            P_value);
131
141
    void setLookingChar  (char*          P_value);
132
142
    void setAction       (CAction        P_action);
133
143
    void setCaseIndep    (bool           P_action);
137
147
    void setRegExp       (char*          P_value);  /* ereg specific function. */
138
148
    int  executeRegExp   (char* P_string, VariableTable *P_callVarTable);
139
149
    void setMessage      (char*          P_value, int n = 0);  /* log specific function  */
140
 
    void setCmdLine      (char*          P_value);  /* exec specific function */
141
150
    void setIntCmd       (T_IntCmdType   P_type );  /* exec specific function */
142
151
    void setDistribution (CSample *      P_value);  /* sample specific function  */
143
152
    void setDoubleValue  (double         P_value);  /* assign value specific function  */
164
173
      T_LookingPlace M_lookingPlace;
165
174
      T_Comparator   M_comp;
166
175
      bool           M_checkIt;
 
176
      bool           M_checkItInverse;
167
177
      bool           M_caseIndep;
168
178
      bool           M_headersOnly;
169
179
      int            M_varId;
170
180
      int            M_varInId;
 
181
      int            M_varIn2Id;
171
182
      int            M_occurence;
172
183
      int            M_nbSubVarId;
173
184
      int            M_maxNbSubVarId;
178
189
      SendingMessage *M_message[MAX_ACTION_MESSAGE];
179
190
      char *         M_message_str[MAX_ACTION_MESSAGE];
180
191
      /* exec specific member */
181
 
      SendingMessage *M_cmdLine;
182
 
      char*          M_cmdLine_str;
183
192
      T_IntCmdType   M_IntCmd;
184
193
      /* sample specific member. */
185
194
      CSample        *M_distribution;