void moduleLoad() { if (0 != notifyFrequencys.size()) { if (0 != slicePoints.size() && 0 != axis.size()) { for (int i = 0; i < (int) slicePoints.size(); ++i) /*!\todo: use vactor with max elements*/ { uint32_t frequ = getValue(notifyFrequencys, i); if (frequ != 0) { if (getValue(axis, i).length() == 2u) { std::stringstream o_slicePoint; o_slicePoint << getValue(slicePoints, i); /*add default value for folder*/ if (folders.empty()) { folders.push_back(std::string(".")); } std::string filename(analyzerName + "_" + getValue(axis, i) + "_" + o_slicePoint.str()); typename VisType::CreatorType pngCreator(filename, getValue(folders, i)); DataSpace<DIM2 > transpose( charToAxisNumber(getValue(axis, i)[0]), charToAxisNumber(getValue(axis, i)[1]) ); VisType* tmp = new VisType(analyzerName, pngCreator, frequ, transpose, getValue(slicePoints, i)); visIO.push_back(tmp); tmp->setMappingDescription(cellDescription); tmp->init(); } else throw std::runtime_error((std::string("[Png Module] wrong charecter count in axis: ") + getValue(axis, i)).c_str()); } } } else { throw std::runtime_error("[Png Module] One parameter is missing"); } } }
void pluginLoad() { if (0 != notifyFrequencys.size()) { if (0 != slicePoints.size() && 0 != ports.size() && 0 != ips.size() && 0 != axis.size()) { for (int i = 0; i < (int) ports.size(); ++i) { uint32_t frequ = getValue(notifyFrequencys, i); if (frequ != 0) { if (getValue(axis, i).length() == 2u) { LiveViewClient liveViewClient(getValue(ips, i), getValue(ports, i)); DataSpace<DIM2 > transpose( charToAxisNumber(getValue(axis, i)[0]), charToAxisNumber(getValue(axis, i)[1]) ); VisType* tmp = new VisType(analyzerName, liveViewClient, frequ, transpose, getValue(slicePoints, i)); visIO.push_back(tmp); tmp->setMappingDescription(cellDescription); tmp->init(); } else throw std::runtime_error((std::string("[Live View] wrong charecter count in axis: ") + getValue(axis, i)).c_str()); } } } else { throw std::runtime_error("[Live View] One parameter is missing"); } } }