Imported CSS files

This commit is contained in:
Sakbe
2019-10-21 16:02:55 +01:00
parent 22146b8413
commit 87401e8c95
365 changed files with 1092613 additions and 0 deletions

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2011 EFDA | European Fusion Development Agreement
*
* Licensed under the EUPL, Version 1.1 or - as soon they
will be approved by the European Commission - subsequent
versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in
writing, software distributed under the Licence is
distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.
* See the Licence for the specific language governing
permissions and limitations under the Licence.
*
* $Id: BinaryFileReader.cpp 3 2012-01-15 16:26:07Z aneto $
*
**/
#include "BinaryFileReader.h"
#include "GlobalObjectDataBase.h"
bool BinaryFileReader::ObjectLoadSetup(ConfigurationDataBase &info,StreamInterface *err){
AssertErrorCondition(Information, "BinaryFileReader::ObjectLoadSetup: %s Loading signals", Name());
CDBExtended cdb(info);
if(!GenericAcqModule::ObjectLoadSetup(info,err)){
AssertErrorCondition(InitialisationError,"BinaryFileReader::ObjectLoadSetup: %s GenericAcqModule::ObjectLoadSetup Failed",Name());
return False;
}
numberOfInputs = NumberOfInputs();
printf("NumberOfInputs() = %d\n", numberOfInputs);
if(!cdb.ReadUint32(dataSize, "DataSize")){
AssertErrorCondition(InitialisationError,"%s %s::Initialise: data_size is not specified.", IOGAM_MODULE, Name());
return False;
}
AssertErrorCondition(Information,"%s %s::Initialise: data_size: %d", IOGAM_MODULE, Name(), dataSize);
if(dataSize%sizeof(uint32) != 0){
AssertErrorCondition(InitialisationError,"%s %s::Initialise: data_size is not valid. Must be a %zu multiple.", IOGAM_MODULE, Name(), sizeof(uint32));
return False;
}
printf("memory alloc (sizeof(uint32)*numberOfInputs) = %zu\n", sizeof(uint32)*numberOfInputs);
printf("memory alloc (sizeof(char)*dataSize) = %zu\n", sizeof(char)*dataSize);
fileData = (char *) calloc(dataSize, sizeof(char));
if (!fileData)
{
AssertErrorCondition(InitialisationError,"%s %s::Initialise: Not enough memory for file_data with size %zu", IOGAM_MODULE, Name(), dataSize);
return False;
}
else
{
AssertErrorCondition(Information,"%s %s::Initialise: Memory allocated for file_data: %zu bytes", IOGAM_MODULE, Name(), dataSize);
}
if(!cdb.ReadFString(fileName, "FileName")){
AssertErrorCondition(InitialisationError,"Initialise::ObjectLoadSetup: %s FilePath must be specified.",Name());
return False;
}
if(!f.OpenRead(fileName.Buffer())){
AssertErrorCondition(InitialisationError,"Initialise::ObjectLoadSetup: %s failed to open file: %s", Name(), fileName.Buffer());
return False;
}
uint32 fileSize = f.Size();
if(fileSize != dataSize){
AssertErrorCondition(InitialisationError,"Initialise::ObjectLoadSetup: %s size [%d] is diferent from configured %d", Name(), fileSize, dataSize);
//return False;
}
f.Seek(SEEK_SET);
bool k = f.Read(fileData, fileSize);
if(k == 0){
AssertErrorCondition(InitialisationError,"Initialise::ObjectLoadSetup: %s failed read data from file: %s", Name(), fileName.Buffer());
return False;
}
return True;
}
/**
* GetData
*/
int32 BinaryFileReader::GetData(uint32 usecTime, int32 *ibuffer, int32 bufferNumber){
int32 i = 0;
char *buffer = (char *)ibuffer;
int value = 1234;
/*
f.Seek(SEEK_SET);
bool k = f.Read(fileData, dataSize);
*/
memcpy(buffer, fileData, numberOfInputs*sizeof(char));
return 1;
}
OBJECTLOADREGISTER(BinaryFileReader,"$Id: BinaryFileReader.cpp 3 2012-01-15 16:26:07Z aneto $")

View File

