Changeset 31 in pacpusframework for trunk/include/Pacpus/kernel
- Timestamp:
- Jan 8, 2013, 6:10:10 PM (12 years ago)
- Location:
- trunk/include/Pacpus/kernel
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/ComponentFactory.h
r15 r31 9 9 */ 10 10 11 #ifndef COMPONENTFACTORY_H12 #define COMPONENTFACTORY_H11 #ifndef DEF_PACPUS_COMPONENTFACTORY_H 12 #define DEF_PACPUS_COMPONENTFACTORY_H 13 13 14 14 #include <cassert> 15 15 16 #include "ComponentFactoryBase.h"16 #include <Pacpus/kernel/ComponentFactoryBase.h> 17 17 18 18 #include <QtGlobal> … … 59 59 }; 60 60 61 62 61 template <typename T> 63 62 ComponentFactory<T>::ComponentFactory(const QString& type) … … 86 85 } 87 86 88 #endif // COMPONENTFACTORY_H87 #endif // DEF_PACPUS_DBITEEXCEPTION_H -
trunk/include/Pacpus/kernel/ComponentFactoryBase.h
r3 r31 1 /** ******************************************************************2 // created: 2006/02/14 - 16:08 3 // filename: ComponentFactoryBase.h 4 // 5 // author: Gerald Dherbomez 6 // 7 // purpose: The ComponentFactoryBase class is used to provide an 8 // abstract class to the template ComponentFactory 9 *********************************************************************/1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 10 11 #ifndef COMPONENTFACTORYBASE_H12 #define COMPONENTFACTORYBASE_H11 #ifndef DEF_PACPUS_COMPONENTFACTORYBASE_H 12 #define DEF_PACPUS_COMPONENTFACTORYBASE_H 13 13 14 #include "pacpus.h"14 #include <Pacpus/kernel/pacpus.h> 15 15 16 16 class QString; … … 21 21 class ComponentBase; 22 22 23 /** ComponentFactoryBase 24 * @brief Provide an abstract class to the template ComponentFactory. 25 */ 23 26 class PACPUSLIB_API ComponentFactoryBase 24 27 { … … 40 43 } // namespace pacpus 41 44 42 #endif // COMPONENTFACTORYBASE_H45 #endif -
trunk/include/Pacpus/kernel/ComponentManager.h
r16 r31 9 9 */ 10 10 11 #ifndef COMPONENTMANAGER_H12 #define COMPONENTMANAGER_H11 #ifndef DEF_PACPUS_COMPONENTMANAGER_H 12 #define DEF_PACPUS_COMPONENTMANAGER_H 13 13 14 14 #include <cstddef> … … 18 18 #include <QPluginLoader> 19 19 20 #include "pacpus.h"21 #include "ComponentFactoryBase.h"22 #include "PacpusPluginInterface.h"23 #include "XmlConfigFile.h"20 #include <Pacpus/kernel/pacpus.h> 21 #include <Pacpus/kernel/ComponentFactoryBase.h> 22 #include <Pacpus/kernel/PacpusPluginInterface.h> 23 #include <Pacpus/kernel/XmlConfigFile.h> 24 24 25 25 namespace pacpus { … … 149 149 } // namespace pacpus 150 150 151 #endif // COMPONENTMANAGER_H151 #endif -
trunk/include/Pacpus/kernel/DbiteException.h
r3 r31 1 // Copyright Marek Kurdej 2010 - 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 5 10 6 #ifndef D BITEEXCEPTION_H7 #define D BITEEXCEPTION_H11 #ifndef DEF_PACPUS_DBITEEXCEPTION_H 12 #define DEF_PACPUS_DBITEEXCEPTION_H 8 13 9 14 #include <exception> … … 28 33 } // namespace pacpus 29 34 30 #endif // D BITEEXCEPTION_H35 #endif // DEF_PACPUS_DBITEEXCEPTION_H -
trunk/include/Pacpus/kernel/DbiteFile.h
r3 r31 1 // Copyright Marek Kurdej 2010 - 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 5 6 #ifndef DBITEFILE_H 7 #define DBITEFILE_H 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 11 #ifndef DEF_PACPUS_DBITEFILE_H 12 #define DEF_PACPUS_DBITEFILE_H 8 13 9 14 #include <fstream> … … 11 16 #include <string> 12 17 13 #include "kernel/cstdint.h"14 #include "kernel/hdfile_header_t.h"15 #include "kernel/road_time.h"18 #include <Pacpus/kernel/cstdint.h> 19 #include <Pacpus/kernel/hdfile_header_t.h> 20 #include <Pacpus/kernel/road_time.h> 16 21 17 22 namespace pacpus { … … 242 247 } // namespace pacpus 243 248 244 #endif // D BITEFILE_H249 #endif // DEF_PACPUS_DBITEFILE_H -
trunk/include/Pacpus/kernel/DbiteFileTypes.h
r3 r31 1 // Copyright Marek Kurdej 2010 - 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 5 6 #ifndef DBITEFILETYPES_H 7 #define DBITEFILETYPES_H 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 11 #ifndef DEF_PACPUS_DBITEFILETYPES_H 12 #define DEF_PACPUS_DBITEFILETYPES_H 8 13 9 14 enum BasicType … … 265 270 }; 266 271 267 #endif // D BITEFILETYPES_H272 #endif // DEF_PACPUS_DBITEFILETYPES_H -
trunk/include/Pacpus/kernel/GenericObservable.h
r12 r31 1 #pragma once 2 #ifndef __GENERIC_OBSERVER_H__ 3 #define __GENERIC_OBSERVER_H__ 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 11 #ifndef DEF_PACPUS_GENERIC_OBSERVER_H 12 #define DEF_PACPUS_GENERIC_OBSERVER_H 4 13 5 14 #include <list> 6 15 7 #include "GenericObserverInterface.h"16 #include <Pacpus/kernel/GenericObserverInterface.h> 8 17 #include <QMutex> 9 18 … … 66 75 } // namespace pacpus 67 76 68 #endif 77 #endif // DEF_PACPUS_GENERIC_OBSERVER_H -
trunk/include/Pacpus/kernel/GenericObserverInterface.h
r3 r31 1 #pragma once 2 #ifndef __GENERIC_OBSERVER_INTERFACE_H__ 3 #define __GENERIC_OBSERVER_INTERFACE_H__ 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 11 #ifndef DEF_PACPUS_GENERIC_OBSERVER_INTERFACE_H 12 #define DEF_PACPUS_GENERIC_OBSERVER_INTERFACE_H 4 13 5 14 namespace pacpus { … … 39 48 40 49 41 #endif 50 #endif // DEF_PACPUS_GENERIC_OBSERVER_INTERFACE_H -
trunk/include/Pacpus/kernel/Log.h
r3 r31 1 // Copyright Marek Kurdej 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 5 10 6 #ifndef PACPUS_LOG_H7 #define PACPUS_LOG_H11 #ifndef DEF_PACPUS_LOG_H 12 #define DEF_PACPUS_LOG_H 8 13 9 14 // Includes, pacpus. 10 #include "pacpus.h"15 #include <Pacpus/kernel/pacpus.h> 11 16 12 17 namespace pacpus { … … 56 61 #endif // PACPUS_USE_LOG 57 62 58 #endif // PACPUS_LOG_H63 #endif // DEF_PACPUS_LOG_H -
trunk/include/Pacpus/kernel/PacpusPluginInterface.h
r3 r31 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 1 10 11 #ifndef DEF_PACPUS_PLUGININTERFACE_H 12 #define DEF_PACPUS_PLUGININTERFACE_H 2 13 3 4 #ifndef _PACPUSPLUGININTERFACE_H_ 5 #define _PACPUSPLUGININTERFACE_H_ 6 7 8 14 /** PacpusPluginInterface 15 * @brief Base class of a Pacpus plugin. 16 */ 9 17 class PacpusPluginInterface 10 18 { 11 19 public: 12 / / destructor20 /** Dtor of PacpusPluginInterface. */ 13 21 virtual ~PacpusPluginInterface(){} 22 23 /** Name of the plugin. */ 14 24 virtual QString name() = 0; 15 16 25 }; 17 26 18 Q_DECLARE_INTERFACE(PacpusPluginInterface, 19 "pacpus.ComponentBaseInterface/1.0") 27 Q_DECLARE_INTERFACE(PacpusPluginInterface, "pacpus.ComponentBaseInterface/1.0") 20 28 21 22 #endif 29 #endif // DEF_PACPUS_PLUGININTERFACE_H -
trunk/include/Pacpus/kernel/XmlComponentConfig.h
r3 r31 1 /********************************************************************* 2 // 3 // created: 2006/01/30 - 10:58 4 // 5 // filename: xmlcomponentconfig.h 6 // 7 // author: Gerald Dherbomez 8 // 9 // purpose: definit la structure XML des paramètres de configuration 10 // d'un composant 11 *********************************************************************/ 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 12 10 13 #ifndef XMLCOMPONENTCONFIG_H14 #define XMLCOMPONENTCONFIG_H11 #ifndef DEF_PACPUS_XMLCOMPONENTCONFIG_H 12 #define DEF_PACPUS_XMLCOMPONENTCONFIG_H 15 13 16 #include "pacpus.h"14 #include <Pacpus/kernel/pacpus.h> 17 15 18 16 #include <QDomElement> … … 104 102 } // namespace pacpus 105 103 106 #endif // XMLCOMPONENTCONFIG_H104 #endif // DEF_PACPUS_XMLCOMPONENTCONFIG_H -
trunk/include/Pacpus/kernel/XmlConfigFile.h
r3 r31 1 /********************************************************************* 2 // created: 2006/01/30 - 12:31 3 // filename: xmlconfigfile.h 4 // 5 // author: Gerald Dherbomez 6 // 7 // purpose: Classe permettant d'enregistrer un fichier de 8 // configuration XML 9 // Le fichier XML contient 2 sections : 10 // - parameters : contient les parametres de l'application 11 // - components : contient les composants 12 // les composants ne peuvent pas avoir de noeuds fils 13 // 14 // todo: Creer une dtd qui permet de definir la liste des classes possibles 15 // que peuvent prendre les composants 16 // 17 *********************************************************************/ 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 18 10 19 #ifndef XMLCONFIGFILE_H20 #define XMLCONFIGFILE_H11 #ifndef DEF_PACPUS_XMLCONFIGFILE_H 12 #define DEF_PACPUS_XMLCONFIGFILE_H 21 13 22 #include "kernel/pacpus.h"23 #include "XmlComponentConfig.h"14 #include <Pacpus/kernel/pacpus.h> 15 #include <Pacpus/kernel/XmlComponentConfig.h> 24 16 25 17 #include <QDomElement> … … 73 65 } // namespace pacpus 74 66 75 #endif // XMLCONFIGFILE_H67 #endif // DEF_PACPUS_XMLCONFIGFILE_H -
trunk/include/Pacpus/kernel/cstdint.h
r3 r31 1 // Copyright Marek Kurdej 2010 - 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 5 10 6 #ifndef PACPUS_CSTDINT_H7 #define PACPUS_CSTDINT_H11 #ifndef DEF_PACPUS_CSTDINT_H 12 #define DEF_PACPUS_CSTDINT_H 8 13 9 14 #if defined(_MSC_VER) && _MSC_VER < 1600 … … 26 31 #endif 27 32 28 #endif // PACPUS_CSTDINT_H33 #endif // DEF_PACPUS_CSTDINT_H 29 34 -
trunk/include/Pacpus/kernel/hdfile_header_t.h
r3 r31 1 // Copyright Marek Kurdej 2010 - 2012. 2 // Distributed under the UTC Heudiasyc Pacpus License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 5 10 6 #ifndef HDFILE_HEADER_T_H7 #define HDFILE_HEADER_T_H11 #ifndef DEF_HDFILE_HEADER_T_H 12 #define DEF_HDFILE_HEADER_T_H 8 13 9 14 #include "kernel/cstdint.h" … … 38 43 #pragma pack(pop) 39 44 40 #endif // HDFILE_HEADER_T_H45 #endif // DEF_HDFILE_HEADER_T_H -
trunk/include/Pacpus/kernel/pacpus.h
r11 r31 1 #ifndef PACPUS_H 2 #define PACPUS_H 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 3 10 4 #include "road_time.h" 11 #ifndef DEF_PACPUS_H 12 #define DEF_PACPUS_H 13 14 #include <Pacpus/kernel/road_time.h> 5 15 6 16 // Deprecated, you should use M_PI from cmath. … … 35 45 #endif 36 46 37 #endif 47 #endif // DEF_PACPUS_H -
trunk/include/Pacpus/kernel/road_time.h
r3 r31 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 10 1 11 /******************************************************************************* 2 12 // This DLL was compiled as a Standard C Language Dynamic Link Libtrary. … … 5 15 *******************************************************************************/ 6 16 7 #ifndef ROAD_TIME_H8 #define ROAD_TIME_H17 #ifndef DEF_PACPUS_ROAD_TIME_H 18 #define DEF_PACPUS_ROAD_TIME_H 9 19 10 20 #ifdef __cplusplus … … 14 24 #include <stddef.h> // defines: NULL 15 25 16 #include "kernel/cstdint.h"26 #include <Pacpus/kernel/cstdint.h> 17 27 18 28 // Export macro for ROAD_TIME DLL for Windows only … … 92 102 #endif // __cplusplus 93 103 94 #endif // ROAD_TIME_H104 #endif // DEF_PACPUS_ROAD_TIME_H
Note:
See TracChangeset
for help on using the changeset viewer.