Skip to content

Commit

Permalink
some more work on doxygen generation for the framework
Browse files Browse the repository at this point in the history
  • Loading branch information
schnelle committed May 3, 2024
1 parent 81551e2 commit ca2be0c
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 10 deletions.
3 changes: 3 additions & 0 deletions source/docs/Doxyfile.in → source/docs/framework-doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
# [1] https://www.w3.org/Consortium/Legal/copyright-software
#

PROJECT_NAME = "W3C IPA Framework"
OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@/doc_doxygen/
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/src/ @CMAKE_CURRENT_SOURCE_DIR@/include/
RECURSIVE = YES
FILE_PATTERNS = *.cpp *.h
2 changes: 1 addition & 1 deletion source/w3cipa/w3cipaframework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if (CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")
find_package(Doxygen)
if (DOXYGEN_FOUND)
# set input and output files
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/../../docs/Doxyfile.in)
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/../../docs/framework-doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

# request to configure the file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class ClientRequest : public IPAData {
public:
/**
* Constructs a new object.
* @param sessionIdentifier the session identifier
* @param requestIdentifier the request identifier
* @param multiModalInputs The multimodal inputs to be sent to the client.
* @param audioDataToSend audio data to send
* @param metaDataToSend meta data to send
*/
ClientRequest(const std::shared_ptr<SessionId>& sessionIdentifier,
const std::shared_ptr<RequestId>& requestIdentifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ class ClientResponse : public IPAData {
public:
/**
* Constructs a new object.
* @param multiModalOutputs The multimodal outputs to be returned to the client.
* @param sessionIdentifier the session identifier
* @param requestIdentifier the request identifier
* @param multiModalOutputs The multimodal outputs to be returned to the
* client.
* @param audioDataToSend audio data to send
* @param metaDataToSend meta data to send
*/
ClientResponse(const std::shared_ptr<SessionId>& sessionIdentifier,
const std::shared_ptr<RequestId>& requestIdentifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CombinedId {

/**
* Creates a new object as a copy of the provided object.
* @param other the object to copy from
* @param id the object to copy from
*/
CombinedId(const CombinedId& id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ class IPADataProcessor {
void addIPADataProcessorListener(
const std::shared_ptr<IPADataProcessor>& listener);

/**
* Shortcut for {@link addIPADataProcessorListener(const std::shared_ptr<IPADataProcessor>& listener)}.
* @param other the listener to add
*/
void operator >>(const std::shared_ptr<IPADataProcessor>& other);
protected:
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace voiceinteraction {
namespace ipa {

/**
* Interfacce for meta data of {@llink w3c::voiceinteraction::ClientRequest}.
* Interfacce for meta data of {@link w3c::voiceinteraction::ClientRequest}.
* @author Dirk Schnelle-Walka
*/
class MetaData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ namespace ipa {
class TextModalityType : public ModalityType
{
public:
/**
* Constructs a new object.
*/
TextModalityType();

/**
* Copy constructor.
* @param other the object to copy from
*/
TextModalityType(const TextModalityType& other);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ namespace ipa {
class VoiceModalityType : public ModalityType
{
public:
/**
* Constructs a new object.
*/
VoiceModalityType();

/**
* Copy constructor.
* @param other the object to copy from
*/
VoiceModalityType(const VoiceModalityType& other);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace client {
* A component to hand mutlimodal inputs.
*
* Input modality components are also asked to inherit from
* {@link ModalityComponent} and support {@link IOType::INPUT}.
* {@link ModalityComponent} and support {@link IOType#INPUT}.
* @author Dirk Schnelle-Walka
*/
class InputModalityComponent {
Expand All @@ -44,7 +44,7 @@ class InputModalityComponent {
/**
* Starts listening asynchronously for inputs and notify the provided
* medaitor if any input is received from this component.
* @param the mediator to handle input notifications.
* @param mediator the mediator to handle input notifications.
*/
virtual void startInput(
const std::shared_ptr<InputNotificationMediator>& mediator) = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ namespace voiceinteraction {
namespace ipa {
namespace client {

class InputNotificationMediator
{
/**
* A mediator knowing all listeners for MultiModalInput to arrive.
*
* @author Dirk Schnelle-Walka
*/
class InputNotificationMediator {
public:
/**
* Constructs a new object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class ProviderSelectionService : public IPADataProcessor {

/**
* Processes the input and forwards it to the relevant IPA providers.
* @param request incoming request.
* @param data incoming data.
* @return list of responses from the IPA providers
*/
void processIPAData(std::shared_ptr<IPAData> data);
void processIPAData(std::shared_ptr<IPAData> data) override;

protected:
/** The provider registry. */
Expand Down

0 comments on commit ca2be0c

Please sign in to comment.