@@ -0,0 +1,135 @@
/*
* Copyright 2011 EFDA | European Fusion Development Agreement
*
* Licensed under the EUPL, Version 1.1 or - as soon they
will be approved by the European Commission - subsequent
versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in
writing, software distributed under the Licence is
distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.
* See the Licence for the specific language governing
permissions and limitations under the Licence.
*
* $Id: BinaryFileReader.h 3 2012-01-15 16:26:07Z aneto $
*
**/
#if !defined (BINARY_FILE_READER)
#define BINARY_FILE_READER
#include "System.h"
#include "GenericAcqModule.h"
#include "File.h"
#include "ConfigurationDataBase.h"
#include "CDBExtended.h"
class DDBInputInterface;
class DDBOutputInterface;
#define IOGAM_MODULE "BinaryFileReader"
OBJECT_DLL(BinaryFileReader)
class BinaryFileReader: public GenericAcqModule{
OBJECT_DLL_STUFF(BinaryFileReader)
private:
File f;
/**
* Cycle Number
*/
int64 cycleNumber;
uint32 dataSize;
uint32 numberOfInputs;
/** Output interface to write data to */
DDBInputInterface *input;
/**
* Number of signals
*/
uint32 numberOfSignals;
/**
* Double array with signals
*/
char ** signals;
/**
* File Names. For each Channel
*/
FString fileName_usecTime;
FString fileName_Ch1;
public:
BinaryFileReader(){
cycleNumber = 0;
}
virtual ~BinaryFileReader(){
delete [] fileData;
}
/**
* Reset the internal counters
*/
bool PulseStart(){
cycleNumber = 0;
return True;
}
/**
* Gets Data From the Module to the DDB
* @param usecTime Microseconds Time
* @return -1 on Error, 1 on success
*/
int32 GetData(uint32 usecTime, int32 *buffer, int32 bufferNumber = 0);
/**
* Load and configure object parameters
* @param info the configuration database
* @param err the error stream
* @return True if no errors are found during object configuration
*/
bool ObjectLoadSetup(ConfigurationDataBase &info,StreamInterface *err);
/**
* NOOP
*/
bool ObjectDescription(StreamInterface &s,bool full,StreamInterface *er){
return True;
}
/**
* NOOP
*/
bool SetInputBoardInUse(bool on){
return True;
}
/**
* NOOP
*/
bool SetOutputBoardInUse(bool on){
return True;
}
/**
* Not supported
*/
bool WriteData(uint32 usecTime, const int32* buffer){
AssertErrorCondition(FatalError, "%s: WriteData not supported", Name());
return False;
}
};
#endif

View File

