From: bruceperens Date: Fri, 17 Jan 2014 20:03:07 +0000 (+0000) Subject: Fill in documentation for Doxygen. X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=f67fc48994607e9be6c9681559a70d5c4952d072;p=freetel-svn-tracking.git Fill in documentation for Doxygen. git-svn-id: https://svn.code.sf.net/p/freetel/code@1370 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/freedv-server/source/drivers.h b/freedv-server/source/drivers.h index 9ac02e28..b474d9f6 100644 --- a/freedv-server/source/drivers.h +++ b/freedv-server/source/drivers.h @@ -13,6 +13,7 @@ namespace FreeDV { /// or a memory leak will occurr. char * copy_string(const char * s); + /// Virtual base class for all driver classes. class Base { private: /// The copy constructor is private to prevent it from being used. @@ -66,6 +67,7 @@ namespace FreeDV { /// for debugging and dumping the configuration information. /// \param stream A reference to an instance of ostream upon which the /// object information is to be rendered. + /// \param base A reference to the Base class providing the information. /// \return A reference to the provided stream, meant for the /// usual successive call paradigm of ostream operator << . inline std::ostream & @@ -77,6 +79,8 @@ namespace FreeDV { class AudioInput : public ::FreeDV::Base { protected: /// Create an AudioInput device instance. + /// \param name The name of the child driver. This is expected to be a + /// static string. /// \param parameters Driver-specific configuration parameters. AudioInput(const char * name, const char * parameters); @@ -103,6 +107,8 @@ namespace FreeDV { class AudioOutput : public ::FreeDV::Base { protected: /// Create an AudioOutput device instance. + /// \param name The name of the child driver. This is expected to be a + /// static string. /// \param parameters Driver-specific configuration parameters. AudioOutput(const char * name, const char * parameters); @@ -202,6 +208,9 @@ namespace FreeDV { const unsigned int Write = 2; /// Create an event handler instance. + /// \param name Name of the driver. This is expected to be a single + /// constant static string per driver class. + /// \param parameters Driver-specific configuration parameters. EventHandler(const char * name, const char * parameters) : Base(name, parameters), do_exit(false) { @@ -356,7 +365,7 @@ namespace FreeDV { /// \param name Name of the driver. This is expected to be a single /// constant static string per driver class. /// \param parameters Driver-specific configuration parameters. - /// \param interfaces An Interface object. The UserInterface object + /// \param _interfaces An Interface object. The UserInterface object /// may set various fields of Interface to be its own captive driver /// objects, and they may change during operation if the user changes /// device driver parameters. @@ -413,12 +422,14 @@ namespace FreeDV { /// \return A reference to the provided stream, meant for the /// usual successive call paradigm of ostream operator << . virtual std::ostream & - print(std::ostream &) const; + print(std::ostream & stream) const; }; /// Write the driver information from the Interfaces object onto a stream, /// for debugging and dumping the configuration information. /// \param stream A reference to an instance of ostream upon which the /// object information is to be rendered. + /// \param interfaces a reference to an Interfaces object providing the + /// information. /// \return A reference to the provided stream, meant for the /// usual successive call paradigm of ostream operator << . inline std::ostream & @@ -540,6 +551,7 @@ namespace FreeDV { /// for debugging and dumping the configuration information. /// \param stream A reference to an instance of ostream upon which the /// object information is to be rendered. + /// \param d A reference to the DriverManager class providing the information. /// \return A reference to the provided stream, meant for the /// usual successive call paradigm of ostream operator << . inline std::ostream &