15 #include <fipa_acl/message_generator/message_generator.h> 17 std::map<std::string, std::string>
options;
19 bool usage(
int argc,
char** argv)
25 printf(
"usage: %s -p <performative> -c <content>\n", argv[0]);
29 while( (option = getopt(argc, argv,
"hp:c:")) != -1 )
35 options[
"performative"] = optarg;
41 printf(
"usage: %s -p <performative> -c <content>\n", argv[0]);
51 int main(
int argc,
char** argv)
53 if( !
usage(argc, argv) )
62 int size = bitefficientMsg.size();
64 for(
int i = 0; i < size; i++)
66 fprintf(stderr,
"%x ", bitefficientMsg[i]);
69 fprintf(stderr,
"\n");
static std::string create(const ACLMessage &msg, const representation::Type &acl_representation)
int main(int argc, char **argv)
void setContent(const std::string &content)
std::map< std::string, std::string > options
bool usage(int argc, char **argv)
This class provides a representation of a message conforming to the FIPA specification SC00061...