X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Finputoutput.cpp;fp=pv%2Fbinding%2Finputoutput.cpp;h=42ebf06263539bc582f16a7b1d27e2fbcf128bec;hp=0000000000000000000000000000000000000000;hb=0c9136370d062b08e47657e12f77518197d89339;hpb=998b89fd858e0dfc09c97cc4e3de718643f0017b diff --git a/pv/binding/inputoutput.cpp b/pv/binding/inputoutput.cpp new file mode 100644 index 0000000..42ebf06 --- /dev/null +++ b/pv/binding/inputoutput.cpp @@ -0,0 +1,114 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2015 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include +#include +#include + +#include + +#include + +#include +#include +#include +#include + +#include "inputoutput.hpp" + +using boost::none; + +using std::make_pair; +using std::map; +using std::pair; +using std::shared_ptr; +using std::string; +using std::vector; + +using Glib::VariantBase; +using Glib::VariantType; + +using sigrok::Option; + +using pv::prop::Double; +using pv::prop::Enum; +using pv::prop::Int; +using pv::prop::Property; +using pv::prop::String; + +namespace pv { +namespace binding { + +InputOutput::InputOutput( + const map> &options) +{ + for (pair> o : options) + { + const shared_ptr