42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
65 std::string name = scheme.
name;
110 const std::vector<std::string> &
135 vs.
name =
"standard";
136 gSchemeStorage.
add(vs);
140 vs.
name =
"faster standard";
143 gSchemeStorage.
add(vs);
147 vs.
name =
"real world";
153 gSchemeStorage.
add(vs);
157 int noSaved = app->reg().readIntEntry(
"VisualizationSettings",
"settingNo", 0);
158 for (
int i = 0; i < noSaved; ++i) {
159 std::string name =
"visset#" +
toString(i);
160 std::string setting = app->reg().readStringEntry(
"VisualizationSettings", name.c_str(),
"");
165 app->reg().readStringEntry(
"VisualizationSettings", name.c_str(),
"");
168 int xmlSize = app->reg().readIntEntry(name.c_str(),
"xmlSize", 0);
169 std::string content =
"";
171 while (xmlSize > 0) {
172 std::string part = app->reg().readStringEntry(name.c_str(), (
"xml" +
toString(index)).c_str(),
"");
177 xmlSize -= (
int) part.size();
180 if (content !=
"" && xmlSize == 0) {
195 const std::vector<std::string> &names =
getNames();
196 app->reg().writeIntEntry(
"VisualizationSettings",
"settingNo", (FXint) names.size() -
myNumInitialSettings);
198 for (std::vector<std::string>::const_iterator i = names.begin() +
myNumInitialSettings; i != names.end(); ++i, ++gidx) {
200 std::string sname =
"visset#" +
toString(gidx);
202 app->reg().writeStringEntry(
"VisualizationSettings", sname.c_str(), item.
name.c_str());
206 app->reg().writeIntEntry(sname.c_str(),
"xmlSize", (FXint)(content.size()));
207 const unsigned maxSize = 1500;
208 for (
unsigned int i = 0; i < content.size(); i += maxSize) {
209 const std::string b = content.substr(i, maxSize);
210 app->reg().writeStringEntry(sname.c_str(), (
"xml" +
toString(i / maxSize)).c_str(), b.c_str());