-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #35 renamed Interfaces folder to include and introduced a new type
for modalities
- Loading branch information
Showing
27 changed files
with
388 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
source/w3cipa/Interfaces/w3c/voiceinteraction/ipa/MultiModalInput.h
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
source/w3cipa/Interfaces/w3c/voiceinteraction/ipa/MultiModalInputs.h
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
source/w3cipa/Interfaces/w3c/voiceinteraction/ipa/MultiModalOutput.h
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
source/w3cipa/Interfaces/w3c/voiceinteraction/ipa/MultiModalOutputs.h
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
88 changes: 88 additions & 0 deletions
88
source/w3cipa/include/w3c/voiceinteraction/ipa/ModalityType.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
|
||
#if !defined(MODAILTYTYPE_H) | ||
#define MODAILTYTYPE_H | ||
|
||
#include <string> | ||
|
||
namespace w3c { | ||
namespace voiceinteraction { | ||
namespace ipa { | ||
|
||
/** | ||
* The SessionId interface is used to identify a session. | ||
*/ | ||
class ModalityType { | ||
public: | ||
/** | ||
* Contructs a new ModalityType. | ||
* @param modalityType A human readable string identifying the modality | ||
* type. | ||
*/ | ||
ModalityType(const std::string& modalityType) | ||
: modalityType(modalityType) { | ||
} | ||
|
||
/** | ||
* Copy constructor. | ||
* @param other the other modality to copy from. | ||
*/ | ||
ModalityType(const ModalityType& other) | ||
: modalityType(other.getModalityType()) { | ||
} | ||
|
||
/** | ||
* Destroys the object. | ||
*/ | ||
virtual ~ModalityType() { | ||
} | ||
|
||
/** | ||
* Returns the modality type. | ||
* @return The modality type. | ||
*/ | ||
const std::string& getModalityType() const { | ||
return modalityType; | ||
} | ||
|
||
/** | ||
* @brief operator < | ||
* Comparison to allow for usage in {@code std::map}s. | ||
* @param other the other modality | ||
* @return {@code true} in case the | ||
* {@code getModalityType() < other.getModalityType()}. | ||
*/ | ||
bool operator<(const ModalityType& other) const | ||
{ | ||
return modalityType < other.getModalityType(); | ||
} | ||
|
||
/** | ||
* @brief operator = | ||
* @param other the other modality | ||
*/ | ||
void operator=(const ModalityType& other) { | ||
modalityType = other.getModalityType(); | ||
} | ||
|
||
/** | ||
* @brief operator == | ||
* @param other the other modality | ||
* @return {@code true} in case the | ||
* {@code getModalityType() == other.getModalityType()}. | ||
*/ | ||
bool operator==(const ModalityType& other) const { | ||
return modalityType == other.getModalityType(); | ||
} | ||
|
||
private: | ||
/** A human readable string identifying the modality type. */ | ||
std::string modalityType; | ||
|
||
}; | ||
|
||
|
||
} // namespace ipa | ||
} // namespace voiceinteraction | ||
} // namespace w3c | ||
|
||
#endif // !defined(MODAILTYTYPE_H) |
Oops, something went wrong.