Fixed documentation warnings for cpp-docs
authorGeorge Nash <george.nash@intel.com>
Tue, 28 Feb 2017 18:28:35 +0000 (10:28 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Sat, 4 Mar 2017 21:44:37 +0000 (21:44 +0000)
Fixed all of the documentation warnings found when running
Doxygen for C++ documentation.

Most of the warnings were due to @param tag not matching
the actual param.

For the copydoc warning foun in OCPlatform the @copydoc
tag was removed because it was not properly copying the
documentation. No clear fix other than actually copying
the documentation.

Change-Id: Ic861ff7dbeb9c7f17d7f39dace05da92f3bb43d1
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17569
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/docs/cpp-doc/Doxyfile
resource/include/OCPlatform.h
resource/include/OCResourceResponse.h
service/easy-setup/mediator/richsdk/inc/ESException.h
service/easy-setup/mediator/richsdk/inc/ESRichCommon.h
service/notification/cpp-wrapper/common/NSTopicsList.h
service/notification/cpp-wrapper/consumer/inc/NSAcceptedProviders.h
service/notification/cpp-wrapper/consumer/inc/NSConsumerService.h
service/notification/cpp-wrapper/provider/inc/NSAcceptedConsumers.h
service/notification/cpp-wrapper/provider/inc/NSProviderService.h

index bdffc03..997bea6 100644 (file)
@@ -677,6 +677,7 @@ INPUT                  = . \
                          ../../../service/easy-setup/mediator/richsdk/inc/ \
                          ../../../service/easy-setup/inc \
                          ../../../service/scene-manager/include \
+                         ../../../service/notification/include \
                          ../../../service/notification/cpp-wrapper/provider/inc \
                          ../../../service/notification/cpp-wrapper/consumer/inc \
                          ../../../service/notification/cpp-wrapper/common/NSMediaContents.h \
index 1f57b58..e51d5df 100644 (file)
@@ -595,13 +595,16 @@ namespace OC
          *               events
          *
          * @return Returns ::OC_STACK_OK if success.
-         * @copydoc subscribePresence(OCPresenceHandle&, const std::string&, resourceType, OCConnectivityType, SubscribeCallback)
          */
         OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
                         OCConnectivityType connectivityType, SubscribeCallback presenceHandler);
         /**
          * @overload
          *
+         * subscribes to a server's presence change events.  By making this subscription,
+         * every time a server adds/removes/alters a resource, starts or is intentionally
+         * stopped (potentially more to be added later).
+         *
          * @param presenceHandle a handle object that can be used to identify this subscription
          *               request.  It can be used to unsubscribe from these events in the future.
          *               It will be set upon successful return of this method.
@@ -612,6 +615,7 @@ namespace OC
          *                           interface. Example: CT_DEFAULT, CT_ADAPTER_IP, CT_ADAPTER_TCP.
          * @param presenceHandler callback function that will receive notifications/subscription
          *               events
+         *
          * @see subscribePresence(OCPresenceHandle&, const std::string&, OCConnectivityType, SubscribeCallback)
          */
         OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