@@ -0,0 +1,634 @@
Version = "$Id: MARTe-fileread.cfg,v 1.1 2011/04/06 11:30:36 aneto Exp $"
LoggerAddress = "localhost"
DefaultCPUs = 8
+WEB = {
Class = HttpGroupResource
+BROWSE = {
Title = "Http Object Browser"
Class = HttpGCRCBrowser
AddReference = {MARTe StateMachine OBJBROWSE THRBROWSE CFGUpload MATLABSupport}
}
}
+HTTPSERVER = {
Class = HttpService
Port = 8084
HttpRelayURL = "ignore.me:1234"
VerboseLevel = 10
Root = WEB
}
+OBJBROWSE = {
Class = HttpClassListResource
}
+THRBROWSE = {
Class = HttpThreadListResource
}
+MATLABSupport = {
Class = MATLABHandler
}
+CFGUpload = {
Class = CFGUploader
}
+StateMachine = {
Class = StateMachine
VerboseLevel = 10
+INITIAL = {
Class = StateMachineState
StateCode = 0x0
+START = {
Class = StateMachineEvent
NextState = IDLE
Value = START
+STARTALL = {
Class = MessageDeliveryRequest
Sender = StateMachine
Destinations = "HTTPSERVER MARTe"
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Content = START
}
}
}
}
+IDLE = {
Class = StateMachineState
StateCode = 0x500
+PULSE_SETUP_COMPLETED = {
Class = StateMachineEvent
Code = 0x701
NextState = WAITING_FOR_PRE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = PREPULSECHECK
}
}
+UPDATE_GAP = {
Class = MessageEnvelope
Destination = MATLABSupport
+MESSAGE = {
Class = Message
Content = AUTODETECT
}
}
}
+INHIBIT = {
Class = StateMachineEvent
Code = 0x704
NextState = INHIBIT
}
+ACTIVATE = {
Class = StateMachineEvent
Code = 0x705
NextState = SAMESTATE
}
+UNRECOVERABLE = {
Class = StateMachineEvent
Code = 0x776
NextState = UNRECOVERABLE
}
+CONFIG_ERROR = {
Class = StateMachineEvent
Code = 0x777
NextState = CONFIG_ERROR
}
+CONFIG_OK = {
Class = StateMachineEvent
Code = 0x778
NextState = SAMESTATE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = CODAS.SMH
+SENDSTATE = {
Class = Message
Code = 0x500
}
}
}
+STOP = {
Class = StateMachineEvent
NextState = IDLE
Value = STOP
Code = 0x005
+STOPALL = {
Class = MessageDeliveryRequest
Sender = StateMachine
Destinations = "HTTPSERVER MARTe"
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Content = STOP
}
}
}
}
+WAITING_FOR_PRE = {
Class = StateMachineState
StateCode = 0x504
+PRE = {
Class = StateMachineEvent
Code = 0x708
NextState = PULSING
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = PULSESTART
}
}
}
+ABORT = {
Class = StateMachineEvent
Code = 0x702
NextState = IDLE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = PULSESTOP
}
}
}
+COLLECTION_COMPLETED = {
Class = StateMachineEvent
Code = 0x703
NextState = COMM_ERROR
}
}
+PULSING = {
Class = StateMachineState
StateCode = 0x505
+ENTER = {
Class = MessageEnvelope
Destination = CODAS.SMH
+SENDSTATE = {
Class = Message
}
}
+ABORT = {
Class = StateMachineEvent
Code = 0x702
NextState = IDLE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = PULSESTOP
}
}
}
+EJP = {
Class = StateMachineEvent
Code = 0x709
NextState = POST_PULSE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = PULSESTOP
}
}
}
}
+POST_PULSE = {
Class = StateMachineState
StateCode = 0x507
+ENTER = {
Class = MessageEnvelope
Destination = CODAS.SMH
+SENDSTATE = {
Class = Message
}
}
+COLLECTION_COMPLETED = {
Class = StateMachineEvent
Code = 0x703
NextState = IDLE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = MARTe
+MESSAGE = {
Class = Message
Content = COLLECTIONCOMPLETED
}
}
}
}
+INHIBIT = {
Class = StateMachineState
StateCode = 0x508
+ACTIVATE = {
Class = StateMachineEvent
Code = 0x705
NextState = IDLE
}
}
+ERROR = {
Class = StateMachineState
StateCode = 0x601
+ACTIVATE = {
Class = StateMachineEvent
Code = 0x705
NextState = IDLE
}
+COLLECTION_COMPLETED = {
Class = StateMachineEvent
Code = 0x703
NextState = IDLE
}
}
+CONFIG_ERROR = {
Class = StateMachineState
StateCode = 0x601
+ENTER = {
Class = MessageEnvelope
Destination = CODAS.SMH
+SENDSTATE = {
Class = Message
}
}
+ACTIVATE = {
Class = StateMachineEvent
Code = 0x705
NextState = IDLE
}
+CONFIG_OK = {
Class = StateMachineEvent
Code = 0x778
NextState = IDLE
+NOTIFY = {
Class = MessageEnvelope
Sender = StateMachine
Destination = CODAS.SMH
+SENDSTATE = {
Class = Message
Code = 0x500
}
}
}
+CONFIG_ERROR = {
Class = StateMachineEvent
Code = 0x777
NextState = CONFIG_ERROR
}
}
+UNRECOVERABLE = {
Class = StateMachineState
StateCode = 0x601
+DEFAULT = {
Class = StateMachineEvent
UserCode = 0
NextState = UNRECOVERABLE
}
}
+COMM_ERROR = {
StateCode = 0x601
Class = StateMachineState
+ABORT = {
Class = StateMachineEvent
Code = 0x702
NextState = SAMESTATE
}
}
+DEFAULT = {
Class = StateMachineState
StateCode = 0x601
+ABORT = {
Class = StateMachineEvent
Code = 0x702
NextState = IDLE
}
+PRE = {
Class = StateMachineEvent
Code = 0x708
NextState = SAMESTATE
}
+EJP = {
Class = StateMachineEvent
Code = 0x709
NextState = SAMESTATE
}
}
}
+MARTeMenu = {
Class = MARTeSupLib::MARTeMenu
Title = "MARTe Menu"
+MenuA = {
Class = MenuContainer
Title = "CODAS Interface"
+ABORT = {
Class = SendMessageMenuEntry
Title = Abort
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x702
Content = ABORT
}
}
}
+INHIBIT = {
Class = SendMessageMenuEntry
Title = Inhibit
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x704
Content = Inhibit
}
}
}
+ACTIVATE = {
Class = SendMessageMenuEntry
Title = Activate
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x705
Content = Activate
}
}
}
+PULSESETUPCOMPLETE = {
Class = SendMessageMenuEntry
Title = "Pulse Setup Conplete"
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x701
Content = WAITING_FOR_PRE
}
}
}
+PRE = {
Class = SendMessageMenuEntry
Title = "Pulse Start"
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x708
Content = PRE
}
}
}
+EJP = {
Class = SendMessageMenuEntry
Title = "Pulse End"
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x709
Content = EJP
}
}
}
+COLLECTIONCOMPLETED = {
Class = SendMessageMenuEntry
Title = "Collection Completed"
Envelope = {
Class = MessageEnvelope
Sender = MARTeMenu
Destination = StateMachine
+Message = {
Class = Message
Code = 0x703
Content = POSTPULSE
}
}
}
}
AddReference = MARTe.MARTe
}
+MARTe = {
Class = MARTeContainer
StateMachineName = StateMachine
Level1Name = LEVEL1
MenuContainerName = MARTe
+MARTe = {
Class = MenuContainer
}
+DriverPool = {
Class = GCReferenceContainer
+TimerBoard = {
Class = LinuxTimerDrv
NumberOfInputs = 2
NumberOfOutputs = 0
TimerPeriodUsec = 1000
SynchronizationMethod = Synchronizing
RunOnCPU = 4
}
+FileReader = {
Class = BinaryFileReader
//NumberOfInputs = 47608990
NumberOfInputs = 40000000
DataSize = 190435960
FileName = "../../../cplusplus/compression/data/90653/1.bin"
}
}
+Messages = {
Class = GCReferenceContainer
+FatalErrorMessage = {
Class = MessageDeliveryRequest
Destinations = StateMachine
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Code = 0x776
Content = UNRECOVERABLE
}
}
+ConfigLoadErrorMessage = {
Class = MessageDeliveryRequest
Destinations = StateMachine
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Code = 0x777
Content = CONFIG_ERROR
}
}
+ConfigLoadOKMessage = {
Class = MessageDeliveryRequest
Destinations = StateMachine
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Code = 0x778
Content = CONFIG_OK
}
}
+SafetyErrorMessage = {
Class = MessageDeliveryRequest
Destinations = MARTe
MsecTimeOut = 1000
Flags = NoReply
Message = {
Class = Message
Content = ERROR
}
}
}
+ExternalTimeTriggeringService = {
Class = InterruptDrivenTTS
TsOnlineUsecPeriod = 1000000
TsOnlineUsecPhase = 0
TsOfflineUsecPeriod = 1000000
TsOfflineUsecPhase = 0
TimeModule = {
BoardName = TimerBoard
}
}
+Thread_1 = {
Class = RealTimeThread
ThreadPriority = 28
RunOnCPU = 8
RTStatusChangeMsecTimeout = 1000
SMStatusChangeMsecTimeout = 1000
OfflineSemaphoreTimeout = 50
TriggeringServiceName = MARTe.ExternalTimeTriggeringService
SafetyMsecSleep = 1
+DDB = {
Class = DDB
}
+Timer = {
Class = IOGAMs::TimeInputGAM
TriggeringServiceName = ExternalTimeTriggeringService
BoardName = TimerBoard
Signals = {
counter = {
SignalName = packetNumber
SignalType = int32
}
time = {
SignalName = usecTime
SignalType = int32
}
}
}
+InputData = {
Class = IOGAMs::InputGAM
BoardName = FileReader
UsecTimeSignalName = usecTime
Signals = {
/*+input_data = {
SignalName = input_data[47608990]
SignalType = uint32
}*/
+input_data = {
SignalName = input_data[40000000]
SignalType = uint32
}
}
}
+Statistic = {
Class = WebStatisticGAM
Verbose = True
FrequencyOfVerbose = 2000000
Signals = {
SignalU = {
SignalName = usecTime
SignalType = int32
}
CycleTime = {
SignalName = CycleUsecTime
SignalType = float
}
TimerRelativeTime = {
SignalName = TimerRelativeUsecTime
SignalType = float
}
InputDataRelativeTime = {
SignalName = InputDataRelativeUsecTime
SignalType = float
}
SINE1 = {
SignalName = "input_data(0:5)"
SignalType = uint32
}
}
}
+Collection = {
Class = CollectionGAMs::DataCollectionGAM
UsecTimeSignalName = usecTime
PreTrigger = 200
EventTrigger = {
MaxFastAcquisitionPoints = 800
PointsForSingleFastAcquisition = 400
TimeWindow0 = {
NOfSamples = 80000
UsecPeriod = 1000
}
}
NOfAcquisitionSamples = 80000
Signals = {
CLOCK = {
SignalName = usecTime
JPFName = "TIME"
SignalType = int32
Cal0 = 0.0
Cal1 = 1.000000e-06
}
CycleTime = {
SignalName = CycleUsecTime
JPFName = "CycleTime"
SignalType = float
}
SignalTime = {
SignalName = TimerRelativeUsecTime
JPFName = "TimerRelativeUsecTime"
SignalType = float
}
SINE1 = {
SignalName = "input_data(0:5)"
JPFName = "input_data"
SignalType = uint32
}
}
}
/*
Online = "Timer InputData"
Offline = "Timer InputData"
*/
Online = "Timer InputData Statistic Collection"
Offline = "Timer InputData Statistic"
}
}
ReloadAll = 0

