-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into international-society-biomechanics
- Loading branch information
Showing
9 changed files
with
769 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ dependencies: | |
## Customize test commands | ||
test: | ||
override: | ||
- make test | ||
- ctest -VV |
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
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,8 @@ | ||
SET(OPENMA_IO_BSFPLUGIN_SRCS | ||
plugins/trialformats/bsf/bsfhandler.cpp | ||
plugins/trialformats/bsf/bsfplugin.cpp | ||
) | ||
|
||
SET(OPENMA_IO_PLUGIN_NAME "BSFPlugin" CACHE INTERNAL "") | ||
SET(OPENMA_IO_PLUGIN_SRCS ${OPENMA_IO_BSFPLUGIN_SRCS} CACHE INTERNAL "") | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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,67 @@ | ||
/* | ||
* Open Source Movement Analysis Library | ||
* Copyright (C) 2016, Moveck Solution Inc., all rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* * Redistributions of source code must retain the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer. | ||
* * Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials | ||
* provided with the distribution. | ||
* * Neither the name(s) of the copyright holders nor the names | ||
* of its contributors may be used to endorse or promote products | ||
* derived from this software without specific prior written | ||
* permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef __openma_io_bsfandler_h | ||
#define __openma_io_bsfandler_h | ||
|
||
#include "openma/io/handler.h" | ||
#include "openma/base/macros.h" // _OPENMA_CONSTEXPR, _OPENMA_NOEXCEPT | ||
|
||
namespace ma | ||
{ | ||
namespace io | ||
{ | ||
class BSFHandlerPrivate; | ||
|
||
class BSFHandler : public Handler | ||
{ | ||
public: | ||
BSFHandler(); | ||
~BSFHandler() _OPENMA_NOEXCEPT; | ||
|
||
BSFHandler(const BSFHandler& ) = delete; | ||
BSFHandler(BSFHandler&& ) _OPENMA_NOEXCEPT = delete; | ||
BSFHandler& operator=(const BSFHandler& ) = delete; | ||
BSFHandler& operator=(const BSFHandler&& ) _OPENMA_NOEXCEPT = delete; | ||
|
||
static Signature verifySignature(const Device* const device) _OPENMA_NOEXCEPT; | ||
|
||
protected: | ||
virtual Signature verifySignature() const _OPENMA_NOEXCEPT final; | ||
virtual void readDevice(ma::Node* output) final; | ||
}; | ||
}; | ||
}; | ||
|
||
#endif // __openma_io_bsfandler_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,80 @@ | ||
/* | ||
* Open Source Movement Analysis Library | ||
* Copyright (C) 2016, Moveck Solution Inc., all rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* * Redistributions of source code must retain the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer. | ||
* * Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials | ||
* provided with the distribution. | ||
* * Neither the name(s) of the copyright holders nor the names | ||
* of its contributors may be used to endorse or promote products | ||
* derived from this software without specific prior written | ||
* permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#include "bsfplugin.h" | ||
#include "openma/io/enums.h" | ||
|
||
#define _OPENMA_IO_HANDLER_AMTI_BSF_FORMAT "amti.bsf" | ||
|
||
namespace ma | ||
{ | ||
namespace io | ||
{ | ||
std::string BSFPlugin::name() const _OPENMA_NOEXCEPT | ||
{ | ||
return "BSFPlugin"; | ||
} | ||
|
||
std::vector<std::string> BSFPlugin::supportedFormats() const _OPENMA_NOEXCEPT | ||
{ | ||
return {_OPENMA_IO_HANDLER_AMTI_BSF_FORMAT}; | ||
}; | ||
|
||
Capability BSFPlugin::capabilities(const std::string& format) const _OPENMA_NOEXCEPT | ||
{ | ||
if (format.compare(_OPENMA_IO_HANDLER_AMTI_BSF_FORMAT) != 0) | ||
return Capability::None; | ||
return Capability::CanRead; | ||
}; | ||
|
||
Signature BSFPlugin::detectSignature(const Device* const device, std::string* format) const _OPENMA_NOEXCEPT | ||
{ | ||
Signature detected = Signature::Invalid; | ||
if ((detected = BSFHandler::verifySignature(device)) == Signature::Valid) | ||
{ | ||
if (format != nullptr) | ||
*format = _OPENMA_IO_HANDLER_AMTI_BSF_FORMAT; | ||
} | ||
return detected; | ||
}; | ||
|
||
Handler* BSFPlugin::create(Device* device, const std::string& format) | ||
{ | ||
OPENMA_UNUSED(format) | ||
Handler* handler = new BSFHandler; | ||
handler->setDevice(device); | ||
return handler; | ||
}; | ||
}; | ||
}; |
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,62 @@ | ||
/* | ||
* Open Source Movement Analysis Library | ||
* Copyright (C) 2016, Moveck Solution Inc., all rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* * Redistributions of source code must retain the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer. | ||
* * Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials | ||
* provided with the distribution. | ||
* * Neither the name(s) of the copyright holders nor the names | ||
* of its contributors may be used to endorse or promote products | ||
* derived from this software without specific prior written | ||
* permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef __openma_io_bsfplugin_h | ||
#define __openma_io_bsfplugin_h | ||
|
||
#include "bsfhandler.h" | ||
#include "openma/io/handlerplugin.h" | ||
|
||
namespace ma | ||
{ | ||
namespace io | ||
{ | ||
class BSFPlugin : public HandlerPlugin | ||
{ | ||
public: | ||
BSFPlugin() : HandlerPlugin() {}; | ||
|
||
virtual std::string name() const _OPENMA_NOEXCEPT final; | ||
|
||
virtual std::vector<std::string> supportedFormats() const _OPENMA_NOEXCEPT final; | ||
|
||
virtual Capability capabilities(const std::string& format) const _OPENMA_NOEXCEPT final; | ||
virtual Signature detectSignature(const Device* const device, std::string* format = nullptr) const _OPENMA_NOEXCEPT final; | ||
|
||
virtual Handler* create(Device* device, const std::string& format) final; | ||
}; | ||
}; | ||
}; | ||
|
||
#endif // __openma_io_bsfplugin_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
Oops, something went wrong.