I think list's element setting and group's element setting are different.
for example:
list = (1,2,3);
group = {
a = "asd";
b = 1;
};
libconfig::Setting& list = cfg.lookup("list");
libconfig::Setting& group = cfg.lookup("group");
for (int i = 0; i < list.getLength(); ++i) {
libconfig::Setting& s = list[i];
cout << s.getName(); // list's element dont have getName()
}
for (int i = 0; i < group.getLength(); ++i) {
libconfig::Setting& s = group[i];
cout << s.getName(); // group's element have Name.
}
I found many function, isScalar and ...
is there any is function to identify list and group's element?
I think list's element setting and group's element setting are different.
for example:
I found many function, isScalar and ...
is there any is function to identify list and group's element?