View File

@@ -0,0 +1,79 @@
#############################################################
#
# Copyright 2011 EFDA | European Fusion Development Agreement
#
# Licensed under the EUPL, Version 1.1 or - as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://ec.europa.eu/idabc/eupl
#
# Unless required by applicable law or agreed to in
# writing, software distributed under the Licence is
# distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied.
# See the Licence for the specific language governing
# permissions and limitations under the Licence.
#
# $Id$
#
#############################################################
#Start-up script for the MARTe example
#!/bin/sh
if [ -z "$1" ]; then
echo "Please specify the location of the configuration file"
exit
else
echo "Going to start MARTe with the configuration specified in: " $1
fi
target=`uname`
case ${target} in
Darwin)
TARGET=macosx
;;
SunOS)
TARGET=solaris
;;
*)
TARGET=linux
;;
esac
echo "Target is $TARGET"
CODE_DIRECTORY=/opt/MARTe
LD_LIBRARY_PATH=.:$CODE_DIRECTORY/BaseLib2/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/MARTe/MARTeSupportLib/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/GAMs/DataCollectionGAM/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/GAMs/WebStatisticGAM/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/IOGAMs/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/IOGAMs/LinuxTimer/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/IOGAMs/GenericTimerDriver/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/Interfaces/HTTP/CFGUploader/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/Interfaces/HTTP/CFGUploader/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/Interfaces/HTTP/SignalHandler/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/Interfaces/HTTP/MATLABHandler/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CODE_DIRECTORY/Interfaces/HTTP/FlotPlot/${TARGET}/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./${TARGET}/
if [ ${TARGET} == "macosx" ]; then
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$LD_LIBRARY_PATH
echo $DYLD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
fi
$CODE_DIRECTORY/MARTe/${TARGET}/MARTe.ex $1
#cgdb --args $CODE_DIRECTORY/MARTe/${TARGET}/MARTe.ex $1

