Revision 139
changed how the command gets its connection pool a little bit
Command.h | ||
---|---|---|
12 | 12 |
|
13 | 13 |
class Command { |
14 | 14 |
public: |
15 |
Command(); |
|
15 |
Command(ConnectionPool * connection_pool);
|
|
16 | 16 |
~Command(); |
17 | 17 |
|
18 |
int parse_command(char* command, int pool_index, ConnectionPool * connection_pool);
|
|
18 |
int parse_command(char* command, int pool_index); |
|
19 | 19 |
int tokenize_command(char* command, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE]); |
20 | 20 |
int check_tokens(unsigned char* tokens, int number_tokens); |
21 | 21 |
|
22 | 22 |
private: |
23 | 23 |
int parse_send_to_robot(int number_tokens, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE]); |
24 |
int parse_request_from_server(int number_tokens, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE], ConnectionPool * connection_pool, int pool_index);
|
|
24 |
int parse_request_from_server(int number_tokens, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE], int pool_index); |
|
25 | 25 |
|
26 |
int parse_request_bom_matrix(ConnectionPool * connection_pool, int pool_index); |
|
27 |
int parse_request_xbee_ids(ConnectionPool * connection_pool, int pool_index); |
|
26 |
int parse_request_bom_matrix(int pool_index); |
|
27 |
int parse_request_xbee_ids(int pool_index); |
|
28 |
|
|
29 |
ConnectionPool * connection_pool; |
|
28 | 30 |
}; |
29 | 31 |
|
30 | 32 |
|
Also available in: Unified diff