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:
Noel Eck
2016-04-25 14:27:51 -07:00
parent b3a8fd7172
commit 922e0cc26b
1177 changed files with 1697 additions and 1699 deletions

View File

@ -1,5 +1,5 @@
set (libname "my9221")
set (libdescription "upm my9221")
set (module_src ${libname}.cxx groveledbar.cxx grovecircularled.cxx)
set (module_h ${libname}.h groveledbar.h grovecircularled.h)
set (module_hpp ${libname}.hpp groveledbar.hpp grovecircularled.hpp)
upm_module_init()

View File

@ -39,7 +39,7 @@
#include <unistd.h>
#include <stdlib.h>
#include "grovecircularled.h"
#include "grovecircularled.hpp"
using namespace upm;
using namespace std;

View File

@ -37,7 +37,7 @@
#include <string>
#include <mraa/common.hpp>
#include <mraa/gpio.hpp>
#include "my9221.h"
#include "my9221.hpp"
namespace upm {

View File

@ -39,7 +39,7 @@
#include <unistd.h>
#include <stdlib.h>
#include "groveledbar.h"
#include "groveledbar.hpp"
using namespace upm;
using namespace std;

View File

@ -38,7 +38,7 @@
#include <mraa/common.hpp>
#include <mraa/gpio.hpp>
#include "my9221.h"
#include "my9221.hpp"
namespace upm {

View File

@ -1,19 +1,19 @@
%module javaupm_my9221
%include "../upm.i"
%include "my9221.h"
%include "my9221.hpp"
%{
#include "my9221.h"
#include "my9221.hpp"
%}
%include "groveledbar.h"
%include "groveledbar.hpp"
%{
#include "groveledbar.h"
#include "groveledbar.hpp"
%}
%include "grovecircularled.h"
%include "grovecircularled.hpp"
%{
#include "grovecircularled.h"
#include "grovecircularled.hpp"
%}
%pragma(java) jniclasscode=%{

View File

@ -1,18 +1,18 @@
%module jsupm_my9221
%include "../upm.i"
%include "my9221.h"
%include "my9221.hpp"
%{
#include "my9221.h"
#include "my9221.hpp"
%}
%include "groveledbar.h"
%include "groveledbar.hpp"
%{
#include "groveledbar.h"
#include "groveledbar.hpp"
%}
%include "grovecircularled.h"
%include "grovecircularled.hpp"
%{
#include "grovecircularled.h"
#include "grovecircularled.hpp"
%}

View File

@ -39,7 +39,7 @@
#include <unistd.h>
#include <stdlib.h>
#include "my9221.h"
#include "my9221.hpp"
using namespace upm;
using namespace std;

View File

@ -5,17 +5,17 @@
%feature("autodoc", "3");
%include "my9221.h"
%include "my9221.hpp"
%{
#include "my9221.h"
#include "my9221.hpp"
%}
%include "groveledbar.h"
%include "groveledbar.hpp"
%{
#include "groveledbar.h"
#include "groveledbar.hpp"
%}
%include "grovecircularled.h"
%include "grovecircularled.hpp"
%{
#include "grovecircularled.h"
#include "grovecircularled.hpp"
%}