View File

@@ -0,0 +1,57 @@
#############################################################
#
# Copyright 2011 EFDA | European Fusion Development Agreement
#
# Licensed under the EUPL, Version 1.1 or - as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://ec.europa.eu/idabc/eupl
#
# Unless required by applicable law or agreed to in
# writing, software distributed under the Licence is
# distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied.
# See the Licence for the specific language governing
# permissions and limitations under the Licence.
#
# $Id: Makefile.inc 3 2012-01-15 16:26:07Z aneto $
#
#############################################################
MARTEBasePath=/opt/MARTe
MAKEDEFAULTDIR=$(MARTEBasePath)/MakeDefaults
include $(MAKEDEFAULTDIR)/MakeStdLibDefs.$(TARGET)
CFLAGS+= -I.
CFLAGS+= -I$(MARTEBasePath)/
CFLAGS+= -I$(MARTEBasePath)/MARTe/MARTeSupportLib
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level0
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level1
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level2
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level3
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level4
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level5
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/Level6
CFLAGS+= -I$(MARTEBasePath)/BaseLib2/LoggerService
CFLAGS+= -std=c++0x
#CFLAGS+= -std=c++11
CFLAGS+= -O3
#CFLAGS+= -Ofast
CFLAGS+= -ffast-math
#CFLAGS+= -fpermissive
all: $(OBJS) \
$(TARGET)/BinaryFileReader$(DRVEXT)
echo $(OBJS)
include depends.$(TARGET)
include $(MAKEDEFAULTDIR)/MakeStdLibRules.$(TARGET)

View File

@@ -0,0 +1,31 @@
#############################################################
#
# Copyright 2011 EFDA | European Fusion Development Agreement
#
# Licensed under the EUPL, Version 1.1 or - as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://ec.europa.eu/idabc/eupl
#
# Unless required by applicable law or agreed to in
# writing, software distributed under the Licence is
# distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied.
# See the Licence for the specific language governing
# permissions and limitations under the Licence.
#
# $Id: Makefile.linux 3 2012-01-15 16:26:07Z aneto $
#
#############################################################
TARGET=linux
include Makefile.inc
LIBRARIES += -L$(MARTEBasePath)/BaseLib2/$(TARGET) -lBaseLib2
LIBRARIES += -L$(MARTEBasePath)/MARTe/MARTeSupportLib/$(TARGET) -lMARTeSupLib

View File

