Changeset 45 in flair-src for trunk/lib/FlairCore
- Timestamp:
- Jul 18, 2016, 4:13:56 PM (8 years ago)
- Location:
- trunk/lib/FlairCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/CMakeLists.txt
r2 r45 19 19 20 20 FILE(GLOB FLAIRCORE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") 21 21 message(${CMAKE_C_COMPILER}) 22 22 INCLUDE_DIRECTORIES( 23 23 ${LIBXML2_INCLUDE_DIR} … … 36 36 37 37 add_custom_target( 38 svn_rev39 COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/ svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/svnversion.h38 compile_info 39 COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h 40 40 ) 41 41 42 add_dependencies(FlairCore_rt svn_rev)43 add_dependencies(FlairCore_nrt svn_rev)42 add_dependencies(FlairCore_rt compile_info) 43 add_dependencies(FlairCore_nrt compile_info) -
trunk/lib/FlairCore/src/FrameworkManager.cpp
r15 r45 20 20 #include "IODevice.h" 21 21 #include "config.h" 22 #include " svnversion.h"22 #include "compile_info.h" 23 23 24 24 using std::string; … … 27 27 28 28 namespace { 29 flair::core::FrameworkManager *frameworkmanager = NULL;29 flair::core::FrameworkManager *frameworkmanager = NULL; 30 30 } 31 32 static void constructor() __attribute__((constructor)); 33 34 void constructor() { 35 compile_info("FlairCore"); 36 } 37 31 38 32 39 namespace flair { … … 55 62 } 56 63 57 Printf(SVN_REV);58 64 frameworkmanager = this; 59 65 pimpl_ = new FrameworkManager_impl(this, name); -
trunk/lib/FlairCore/src/FrameworkManager_impl.cpp
r20 r45 106 106 // Avoids memory swapping for this program 107 107 mlockall(MCL_CURRENT | MCL_FUTURE); 108 struct sigaction sa;109 108 110 109 // catch segfault … … 114 113 #ifdef __XENO__ 115 114 #ifdef SIGDEBUG 115 struct sigaction sa; 116 116 sigemptyset(&sa.sa_mask); 117 117 sa.sa_sigaction = warn_upon_switch; -
trunk/lib/FlairCore/src/GpsData.cpp
r42 r45 56 56 57 57 GpsData::GpsData(const Object *parent, std::string name, int n) 58 : io_data(parent, name, n), dataType( floatType) {58 : io_data(parent, name, n), dataType() { 59 59 if (n > 1) 60 60 Warn("n>1 not supported\n"); 61 61 62 AppendLogDescription(" raw_ax", floatType);63 AppendLogDescription(" raw_ay", floatType);64 AppendLogDescription(" raw_az", floatType);62 AppendLogDescription("latitude", floatType); 63 AppendLogDescription("longitude", floatType); 64 AppendLogDescription("altitude", floatType); 65 65 66 AppendLogDescription("raw_gx", floatType);67 AppendLogDescription("raw_gy", floatType);68 AppendLogDescription("raw_gz", floatType);69 66 70 AppendLogDescription("raw_mx", floatType);71 AppendLogDescription("raw_my", floatType);72 AppendLogDescription("raw_mz", floatType);73 67 } 74 68 -
trunk/lib/FlairCore/src/GpsData.h
r42 r45 32 32 class Type : public DataType { 33 33 public: 34 Type(ScalarType const &_elementDataType) 35 : elementDataType(_elementDataType) {} 36 ScalarType const &GetElementDataType() const { return elementDataType; } 34 Type(void){} 37 35 std::string GetDescription() const { return "gps data"; } 38 36 size_t GetSize() const { … … 41 39 42 40 private: 43 ScalarType const &elementDataType;44 41 }; 45 42
Note:
See TracChangeset
for help on using the changeset viewer.