mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 03:11:15 +03:00
cpp_headers: Renamed C++ headers from .h -> .hpp
To make room for UPM C and C++ sensor code to coexist, all UPM C++ headers have been renamed from h -> hpp. This commit contains updates to documentation, includes, cmake collateral, examples, and swig interface files. * Renamed all cxx/cpp header files which contain the string 'copyright intel' from .h -> .hpp (if not already hpp). * Replaced all references to .h with .hpp in documentation, source files, cmake collateral, example code, and swig interface files. * Replaced cmake variable module_h with module_hpp. * Intentionally left upm.h since this file currently does not contain code (documentation only). Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
set (libname "gas")
|
||||
set (libdescription "Gas sensors")
|
||||
set (module_src ${libname}.cxx mq2.cxx mq3.cxx mq4.cxx mq5.cxx mq6.cxx mq7.cxx mq8.cxx mq9.cxx tp401.cxx)
|
||||
set (module_h ${libname}.h mq2.h mq3.h mq4.h mq5.h mq6.h mq7.h mq8.h mq9.h tp401.h)
|
||||
set (module_hpp ${libname}.hpp mq2.hpp mq3.hpp mq4.hpp mq5.hpp mq6.hpp mq7.hpp mq8.hpp mq9.hpp tp401.hpp)
|
||||
upm_module_init()
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <functional>
|
||||
#include <string.h>
|
||||
#include <stdexcept>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -3,16 +3,16 @@
|
||||
%include "typemaps.i"
|
||||
|
||||
%{
|
||||
#include "gas.h"
|
||||
#include "mq2.h"
|
||||
#include "mq3.h"
|
||||
#include "mq4.h"
|
||||
#include "mq5.h"
|
||||
#include "mq6.h"
|
||||
#include "mq7.h"
|
||||
#include "mq8.h"
|
||||
#include "mq9.h"
|
||||
#include "tp401.h"
|
||||
#include "gas.hpp"
|
||||
#include "mq2.hpp"
|
||||
#include "mq3.hpp"
|
||||
#include "mq4.hpp"
|
||||
#include "mq5.hpp"
|
||||
#include "mq6.hpp"
|
||||
#include "mq7.hpp"
|
||||
#include "mq8.hpp"
|
||||
#include "mq9.hpp"
|
||||
#include "tp401.hpp"
|
||||
%}
|
||||
|
||||
%typemap(jni) (uint16_t *buffer, int len) "jshortArray";
|
||||
@ -45,16 +45,16 @@
|
||||
JCALL3(ReleaseShortArrayElements, jenv, $input, (jshort *)$2, 0);
|
||||
}
|
||||
|
||||
%include "gas.h"
|
||||
%include "mq2.h"
|
||||
%include "mq3.h"
|
||||
%include "mq4.h"
|
||||
%include "mq5.h"
|
||||
%include "mq6.h"
|
||||
%include "mq7.h"
|
||||
%include "mq8.h"
|
||||
%include "mq9.h"
|
||||
%include "tp401.h"
|
||||
%include "gas.hpp"
|
||||
%include "mq2.hpp"
|
||||
%include "mq3.hpp"
|
||||
%include "mq4.hpp"
|
||||
%include "mq5.hpp"
|
||||
%include "mq6.hpp"
|
||||
%include "mq7.hpp"
|
||||
%include "mq8.hpp"
|
||||
%include "mq9.hpp"
|
||||
%include "tp401.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
|
@ -2,52 +2,52 @@
|
||||
%include "../upm.i"
|
||||
%include "../carrays_uint16_t.i"
|
||||
|
||||
%include "gas.h"
|
||||
%include "gas.hpp"
|
||||
%{
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
%}
|
||||
|
||||
%include "mq2.h"
|
||||
%include "mq2.hpp"
|
||||
%{
|
||||
#include "mq2.h"
|
||||
#include "mq2.hpp"
|
||||
%}
|
||||
|
||||
%include "mq3.h"
|
||||
%include "mq3.hpp"
|
||||
%{
|
||||
#include "mq3.h"
|
||||
#include "mq3.hpp"
|
||||
%}
|
||||
|
||||
%include "mq4.h"
|
||||
%include "mq4.hpp"
|
||||
%{
|
||||
#include "mq4.h"
|
||||
#include "mq4.hpp"
|
||||
%}
|
||||
|
||||
%include "mq5.h"
|
||||
%include "mq5.hpp"
|
||||
%{
|
||||
#include "mq5.h"
|
||||
#include "mq5.hpp"
|
||||
%}
|
||||
|
||||
%include "mq6.h"
|
||||
%include "mq6.hpp"
|
||||
%{
|
||||
#include "mq6.h"
|
||||
#include "mq6.hpp"
|
||||
%}
|
||||
|
||||
%include "mq7.h"
|
||||
%include "mq7.hpp"
|
||||
%{
|
||||
#include "mq7.h"
|
||||
#include "mq7.hpp"
|
||||
%}
|
||||
|
||||
%include "mq8.h"
|
||||
%include "mq8.hpp"
|
||||
%{
|
||||
#include "mq8.h"
|
||||
#include "mq8.hpp"
|
||||
%}
|
||||
|
||||
%include "mq9.h"
|
||||
%include "mq9.hpp"
|
||||
%{
|
||||
#include "mq9.h"
|
||||
#include "mq9.hpp"
|
||||
%}
|
||||
|
||||
%include "tp401.h"
|
||||
%include "tp401.hpp"
|
||||
%{
|
||||
#include "tp401.h"
|
||||
#include "tp401.hpp"
|
||||
%}
|
||||
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq2.h"
|
||||
#include "mq2.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq3.h"
|
||||
#include "mq3.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq4.h"
|
||||
#include "mq4.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq5.h"
|
||||
#include "mq5.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq6.h"
|
||||
#include "mq6.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq7.h"
|
||||
#include "mq7.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq8.h"
|
||||
#include "mq8.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mq9.h"
|
||||
#include "mq9.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
@ -6,52 +6,52 @@
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include "gas.h"
|
||||
%include "gas.hpp"
|
||||
%{
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
%}
|
||||
|
||||
%include "mq2.h"
|
||||
%include "mq2.hpp"
|
||||
%{
|
||||
#include "mq2.h"
|
||||
#include "mq2.hpp"
|
||||
%}
|
||||
|
||||
%include "mq3.h"
|
||||
%include "mq3.hpp"
|
||||
%{
|
||||
#include "mq3.h"
|
||||
#include "mq3.hpp"
|
||||
%}
|
||||
|
||||
%include "mq4.h"
|
||||
%include "mq4.hpp"
|
||||
%{
|
||||
#include "mq4.h"
|
||||
#include "mq4.hpp"
|
||||
%}
|
||||
|
||||
%include "mq5.h"
|
||||
%include "mq5.hpp"
|
||||
%{
|
||||
#include "mq5.h"
|
||||
#include "mq5.hpp"
|
||||
%}
|
||||
|
||||
%include "mq6.h"
|
||||
%include "mq6.hpp"
|
||||
%{
|
||||
#include "mq6.h"
|
||||
#include "mq6.hpp"
|
||||
%}
|
||||
|
||||
%include "mq7.h"
|
||||
%include "mq7.hpp"
|
||||
%{
|
||||
#include "mq7.h"
|
||||
#include "mq7.hpp"
|
||||
%}
|
||||
|
||||
%include "mq8.h"
|
||||
%include "mq8.hpp"
|
||||
%{
|
||||
#include "mq8.h"
|
||||
#include "mq8.hpp"
|
||||
%}
|
||||
|
||||
%include "mq9.h"
|
||||
%include "mq9.hpp"
|
||||
%{
|
||||
#include "mq9.h"
|
||||
#include "mq9.hpp"
|
||||
%}
|
||||
|
||||
%include "tp401.h"
|
||||
%include "tp401.hpp"
|
||||
%{
|
||||
#include "tp401.h"
|
||||
#include "tp401.hpp"
|
||||
%}
|
||||
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "tp401.h"
|
||||
#include "tp401.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "gas.h"
|
||||
#include "gas.hpp"
|
||||
|
||||
namespace upm {
|
||||
/**
|
Reference in New Issue
Block a user