@@ -0,0 +1,31 @@
#############################################################
#
# Copyright 2011 EFDA | European Fusion Development Agreement
#
# Licensed under the EUPL, Version 1.1 or - as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://ec.europa.eu/idabc/eupl
#
# Unless required by applicable law or agreed to in
# writing, software distributed under the Licence is
# distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied.
# See the Licence for the specific language governing
# permissions and limitations under the Licence.
#
# $Id: Makefile.linux 3 2012-01-15 16:26:07Z aneto $
#
#############################################################
TARGET=solaris
include Makefile.inc
LIBRARIES += -L../../BaseLib2/$(TARGET) -lBaseLib2
LIBRARIES += -L../../MARTe/MARTeSupportLib/$(TARGET) -lMARTeSupLib

View File

@@ -0,0 +1,83 @@
linux/BinaryFileReader.o: BinaryFileReader.cpp BinaryFileReader.h \
/opt/MARTe/BaseLib2/Level0/System.h \
/opt/MARTe/BaseLib2/Level0/SystemMSC.h \
/opt/MARTe/BaseLib2/Level0/SystemLinux.h \
/opt/MARTe/BaseLib2/Level0/GenDefs.h \
/opt/MARTe/BaseLib2/Level0/SystemVX5100.h \
/opt/MARTe/BaseLib2/Level0/SystemVX5500.h \
/opt/MARTe/BaseLib2/Level0/SystemV6X5100.h \
/opt/MARTe/BaseLib2/Level0/SystemV6X5500.h \
/opt/MARTe/BaseLib2/Level0/SystemVX68k.h \
/opt/MARTe/BaseLib2/Level0/SystemRTAI.h \
/opt/MARTe/BaseLib2/Level0/SystemSolaris.h \
/opt/MARTe/BaseLib2/Level0/SystemMacOSX.h \
/opt/MARTe/BaseLib2/Level0/Memory.h /opt/MARTe/BaseLib2/Level0/System.h \
/opt/MARTe/MARTe/MARTeSupportLib/GenericAcqModule.h \
/opt/MARTe/BaseLib2/Level1/GCNamedObject.h \
/opt/MARTe/BaseLib2/Level1/GarbageCollectable.h \
/opt/MARTe/BaseLib2/Level1/Object.h \
/opt/MARTe/BaseLib2/Level1/ObjectRegistryItem.h \
/opt/MARTe/BaseLib2/Level0/LinkedListable.h \
/opt/MARTe/BaseLib2/Level0/Iterators.h \
/opt/MARTe/BaseLib2/Level1/ErrorSystemInstructions.h \
/opt/MARTe/BaseLib2/Level0/GenDefs.h \
/opt/MARTe/BaseLib2/Level0/LinkedListHolder.h \
/opt/MARTe/BaseLib2/Level0/LinkedListable.h \
/opt/MARTe/BaseLib2/Level0/FastPollingMutexSem.h \
/opt/MARTe/BaseLib2/Level0/Atomic.h /opt/MARTe/BaseLib2/Level0/Sleep.h \
/opt/MARTe/BaseLib2/Level0/FastMath.h /opt/MARTe/BaseLib2/Level0/HRT.h \
/opt/MARTe/BaseLib2/Level0/Processor.h \
/opt/MARTe/BaseLib2/Level0/TimeoutType.h \
/opt/MARTe/BaseLib2/Level0/Threads.h \
/opt/MARTe/BaseLib2/Level0/ErrorManagement.h \
/opt/MARTe/BaseLib2/Level0/ExceptionHandlerDefinitions.h \
/opt/MARTe/BaseLib2/Level0/ThreadInitialisationInterface.h \
/opt/MARTe/BaseLib2/Level0/EventSem.h \
/opt/MARTe/BaseLib2/Level0/SemCore.h \
/opt/MARTe/BaseLib2/Level0/ProcessorType.h \
/opt/MARTe/BaseLib2/Level0/ThreadsDatabase.h \
/opt/MARTe/BaseLib2/Level1/ErrorSystemInstructionItem.h \
/opt/MARTe/BaseLib2/Level1/ClassStructure.h \
/opt/MARTe/BaseLib2/Level1/ClassStructureEntry.h \
/opt/MARTe/BaseLib2/Level1/BasicTypes.h \
/opt/MARTe/BaseLib2/Level0/BString.h \
/opt/MARTe/BaseLib2/Level0/ErrorManagement.h \
/opt/MARTe/BaseLib2/Level0/LoadableLibrary.h \
/opt/MARTe/BaseLib2/Level0/StreamInterface.h \
/opt/MARTe/BaseLib2/Level1/ObjectMacros.h \
/opt/MARTe/MARTe/MARTeSupportLib/TimeTriggeringServiceInterface.h \
/opt/MARTe/BaseLib2/Level1/GCRTemplate.h \
/opt/MARTe/BaseLib2/Level1/GCReference.h \
/opt/MARTe/BaseLib2/Level0/Atomic.h \
/opt/MARTe/BaseLib2/Level1/ObjectRegistryDataBase.h \
/opt/MARTe/BaseLib2/Level1/GCReferenceContainer.h \
/opt/MARTe/BaseLib2/Level1/GCRTemplate.h \
/opt/MARTe/BaseLib2/Level1/GCNamedObject.h \
/opt/MARTe/BaseLib2/Level0/MutexSem.h \
/opt/MARTe/BaseLib2/Level1/GCRCItem.h \
/opt/MARTe/BaseLib2/Level1/GCNOExtender.h \
/opt/MARTe/MARTe/MARTeSupportLib/TimeServiceActivity.h \
/opt/MARTe/BaseLib2/Level1/ConfigurationDataBase.h \
/opt/MARTe/BaseLib2/Level1/CDBVirtual.h \
/opt/MARTe/BaseLib2/Level1/CDBTypes.h \
/opt/MARTe/BaseLib2/Level0/Iterators.h \
/opt/MARTe/BaseLib2/Level1/CDBNull.h /opt/MARTe/BaseLib2/Level0/HRT.h \
/opt/MARTe/BaseLib2/Level4/HttpInterface.h \
/opt/MARTe/BaseLib2/Level4/HttpRealm.h \
/opt/MARTe/BaseLib2/Level4/HttpDefinitions.h \
/opt/MARTe/BaseLib2/Level2/CDBExtended.h \
/opt/MARTe/BaseLib2/Level2/CDBDataTypes.h \
/opt/MARTe/BaseLib2/Level1/CDBTypes.h \
/opt/MARTe/BaseLib2/Level2/Streamable.h \
/opt/MARTe/BaseLib2/Level0/CStream.h \
/opt/MARTe/BaseLib2/Level2/CStreamBuffering.h \
/opt/MARTe/BaseLib2/Level1/Object.h \
/opt/MARTe/BaseLib2/Level1/StreamAttributes.h \
/opt/MARTe/BaseLib2/Level2/FString.h \
/opt/MARTe/BaseLib2/Level4/HttpStream.h \
/opt/MARTe/BaseLib2/Level3/StreamConfigurationDataBase.h \
/opt/MARTe/BaseLib2/Level2/FString.h \
/opt/MARTe/BaseLib2/Level0/EventSem.h /opt/MARTe/BaseLib2/Level2/File.h \
/opt/MARTe/BaseLib2/Level0/BasicFile.h \
/opt/MARTe/BaseLib2/Level1/GlobalObjectDataBase.h \
/opt/MARTe/BaseLib2/Level1/GCReferenceContainer.h