index 4993340..023ad82 100644 (file)
@@ -143,7 +143,7 @@ namespace OC
         /**
         *  API to set the entire resource attribute representation
         *  @param rep reference to the resource's representation
-        *  @param interface specifies the interface
+        *  @param iface specifies the interface
         */
         void setResourceRepresentation(OCRepresentation& rep, std::string iface) {
             m_interface = iface;
@@ -153,7 +153,7 @@ namespace OC
         /**
         *  API to set the entire resource attribute representation
         *  @param rep rvalue reference to the resource's representation
-        *  @param interface specifies the interface
+        *  @param iface specifies the interface
         */
         void setResourceRepresentation(OCRepresentation&& rep, std::string iface) {
             setResourceRepresentation(rep, iface);
index d5096bf..fbd9ff7 100644 (file)
@@ -85,7 +85,7 @@ namespace OIC
             /**
              * Constructs an exception with a description.
              *
-             * @param OCStackResult The description for the error.
+             * @param reason OCStackResult The description for the error.
              */
             explicit ESPlatformException(OCStackResult reason);
 
@@ -115,7 +115,7 @@ namespace OIC
             /**
              * Constructs an exception with a description.
              *
-             * @param OCStackResult The description for the error.
+             * @param what OCStackResult The description for the error.
              */
             explicit ESBadRequestException(const std::string& what);
             /**
@@ -134,7 +134,7 @@ namespace OIC
             /**
              * Constructs an exception with a description.
              *
-             * @param OCStackResult The description for the error.
+             * @param what OCStackResult The description for the error.
              */
             explicit ESInvalidParameterException(const std::string& what);
          /**
@@ -152,7 +152,7 @@ namespace OIC
             /**
              * Constructs an exception with a description.
              *
-             * @param OCStackResult The description for the error.
+             * @param what OCStackResult The description for the error.
              */
             explicit ESBadGetException(const std::string& what);
            /**
@@ -171,7 +171,7 @@ namespace OIC
             /**
              * Constructs an exception with a description.
              *
-             * @param OCStackResult The description for the error.
+             * @param what OCStackResult The description for the error.
              */
             explicit ESInvalidKeyException(const std::string& what);
              /**
index 6fe0416..c0c1172 100755 (executable)
@@ -148,6 +148,7 @@ namespace OIC
 
             /**
              * Constructor with OCRepresentation object. This is used for JNI communication.
+             * @param rep OCRepresentation object
              */
             CloudProp(const OCRepresentation &rep)
             {
@@ -344,6 +345,7 @@ namespace OIC
 
             /**
              * Constructor with OCRepresentation object. This is used for JNI communication.
+             * @param rep OCRepresentation object
              */
             DeviceProp(const OCRepresentation &rep)
             {
@@ -374,6 +376,7 @@ namespace OIC
              *
              * @param language IETF language tag using ISO 639X
              * @param country ISO Country Code (ISO 3166-1 Alpha-2)
+             * @param location location information
              */
             void setDevConfProp(string language, string country, string location)
             {
@@ -598,7 +601,7 @@ namespace OIC
         };
 
         /**
-         * @breif This provide a set of getter APIs from received response for getConfiguration().
+         * @brief This provide a set of getter APIs from received response for getConfiguration().
          *        Received information includes a device name, WiFi supported mode, and frequency.
          *        Additionally, you can know if Enrollee can be access to cloud server with this
          *        object.
index 288882c..42634fd 100755 (executable)
@@ -51,7 +51,8 @@ namespace OIC
                 /**
                      * Constructor of NSTopicsList.
                      *
-                     * @param topics - pointer to NSTopicLL struct to initialize.
+                     * @param topics  pointer to NSTopicLL struct to initialize.
+                     * @param modify  indicate if the list is modifiable
                      */
                 NSTopicsList(::NSTopicLL *topics, bool modify);
 
index 7711afd..3922661 100755 (executable)
@@ -71,8 +71,8 @@ namespace OIC
                 std::shared_ptr<NSProvider> getProvider(const std::string &id);
 
                 /**
-                      *  request to add NSProvider pointer
-                      * @param shared pointer to NSProvider
+                      * Request to add NSProvider pointer
+                      * @param provider shared pointer to NSProvider
                       *
                       */
                 void addProvider(std::shared_ptr<NSProvider> provider);
index 0c020f0..83f7dc4 100755 (executable)
@@ -80,7 +80,7 @@ namespace OIC
 \r
                 /**\r
                       * Request to subscribe to remote MQ address as parameter.\r
-                      * @param[in] server address combined with IP address and port number and MQ broker uri using delimiter :\r
+                      * @param[in] serverAddress server address combined with IP address and port number and MQ broker uri using delimiter :\r
                       * @param[in] topicName the interest Topic name for subscription.\r
                       * @return ::NS_OK or result code of NSResult\r
                       */\r
index 6341f45..a57654f 100755 (executable)
@@ -69,8 +69,9 @@ namespace OIC
                 std::shared_ptr<NSConsumer> getConsumer(const std::string &id);
 
                 /**
-                      *  request to add NSConsumer pointer
-                      * @param pointer to NSConsumer
+                      * Request to add NSConsumer pointer
+                      *
+                      * @param consumer pointer to NSConsumer
                       *
                       */
                 void addConsumer(std::shared_ptr<NSConsumer> consumer);
index 575ea93..91ba4ae 100755 (executable)
@@ -119,7 +119,7 @@ namespace OIC
 \r
                 /**\r
                       * Request to subscribe to remote MQ address as parameter.\r
-                      * @param[in] server address combined with IP address and port number and MQ broker uri using delimiter :\r
+                      * @param[in] serverAddress server address combined with IP address and port number and MQ broker uri using delimiter :\r
                       * @param[in] topicName the interest Topic name for subscription.\r
                       * @return ::NS_OK or result code of NSResult\r
                       */\r