Loading Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ CC = gcc CXX = g++ #Insert the optional parameter to the compiler. The CFLAGS could be changed externally by the user #- g3 CFLAGS = -O2 -O0 -g3 -m64 -fPIC CFLAGS = -O2 -O0 -m64 -fPIC #-O2 -O0 -g3 #Set INCPATH to add the inclusion paths INCPATH = -I ./include Loading include/Field.h +62 −45 Original line number Diff line number Diff line Loading @@ -19,10 +19,12 @@ #include "PacketLibDefinition.h" namespace PacketLib { namespace PacketLib { class FieldType { class FieldType { public: Loading Loading @@ -56,18 +58,33 @@ class Field word value; //Dimension of field in bit. inline dword getDimension() { return type->dimension; }; inline dword getDimension() { return type->dimension; }; //It indicates that there's a predefined value for this field. inline bool thereIsPredefinedValue() { return type->thereIsPredefinedValue; }; inline bool thereIsPredefinedValue() { return type->thereIsPredefinedValue; }; //Predefined value of field (for the generation of packet). inline int getPredefinedValue() { return type->predefinedValue; }; inline int getPredefinedValue() { return type->predefinedValue; }; //Name of the field. inline char* getName() { return type->name; }; inline char* getName() { return type->name; }; inline int getProgressiv() { return progressiv; }; inline int getProgressiv() { return progressiv; }; protected: Loading include/File.h +7 −7 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class File : public Device //## Reads a pair number of byte from opened file and manages the big or little endian //## format. If the format of machine is little endian, a pair of byte is swapped. //## \pre The file must be opened. virtual ByteStream* getNByte( int N = 1 ); virtual ByteStream* getNByte( dword N = 1 ); //##ModelId=3C0F6C1A001B //##Documentation Loading @@ -96,12 +96,12 @@ class File : public Device //##ModelId=3C205AF20278 //## Sets the position into file. //## \pre The file must be opened. virtual long setpos(long offset) throw(PacketExceptionIO*); virtual dword setpos(dword offset) throw(PacketExceptionIO*); //##ModelId=3C205AF202C3 //## Gets the current file position. //## \pre The file must be opened. virtual long getpos(); virtual dword getpos(); //##ModelId=3C205AF20313 //##Documentation Loading Loading @@ -149,10 +149,10 @@ class File : public Device long getNumberOfStringLines(); //##ModelId=3EADC12702C9 static unsigned long byte_read; static dword byte_read; //##ModelId=3EADC1270363 static unsigned long char_read; static dword char_read; protected: Loading @@ -163,10 +163,10 @@ class File : public Device FILE* fp; //##ModelId=3C187750023E long bookmarkPos; dword bookmarkPos; //##ModelId=3C51324900FB long startPosition; dword startPosition; //##ModelId=3C5132490213 char* filename; Loading include/Input.h +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class Input virtual bool open( char** parameters ) throw(PacketExceptionIO*) = 0; //##ModelId=3EADC128033E virtual ByteStream* readByteStream(int n_byte) throw(PacketExceptionIO*) = 0; virtual ByteStream* readByteStream(dword n_byte) throw(PacketExceptionIO*) = 0; //##ModelId=3EADC1280341 virtual char* readString() throw(PacketExceptionIO*) = 0; Loading include/InputFile.h +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class InputFile : public Input virtual void close() throw(PacketExceptionIO*); //##ModelId=3EADC1280371 virtual ByteStream* readByteStream(int n_byte) throw(PacketExceptionIO*); virtual ByteStream* readByteStream(dword n_byte) throw(PacketExceptionIO*); //##ModelId=3EADC1280377 virtual char* readString() throw(PacketExceptionIO*); Loading Loading
Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ CC = gcc CXX = g++ #Insert the optional parameter to the compiler. The CFLAGS could be changed externally by the user #- g3 CFLAGS = -O2 -O0 -g3 -m64 -fPIC CFLAGS = -O2 -O0 -m64 -fPIC #-O2 -O0 -g3 #Set INCPATH to add the inclusion paths INCPATH = -I ./include Loading
include/Field.h +62 −45 Original line number Diff line number Diff line Loading @@ -19,10 +19,12 @@ #include "PacketLibDefinition.h" namespace PacketLib { namespace PacketLib { class FieldType { class FieldType { public: Loading Loading @@ -56,18 +58,33 @@ class Field word value; //Dimension of field in bit. inline dword getDimension() { return type->dimension; }; inline dword getDimension() { return type->dimension; }; //It indicates that there's a predefined value for this field. inline bool thereIsPredefinedValue() { return type->thereIsPredefinedValue; }; inline bool thereIsPredefinedValue() { return type->thereIsPredefinedValue; }; //Predefined value of field (for the generation of packet). inline int getPredefinedValue() { return type->predefinedValue; }; inline int getPredefinedValue() { return type->predefinedValue; }; //Name of the field. inline char* getName() { return type->name; }; inline char* getName() { return type->name; }; inline int getProgressiv() { return progressiv; }; inline int getProgressiv() { return progressiv; }; protected: Loading
include/File.h +7 −7 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class File : public Device //## Reads a pair number of byte from opened file and manages the big or little endian //## format. If the format of machine is little endian, a pair of byte is swapped. //## \pre The file must be opened. virtual ByteStream* getNByte( int N = 1 ); virtual ByteStream* getNByte( dword N = 1 ); //##ModelId=3C0F6C1A001B //##Documentation Loading @@ -96,12 +96,12 @@ class File : public Device //##ModelId=3C205AF20278 //## Sets the position into file. //## \pre The file must be opened. virtual long setpos(long offset) throw(PacketExceptionIO*); virtual dword setpos(dword offset) throw(PacketExceptionIO*); //##ModelId=3C205AF202C3 //## Gets the current file position. //## \pre The file must be opened. virtual long getpos(); virtual dword getpos(); //##ModelId=3C205AF20313 //##Documentation Loading Loading @@ -149,10 +149,10 @@ class File : public Device long getNumberOfStringLines(); //##ModelId=3EADC12702C9 static unsigned long byte_read; static dword byte_read; //##ModelId=3EADC1270363 static unsigned long char_read; static dword char_read; protected: Loading @@ -163,10 +163,10 @@ class File : public Device FILE* fp; //##ModelId=3C187750023E long bookmarkPos; dword bookmarkPos; //##ModelId=3C51324900FB long startPosition; dword startPosition; //##ModelId=3C5132490213 char* filename; Loading
include/Input.h +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class Input virtual bool open( char** parameters ) throw(PacketExceptionIO*) = 0; //##ModelId=3EADC128033E virtual ByteStream* readByteStream(int n_byte) throw(PacketExceptionIO*) = 0; virtual ByteStream* readByteStream(dword n_byte) throw(PacketExceptionIO*) = 0; //##ModelId=3EADC1280341 virtual char* readString() throw(PacketExceptionIO*) = 0; Loading
include/InputFile.h +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class InputFile : public Input virtual void close() throw(PacketExceptionIO*); //##ModelId=3EADC1280371 virtual ByteStream* readByteStream(int n_byte) throw(PacketExceptionIO*); virtual ByteStream* readByteStream(dword n_byte) throw(PacketExceptionIO*); //##ModelId=3EADC1280377 virtual char* readString() throw(PacketExceptionIO*); Loading