Design query using Boost.
All,
I have a design sinerio. I have different struct (C structures) having
different data's but NO similarities between struct and each struct does
different operations. The struct for example are -
struct Apple {
int A;
char B;
long C;
double d;
..
..};
struct Orange {
char A;
int B;
unsigned int C;
long d;
..
};
and maybe few more.
Above few struct data members have dynamic data and other members have
fixed/hardcoded datas. The complete struct is send as a buffer to a remote
machine through native send()/read() API calls which has been successfully
implemented. Please note this data as tested were hard coded or completely
static but didn't had combination of dynamic/real and static data..
Now such operations (viz different or repeated) with ONE/MULTIPLE SET of
data could be many as 1000, I wish now to send complete operations to
remote machine, get a ACK from it and work on this struct data with
modification/cancellation/reject/etc operations.
One way could be to work with something similar -
struct Apple {
...
..};
vector <Apple> data;
data.insert (begin();end())
---
But, I have few questions -
1. I can have "std::map
participants (1)
-
Rahul Mathur