/******************************************************************** ** Image Component Library (ICL) ** ** ** ** Copyright (C) 2006-2013 CITEC, University of Bielefeld ** ** Neuroinformatics Group ** ** Website: www.iclcv.org and ** ** http://opensource.cit-ec.de/projects/icl ** ** ** ** File : ICLUtils/apps/configurable-info/configurable-info.cpp ** ** Module : ICLUtils ** ** Authors: Christof Elbrechter ** ** ** ** ** ** GNU LESSER GENERAL PUBLIC LICENSE ** ** This file may be used under the terms of the GNU Lesser General ** ** Public License version 3.0 as published by the ** ** ** ** Free Software Foundation and appearing in the file LICENSE.LGPL ** ** included in the packaging of this file. Please review the ** ** following information to ensure the license requirements will ** ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt ** ** ** ** The development of this software was supported by the ** ** Excellence Cluster EXC 277 Cognitive Interaction Technology. ** ** The Excellence Cluster EXC 277 is a grant of the Deutsche ** ** Forschungsgemeinschaft (DFG) in the context of the German ** ** Excellence Initiative. ** ** ** ********************************************************************/ #include #include #include using namespace icl::markers; using namespace icl::utils; // include some static instances to ensure, that the linker // does not purge the linked libraries because no symbols of these // are used here static FiducialDetector fid; // includes lots of additional stuff such as ICLFilter, ICLCV and ICLMarkers int main(int n, char **ppc){ pa_init(n,ppc,"-list|-ls|-l " "-create-default-property-file|-o|-c(ConfigurableName,FileName) " "-show-properties|-s|-i(ConfigurableName)"); std::vector all = Configurable::get_registered_configurables(); if(pa("-l")){ std::cout << "--- Supported Configurables --- " << std::endl; for(unsigned int i=0;i(); std::string filename = pa("-o",1).as(); Configurable::create_configurable(name)->saveProperties(name); } if(pa("-i")){ std::string name = pa("-i").as(); Configurable *p = Configurable::create_configurable(name); std::cout << "--- Properties for Configurable " << name << " ---" << std::endl; std::vector props = p->getPropertyList(); for(unsigned int j=0;jgetPropertyType(pj) << std::endl; std::cout << " def. value : " << p->getPropertyValue(pj) << std::endl; std::cout << " info : " << p->getPropertyInfo(pj) << std::endl; std::cout << " volatileness: " << p->getPropertyVolatileness(pj) << std::endl; std::cout << " tooltip : "; std::vector lines = tok(p->getPropertyToolTip(pj), "\n"); for(unsigned int k=0;k