Changeset 973 for cpp/frams/model/modelparts.cpp
- Timestamp:
- 07/03/20 00:37:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/modelparts.cpp
r952 r973 149 149 SString t; 150 150 t = getDescription(); 151 if (t.len ()) t += "\n\n";151 if (t.length()) t += "\n\n"; 152 152 t += "Characteristics:\n"; 153 153 if (getPreferredInputs()) … … 171 171 if (p.getPropCount()) 172 172 { 173 if (t.len ()) t += "\n\n";173 if (t.length()) t += "\n\n"; 174 174 t += "Properties:\n"; 175 175 const char *h; … … 341 341 { 342 342 SString ret = getClassName(); 343 if (myclassparams.len ()) { if (!ret.len()) ret = "N"; ret += ":"; ret += myclassparams; }343 if (myclassparams.length()) { if (!ret.length()) ret = "N"; ret += ":"; ret += myclassparams; } 344 344 return ret; 345 345 } … … 372 372 int Neuro::addInput(Neuro *child, double weight, const SString *info) 373 373 { 374 inputs += NInput(child, weight, (info && (info->len ())) ? new SString(*info) : 0);374 inputs += NInput(child, weight, (info && (info->length())) ? new SString(*info) : 0); 375 375 child->parentcount++; 376 376 if (child->parentcount == 1) { child->parent = this; } … … 759 759 ParamEntry entries[] = { 760 760 { "class", 2, 0, "neuro class", "s", GETSET(neuroclass) }, 761 { "liveNeuro", 2, 1, "live Neuro object", "oNeuro", GETONLY(liveNeuro) } };761 { "liveNeuro", 2, 1, "live Neuro object", "oNeuro", GETONLY(liveNeuro) } }; 762 762 #undef FIELDSTRUCT 763 for (auto& e : entries) add(&e);763 for (auto& e : entries) add(&e); 764 764 765 765 #define FIELDSTRUCT Neuro … … 804 804 { 805 805 #ifndef SDK_WITHOUT_FRAMS 806 NeuroNetImpl::getLiveNeuroObject(this, ret);806 NeuroNetImpl::getLiveNeuroObject(this, ret); 807 807 #endif 808 808 }
Note: See TracChangeset
for help on using the changeset viewer.