View File

@@ -0,0 +1,83 @@
BinaryFileReader.o: BinaryFileReader.cpp BinaryFileReader.h \
/opt/MARTe/BaseLib2/Level0/System.h \
/opt/MARTe/BaseLib2/Level0/SystemMSC.h \
/opt/MARTe/BaseLib2/Level0/SystemLinux.h \
/opt/MARTe/BaseLib2/Level0/GenDefs.h \
/opt/MARTe/BaseLib2/Level0/SystemVX5100.h \
/opt/MARTe/BaseLib2/Level0/SystemVX5500.h \
/opt/MARTe/BaseLib2/Level0/SystemV6X5100.h \
/opt/MARTe/BaseLib2/Level0/SystemV6X5500.h \
/opt/MARTe/BaseLib2/Level0/SystemVX68k.h \
/opt/MARTe/BaseLib2/Level0/SystemRTAI.h \
/opt/MARTe/BaseLib2/Level0/SystemSolaris.h \
/opt/MARTe/BaseLib2/Level0/SystemMacOSX.h \
/opt/MARTe/BaseLib2/Level0/Memory.h /opt/MARTe/BaseLib2/Level0/System.h \
/opt/MARTe/MARTe/MARTeSupportLib/GenericAcqModule.h \
/opt/MARTe/BaseLib2/Level1/GCNamedObject.h \
/opt/MARTe/BaseLib2/Level1/GarbageCollectable.h \
/opt/MARTe/BaseLib2/Level1/Object.h \
/opt/MARTe/BaseLib2/Level1/ObjectRegistryItem.h \
/opt/MARTe/BaseLib2/Level0/LinkedListable.h \
/opt/MARTe/BaseLib2/Level0/Iterators.h \
/opt/MARTe/BaseLib2/Level1/ErrorSystemInstructions.h \
/opt/MARTe/BaseLib2/Level0/GenDefs.h \
/opt/MARTe/BaseLib2/Level0/LinkedListHolder.h \
/opt/MARTe/BaseLib2/Level0/LinkedListable.h \
/opt/MARTe/BaseLib2/Level0/FastPollingMutexSem.h \
/opt/MARTe/BaseLib2/Level0/Atomic.h /opt/MARTe/BaseLib2/Level0/Sleep.h \
/opt/MARTe/BaseLib2/Level0/FastMath.h /opt/MARTe/BaseLib2/Level0/HRT.h \
/opt/MARTe/BaseLib2/Level0/Processor.h \
/opt/MARTe/BaseLib2/Level0/TimeoutType.h \
/opt/MARTe/BaseLib2/Level0/Threads.h \
/opt/MARTe/BaseLib2/Level0/ErrorManagement.h \
/opt/MARTe/BaseLib2/Level0/ExceptionHandlerDefinitions.h \
/opt/MARTe/BaseLib2/Level0/ThreadInitialisationInterface.h \
/opt/MARTe/BaseLib2/Level0/EventSem.h \
/opt/MARTe/BaseLib2/Level0/SemCore.h \
/opt/MARTe/BaseLib2/Level0/ProcessorType.h \
/opt/MARTe/BaseLib2/Level0/ThreadsDatabase.h \
/opt/MARTe/BaseLib2/Level1/ErrorSystemInstructionItem.h \
/opt/MARTe/BaseLib2/Level1/ClassStructure.h \
/opt/MARTe/BaseLib2/Level1/ClassStructureEntry.h \
/opt/MARTe/BaseLib2/Level1/BasicTypes.h \
/opt/MARTe/BaseLib2/Level0/BString.h \
/opt/MARTe/BaseLib2/Level0/ErrorManagement.h \
/opt/MARTe/BaseLib2/Level0/LoadableLibrary.h \
/opt/MARTe/BaseLib2/Level0/StreamInterface.h \
/opt/MARTe/BaseLib2/Level1/ObjectMacros.h \
/opt/MARTe/MARTe/MARTeSupportLib/TimeTriggeringServiceInterface.h \
/opt/MARTe/BaseLib2/Level1/GCRTemplate.h \
/opt/MARTe/BaseLib2/Level1/GCReference.h \
/opt/MARTe/BaseLib2/Level0/Atomic.h \
/opt/MARTe/BaseLib2/Level1/ObjectRegistryDataBase.h \
/opt/MARTe/BaseLib2/Level1/GCReferenceContainer.h \
/opt/MARTe/BaseLib2/Level1/GCRTemplate.h \
/opt/MARTe/BaseLib2/Level1/GCNamedObject.h \
/opt/MARTe/BaseLib2/Level0/MutexSem.h \
/opt/MARTe/BaseLib2/Level1/GCRCItem.h \
/opt/MARTe/BaseLib2/Level1/GCNOExtender.h \
/opt/MARTe/MARTe/MARTeSupportLib/TimeServiceActivity.h \
/opt/MARTe/BaseLib2/Level1/ConfigurationDataBase.h \
/opt/MARTe/BaseLib2/Level1/CDBVirtual.h \
/opt/MARTe/BaseLib2/Level1/CDBTypes.h \
/opt/MARTe/BaseLib2/Level0/Iterators.h \
/opt/MARTe/BaseLib2/Level1/CDBNull.h /opt/MARTe/BaseLib2/Level0/HRT.h \
/opt/MARTe/BaseLib2/Level4/HttpInterface.h \
/opt/MARTe/BaseLib2/Level4/HttpRealm.h \
/opt/MARTe/BaseLib2/Level4/HttpDefinitions.h \
/opt/MARTe/BaseLib2/Level2/CDBExtended.h \
/opt/MARTe/BaseLib2/Level2/CDBDataTypes.h \
/opt/MARTe/BaseLib2/Level1/CDBTypes.h \
/opt/MARTe/BaseLib2/Level2/Streamable.h \
/opt/MARTe/BaseLib2/Level0/CStream.h \
/opt/MARTe/BaseLib2/Level2/CStreamBuffering.h \
/opt/MARTe/BaseLib2/Level1/Object.h \
/opt/MARTe/BaseLib2/Level1/StreamAttributes.h \
/opt/MARTe/BaseLib2/Level2/FString.h \
/opt/MARTe/BaseLib2/Level4/HttpStream.h \
/opt/MARTe/BaseLib2/Level3/StreamConfigurationDataBase.h \
/opt/MARTe/BaseLib2/Level2/FString.h \
/opt/MARTe/BaseLib2/Level0/EventSem.h /opt/MARTe/BaseLib2/Level2/File.h \
/opt/MARTe/BaseLib2/Level0/BasicFile.h \
/opt/MARTe/BaseLib2/Level1/GlobalObjectDataBase.h \
/opt/MARTe/BaseLib2/Level1/GCReferenceContainer.h