| 126 | } MessageCompType; |
| 127 | |
| 128 | class SendingMessage |
| 129 | { |
| 130 | public: |
| 131 | SendingMessage(scenario* msg_scenario, const char* msg, bool skip_sanity = false); |
| 132 | ~SendingMessage(); |
| 133 | |
| 134 | struct MessageComponent *getComponent(int); |
| 135 | int numComponents(); |
| 136 | |
| 137 | char *getMethod(); |
| 138 | int getCode(); |
| 139 | |
| 140 | bool isResponse(); |
| 141 | bool isAck(); |
| 142 | bool isCancel(); |
| 143 | |
| 144 | static void parseAuthenticationKeyword(scenario *msg_scenario, struct MessageComponent *dst, char *keyword); |
| 145 | static void freeMessageComponent(struct MessageComponent *comp); |
| 146 | private: |
| 147 | std::vector <struct MessageComponent *> messageComponents; |
| 148 | |
| 149 | char *method = nullptr; |
| 150 | int code = 0; |
| 151 | |
| 152 | bool ack = false; |
| 153 | bool cancel = false; |
| 154 | bool response = false; |
| 155 | |
| 156 | scenario *msg_scenario = nullptr; |
| 157 | |
| 158 | // Get parameters from a [keyword] |
| 159 | static void getQuotedParam(char * dest, char * src, int * len); |
| 160 | static void getHexStringParam(char * dest, char * src, int * len); |
| 161 | static void getKeywordParam(char * src, const char * param, char * output); |
| 162 | }; |
| 163 | |
| 164 | /* Custom Keyword Function Type. */ |
| 165 | struct MessageComponent; |
nothing calls this directly
no outgoing calls
no test coverage detected