- Timestamp:
- Nov 8, 2013, 12:20:22 PM (11 years ago)
- Location:
- trunk/src/_NewComponent
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/_NewComponent/CMakeLists.txt
r147 r216 37 37 38 38 # configure files 39 configure_file(CMakeLists.txt.in "${OUTPUT_DIR}/CMakeLists.txt" @ONLY) 40 configure_file(NewComponent.cpp.in "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}.cpp" @ONLY) 41 configure_file(NewComponent.h.in "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}.h" @ONLY) 39 configure_file("CMakeLists.txt.in" "${OUTPUT_DIR}/CMakeLists.txt" @ONLY) 40 configure_file("NewComponent.h.in" "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}.h" @ONLY) 41 configure_file("NewComponent.cpp.in" "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}.cpp" @ONLY) 42 configure_file("NewComponentImpl.h.in" "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}Impl.h" @ONLY) 43 configure_file("NewComponentImpl.cpp.in" "${OUTPUT_DIR}/${PACPUS_COMPONENT_NAME}Impl.cpp" @ONLY) 42 44 43 45 ################################################################################ -
trunk/src/_NewComponent/CMakeLists.txt.in
r194 r216 27 27 ${EXPORT_HDR} 28 28 @PACPUS_COMPONENT_NAME@.h 29 @PACPUS_COMPONENT_NAME@Impl.h 29 30 ) 30 31 … … 32 33 ${PLUGIN_CPP} 33 34 @PACPUS_COMPONENT_NAME@.cpp 35 @PACPUS_COMPONENT_NAME@Impl.cpp 34 36 ) 35 37 … … 37 39 ${PLUGIN_HDR} 38 40 @PACPUS_COMPONENT_NAME@.h 41 @PACPUS_COMPONENT_NAME@Impl.h 39 42 ) 40 43 … … 77 80 # INSTALL 78 81 pacpus_install(${PROJECT_NAME}) 82 -
trunk/src/_NewComponent/NewComponent.cpp.in
r194 r216 5 5 6 6 #include "@PACPUS_COMPONENT_NAME@.h" 7 #include "@PACPUS_COMPONENT_NAME@Impl.h" 7 8 8 9 #include <Pacpus/kernel/ComponentFactory.h> … … 12 13 using namespace std; 13 14 14 DECLARE_STATIC_LOGGER("pacpus. base.@PACPUS_COMPONENT_NAME@");15 DECLARE_STATIC_LOGGER("pacpus.@PACPUS_COMPONENT_NAME@"); 15 16 16 17 /// Constructs a static component factory 17 18 static ComponentFactory<@PACPUS_COMPONENT_NAME@> sFactory("@PACPUS_COMPONENT_NAME@"); 18 19 static const int kDefaultVerboseLevel = 1;20 19 21 20 ////////////////////////////////////////////////////////////////////////// … … 25 24 LOG_TRACE("constructor(" << name << ")"); 26 25 27 namespace po = boost::program_options;28 26 //addParameters() 29 //("parameter-name", po::value<ParameterType>(&mParameterVariable)->required(), "parameter description")30 //("parameter-name", po::value<ParameterType>(&mParameterVariable)->default_value(0), "parameter description")27 //("parameter-name", value<ParameterType>(&mImpl->mParameterVariable)->required(), "parameter description") 28 //("parameter-name", value<ParameterType>(&mImpl->mParameterVariable)->default_value(0), "parameter description") 31 29 //; 32 30 } … … 53 51 void @PACPUS_COMPONENT_NAME@::startActivity() 54 52 { 53 mImpl->start(); 55 54 } 56 55 57 56 void @PACPUS_COMPONENT_NAME@::stopActivity() 58 57 { 58 mImpl->stop(); 59 59 } 60 60 … … 64 64 return ComponentBase::CONFIGURED_OK; 65 65 } 66 67 ////////////////////////////////////////////////////////////////////////// 68 //void @PACPUS_COMPONENT_NAME@::processInput(InputType const& input) 69 //{ 70 // mImpl->processInput(input); 71 //} -
trunk/src/_NewComponent/NewComponent.h.in
r194 r216 20 20 #include <Pacpus/kernel/ComponentBase.h> 21 21 22 #include <boost/scoped_ptr.hpp> 22 23 #include <QObject> 23 24 24 namespace pacpus { 25 namespace pacpus 26 { 25 27 26 28 class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@ … … 49 51 50 52 private: 51 //void processInput( const InputType& input);53 //void processInput(InputType const& input); 52 54 53 55 private: 56 struct Impl; 57 boost::scoped_ptr<Impl> mImpl; 54 58 }; 55 59 … … 57 61 58 62 #endif // @PACPUS_COMPONENT_NAME_CAPS@_H 59
Note:
See TracChangeset
for help on using the changeset viewer.