From: Daniel P. <dp...@gm...> - 2013-05-17 17:12:12
|
Hi, That sounds like a great idea. You could make an interface called OptionsItf and put it in itf/options-itf.h. It would be necessary to use a sed command to replace ParseOptions with OptionsItf throughout most of the code. Send me a patch that I can check, and your Sourceforge id, and I'll give you commit rights. I'll add you to the list. Dan On Fri, May 17, 2013 at 3:39 AM, Tanel Alumäe <tan...@ph...>wrote: > Hello, > > I'm trying to write a Gstreamer plugin that wraps OnlineFasterDecoder. > The plugin would allow to use OnlineFasterDecoder easily in all > programming languages that have Gstreamer bingings (Python, Ruby, Java > etc). > > The plugin is basically working but I was thinking how to make the > decoding and feature extraction options available as plugin properties, > so that they could be configures programmatically, instead of via the > command line. For this, I need access to a list of options (name, type, > help message) that have been "registered" in the code, and get/set > access to the option values. > > My proposal is to introduce a new interface "Options" with only one > method: > > template<typename T> > void Register(const std::string &name, > T *ptr, const std::string &doc); > > > Current ParseOptions would be one implementation, but I would add > another implementation that lets to set/get options via code. > > Also, please add me to the mailing list. > > Regards, > Tanel Alumäe > Tallinn University of Technology > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > |