Changeset 31 in pacpusframework for trunk/src


Ignore:
Timestamp:
Jan 8, 2013, 6:10:10 PM (12 years ago)
Author:
sgosseli
Message:

Huge commit: use the new includes style in all the files, add the license header in all the headers, and in some cpp.

Location:
trunk/src
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/DBITEPlayer/src/main.cpp

    r3 r31  
    3030
    3131#include <cassert>
    32 #include <qapplication.h>
     32#include <QApplication>
    3333
    34 #include "DbitePlayer/DbtPlyEngine.h"
    35 #include "DbitePlayer/DbtPlyTrigger.h"
    36 #include "DbitePlayer/DbtPlyUserInterface.h"
    37 #include "kernel/ComponentManager.h"
    38 #include "kernel/ComponentFactory.h"
    39 #include "kernel/Log.h"
    40 #include "kernel/PacpusPluginInterface.h"
     34#include <Pacpus/DbitePlayer/DbtPlyEngine.h>
     35#include <Pacpus/DbitePlayer/DbtPlyTrigger.h>
     36#include <Pacpus/DbitePlayer/DbtPlyUserInterface.h>
     37#include <Pacpus/kernel/ComponentManager.h>
     38#include <Pacpus/kernel/ComponentFactory.h>
     39#include <Pacpus/kernel/Log.h>
     40#include <Pacpus/kernel/PacpusPluginInterface.h>
    4141
    4242using namespace pacpus;
  • trunk/src/DBITEPlayerLib/DbtPlyEngine.cpp

    r3 r31  
    99*********************************************************************/
    1010
    11 #include "DbitePlayer/DbtPlyEngine.h"
    12 
    13 #include "kernel/ComponentManager.h"
    14 #include "kernel/Log.h"
     11#include <Pacpus/DbitePlayer/DbtPlyEngine.h>
     12#include <Pacpus/kernel/ComponentManager.h>
     13#include <Pacpus/kernel/Log.h>
    1514
    1615#include <cassert>
  • trunk/src/DBITEPlayerLib/DbtPlyEngineStateChart.cpp

    r3 r31  
    99*********************************************************************/
    1010
    11 #include "DbitePlayer/DbtPlyEngineStateChart.h"
    12 
    13 #include "kernel/Log.h"
    14 
    15 #include "DbitePlayer/DbtPlyEngine.h"
     11#include <Pacpus/DbitePlayer/DbtPlyEngineStateChart.h>
     12#include <Pacpus/DbitePlayer/DbtPlyEngine.h>
     13#include <Pacpus/kernel/Log.h>
    1614
    1715namespace pacpus {
  • trunk/src/DBITEPlayerLib/DbtPlyFileManager.cpp

    r3 r31  
    2020////////////////////////////////////////////////////////////////////////////////
    2121
    22 #include "DbitePlayer/DbtPlyFileManager.h"
    23 
    24 #include "kernel/ComponentManager.h"
    25 #include "kernel/DbiteException.h"
    26 #include "kernel/Log.h"
     22#include <Pacpus/DbitePlayer/DbtPlyFileManager.h>
     23#include <Pacpus/kernel/ComponentManager.h>
     24#include <Pacpus/kernel/DbiteException.h>
     25#include <Pacpus/kernel/Log.h>
    2726
    2827#include <cassert>
     
    3231#include <QSemaphore>
    3332
     33using namespace pacpus;
    3434using namespace std;
    35 
    36 namespace pacpus {
    3735
    3836DECLARE_STATIC_LOGGER("pacpus.core.DbtPlyFileManager");
     
    348346    }
    349347}
    350 
    351 } // namespace pacpus
  • trunk/src/DBITEPlayerLib/DbtPlyTrigger.cpp

    r3 r31  
    99////////////////////////////////////////////////////////////////////////////////
    1010
    11 #include "kernel/ComponentManager.h"
    12 #include "kernel/Log.h"
    13 #include "DbitePlayer/DbtPlyTrigger.h"
     11#include <Pacpus/kernel/ComponentManager.h>
     12#include <Pacpus/kernel/Log.h>
     13#include <Pacpus/DbitePlayer/DbtPlyTrigger.h>
    1414
    1515namespace pacpus {
  • trunk/src/DBITEPlayerLib/DbtPlyUserInterface.cpp

    r3 r31  
    1010////////////////////////////////////////////////////////////////////////////////
    1111
    12 #include "DbitePlayer/DbtPlyUserInterface.h"
     12#include <Pacpus/DbitePlayer/DbtPlyUserInterface.h>
     13#include <Pacpus/kernel/ComponentManager.h>
     14#include <Pacpus/kernel/Log.h>
    1315
    1416#include <cassert>
     
    2426#include <qtablewidget.h>
    2527
    26 #include "kernel/ComponentManager.h"
    27 #include "kernel/Log.h"
    28 
    2928namespace pacpus {
    3029
  • trunk/src/FileLib/src/DbiteException.cpp

    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 */
    510
    6 #include "kernel/DbiteException.h"
     11#include <Pacpus/kernel/DbiteException.h>
    712
    813using namespace pacpus;
  • trunk/src/FileLib/src/DbiteFile.cpp

    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 #include "kernel/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#include <Pacpus/kernel/DbiteFile.h>
     12#include <Pacpus/kernel/DbiteException.h>
     13#include <Pacpus/kernel/DbiteFileTypes.h>
     14#include <Pacpus/kernel/Log.h>
    715
    816#include <cassert>
     
    1220#include <sstream>
    1321
    14 #include "kernel/DbiteException.h"
    15 #include "kernel/DbiteFileTypes.h"
    16 #include "kernel/Log.h"
    17 
    18 namespace pacpus {
    19 
     22using namespace pacpus;
    2023using namespace std;
    2124
     
    2528DECLARE_STATIC_LOGGER("pacpus.core.DbiteFile");
    2629
    27 VariableDataSizeTag VariableDataSize;
    28 ReadModeTag ReadMode;
    29 WriteModeTag WriteMode;
    30 DiagnoseModeTag DiagnoseMode;
     30namespace pacpus
     31{
     32  VariableDataSizeTag VariableDataSize;
     33  ReadModeTag ReadMode;
     34  WriteModeTag WriteMode;
     35  DiagnoseModeTag DiagnoseMode;
     36}
    3137
    3238bool doesFileExist(const string & path);
     
    797803    return fileExist;
    798804}
    799 
    800 } // namespace pacpus
  • trunk/src/PacpusLib/ComponentBase.cpp

    r30 r31  
    1 /*********************************************************************
    2 // created:    2006/02/07 - 11:58
    3 // filename:   ComponentBase.cpp
    4 //
    5 // author:     Gerald Dherbomez
    6 //
    7 // purpose:    implementation of ComponentBase class
    8 *********************************************************************/
     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 */
    910
    1011#include <Pacpus/kernel/ComponentBase.h>
  • trunk/src/PacpusLib/ComponentFactoryBase.cpp

    r3 r31  
    1 // ********************************************************************
    2 //  created:    2006/02/14 - 16:07
    3 //  filename:   ComponentFactoryBase.cpp
    4 //
    5 //  author:     Gerald Dherbomez
    6 //
    7 //  purpose:    Implementation of ComponentFactoryBase class
    8 // *********************************************************************
     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 */
    910
    10 #include "kernel/ComponentFactoryBase.h"
    11 
    12 #include "kernel/ComponentBase.h"
    13 #include "kernel/ComponentManager.h"
    14 #include "kernel/Log.h"
     11#include <Pacpus/kernel/ComponentFactoryBase.h>
     12#include <Pacpus/kernel/ComponentBase.h>
     13#include <Pacpus/kernel/ComponentManager.h>
     14#include <Pacpus/kernel/Log.h>
    1515
    1616#include <cassert>
    1717#include <QString>
    1818
    19 namespace pacpus {
     19using namespace pacpus;
    2020
    2121DECLARE_STATIC_LOGGER("pacpus.core.ComponentFactoryBase");
     
    6161    }
    6262}
    63 
    64 } // namespace pacpus
  • trunk/src/PacpusLib/ComponentManager.cpp

    r16 r31  
    1 #include "kernel/ComponentManager.h"
    2 #include "kernel/ComponentBase.h"
    3 #include "kernel/Log.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#include <Pacpus/kernel/ComponentManager.h>
     12#include <Pacpus/kernel/ComponentBase.h>
     13#include <Pacpus/kernel/Log.h>
    414
    515using namespace pacpus;
  • trunk/src/PacpusLib/Log.cpp

    r3 r31  
    1 #include "kernel/Log.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#include <Pacpus/kernel/Log.h>
    212
    313#ifdef PACPUS_USE_LOG
  • trunk/src/PacpusLib/XmlComponentConfig.cpp

    r3 r31  
    1 /*********************************************************************
    2 // created:    2006/01/30
    3 // created:    2006/01/30 - 11:09
    4 // filename:   xmlcomponentconfig.cpp
    5 //
    6 // author:     Gerald Dherbomez
    7 //
    8 // purpose:    implementation de la classe XmlComponentConfig
    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 */
    1010
    11 #include "kernel/XmlComponentConfig.h"
     11#include <Pacpus/kernel/XmlComponentConfig.h>
     12#include <Pacpus/kernel/Log.h>
     13#include <Pacpus/kernel/XmlConfigFile.h>
    1214
    13 #include "kernel/Log.h"
    14 #include "kernel/XmlConfigFile.h"
    15 
    16 namespace pacpus {
    17 
     15using namespace pacpus;
    1816using namespace std;
    1917
     
    142140    return getProperty(kPropertyComponentType.c_str());
    143141}
    144 
    145 } // namespace pacpus
  • trunk/src/PacpusLib/XmlConfigFile.cpp

    r3 r31  
    1 /*********************************************************************
    2 // created:    2006/01/30
    3 // created:    2006/01/30 - 13:49
    4 // filename:   xmlconfigfile.cpp
    5 //
    6 // author:     Gerald Dherbomez
    7 //
    8 // purpose:    Implementation de la classe XmlConfigFile
    9 *********************************************************************/
    10 
    11 #include "kernel/XmlConfigFile.h"
    12 
    13 #include "kernel/Log.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#include <Pacpus/kernel/XmlConfigFile.h>
     12#include <Pacpus/kernel/Log.h>
    1413
    1514#include <QFile>
    1615#include <QTextStream>
    1716
    18 namespace pacpus {
    19 
     17using namespace pacpus;
    2018using namespace std;
    2119
     
    209207    }
    210208}
    211 
    212 } // namespace pacpus
  • trunk/src/PacpusSensor/src/main.cpp

    r3 r31  
    1 /********************************************************************
    2  //  created:    2006/08/07 - 14:26
    3  //  filename:   main.cpp
    4  //
    5  //  author:     Gerald Dherbomez
    6  //              Copyright Heudiasyc UMR UTC/CNRS 6599
    7  //
    8  //  version:    $Id: main.cpp 1009 2012-08-01 19:03:32Z morasjul $
    9  //
    10  //  purpose:    Main file that instantiates the component manager and
    11  //              creates the main window.
    12  //
    13  *********************************************************************/
     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 */
    1410
    15 #include <qapplication.h>
    16 //#include <qpluginloader.h>
     11#include <QApplication>
    1712
    1813#include "ui/pacpusmainwindow.h"
    19 #include "kernel/ComponentManager.h"
    20 #include "kernel/Log.h"
     14#include <Pacpus/kernel/ComponentManager.h>
     15#include <Pacpus/kernel/Log.h>
     16
    2117#ifdef WIN32
    2218#   include <windows.h>
  • trunk/src/PacpusTools/src/AsyncWorkerBase.cpp

    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
    111// Includes, pacpus.
    212#include <kernel/Log.h>
  • trunk/src/PacpusTools/src/PeriodicWorker.cpp

    r10 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
    111// Includes, pacpus.
    212#include <PacpusTools/PeriodicWorker.h>
  • trunk/src/PacpusTools/src/PosixShMem.cpp

    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
    111#include <cassert>
    2 #include <cstdlib>  // exit
     12#include <cstdlib>
    313#include <iomanip>
    414
    5 #include "PacpusTools/PosixShMem.h"
    6 #include "kernel/Log.h"
     15#include <Pacpus/PacpusTools/PosixShMem.h>
     16#include <Pacpus/kernel/Log.h>
    717
    818DECLARE_STATIC_LOGGER("pacpus.core.PosixShMem");
  • trunk/src/PacpusTools/src/Win32ShMem.cpp

    r3 r31  
    1 /*********************************************************************
    2 //  created:    2007/01/18 - 18:09
    3 //  filename:   Win32ShMem.cpp
    4 //
    5 //  author:     Gerald Dherbomez
    6 //
    7 //  version:    $Id$
    8 //
    9 //  purpose:    Definition of the Win32 class of the shared memory
    10 *********************************************************************/
     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 */
    1110
    12 #include "PacpusTools/Win32ShMem.h"
     11#include <Pacpus/PacpusTools/Win32ShMem.h>
     12#include <Pacpus/kernel/Log.h>
    1313
    1414#include <sstream>
    1515#include <windows.h>
    1616
    17 #include "kernel/Log.h"
    1817
    1918DECLARE_STATIC_LOGGER("pacpus.core.Win32ShMem");
  • trunk/src/PacpusTools/src/geodesie.cpp

    r3 r31  
    1 //#include <cmath>
     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
    211#include <fstream>
    3 
    4 #include "PacpusTools/geodesie.h"
     12#include <Pacpus/PacpusTools/geodesie.h>
    513
    614#ifdef _MSC_VER
  • trunk/src/PacpusTools/src/matrice.cpp

    r3 r31  
    11/// bibliotheque CPP de calcul matriciel
    2 
    3 #include "PacpusTools/matrice.h"
     2/**
     3 *
     4 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0.
     5 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved.
     6 *
     7 * See the LICENSE file for more information or a copy at:
     8 *   http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
     9 *
     10 */
     11
     12#include <Pacpus/PacpusTools/matrice.h>
    413
    514#include <cstdlib>
  • trunk/src/RoadTime/src/road_time.c

    r3 r31  
    1 /*********************************************************************
    2 //  created:    2002/04/01 - 10:10
    3 //  filename:   road_time.c
    4 //
    5 //  author:     Gery Brissot
    6 //              Copyright Heudiasyc UMR UTC/CNRS 6599
    7 //
    8 //  version:    $Id: road_time.c 378 2008-01-30 10:53:21Z gdherbom $
    9 //
    10 //  purpose:    Dll used to timestamp data in microseconds.
    11 //              Reference time zero : 01/01/1970 00:00
    12 *********************************************************************/
    13 
    14 // road_time.c : Defines the entry point for the DLL application.
    15 //
     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 */
    1610
    1711#ifdef WIN32
    18 #include <windows.h>
     12  #include <windows.h>
    1913#endif
    2014
    21 #include "kernel/road_time.h"
     15#include <Pacpus/kernel/road_time.h>
    2216
    2317#include <memory.h>
Note: See TracChangeset for help on using the changeset viewer.