I am having an issue with my multimap insert. I have looked high and low for a possible solution to this problem. What I am trying to do is make an dynamic hierarchy data structure that has a root element then child elements under it holding values. I thought using a 3 dimensional multimap would be the best way but hey I am still a newbie. If you can think of a more efficient way to do it I am all for it.
a sample of the data is:
me {
name: stats.devish.net;
desc: DNet Stats Server;
numeric: 343;
bind: ipAddress;
quitprefix: Quit:;
};
connect {
host: ipAddress;
port: 7867;
pass: ********;
}
What I am having problems is the line that is inserting the child elements into the higharchy on line 13 below.
// storage class for our dynamic conf blocks
std::set<const char*> block_names;
std::set< const char*>::iterator blockit;
//storage class for block elements
typedef std::multimap<const char*,const char*> eTYPE;
std::multimap<const char*, eTYPE > blocks;
void Conf::Run()
{
//populate "me" core block
Conf::addClass("me");
blocks.insert(std::multimap::value_type("me", eTYPE::value_type("name", "dnet")));
//populate "connect" core block
Conf::addClass("connect");
}
If you need anything from me let me know. Thank you for your time. :)