Commit b63f2205 authored by Andrea Bulgarelli's avatar Andrea Bulgarelli
Browse files

comments reformatting

parent 9ac47da1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/***************************************************************************
                          ByteStream.h  
                             -------------------
    begin                : Thu Nov 29 2001
    copyright            : (C) 2001 by Andrea Bulgarelli
    email                : bulgarelli@bo.iasf.cnr.it
    copyright            : (C) 2001, 2013 by Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
+7 −19
Original line number Diff line number Diff line
/***************************************************************************
                          ConfigurationFile.h  -  description
                          ConfigurationFile.h
                             -------------------
    begin                : Thu Nov 29 2001
    copyright            : (C) 2001 by Andrea Bulgarelli
    email                : bulgarelli@bo.iasf.cnr.it
    copyright            : (C) 2001, 2013 by Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
@@ -15,8 +15,8 @@
 *                                                                         *
 ***************************************************************************/

#ifndef CONFIGURATIONFILE_H
#define CONFIGURATIONFILE_H
#ifndef _CONFIGURATIONFILE_H
#define _CONFIGURATIONFILE_H

#include "PacketExceptionIO.h"
#include "InputTextFile.h"
@@ -24,38 +24,26 @@
namespace PacketLib
{

//##ModelId=3EADC12201A5
//##Documentation
//##	$Date: 2012/06/08 15:14:29 $
//##	$Header: /home/repository/cvs/gtb/PacketLib/include/ConfigurationFile.h,v 1.3 2012/06/08 15:14:29 bulgarelli Exp $
//##	$Id: ConfigurationFile.h,v 1.3 2012/06/08 15:14:29 bulgarelli Exp $
//##	$Revision: 1.3 $
//##	\brief This class represent the text file which contains the configurations

///	\brief This class represent the text file which contains the configurations
class ConfigurationFile : public InputTextFile
{
public:

    //##ModelId=3EADC12701F1
    ConfigurationFile();

    //##ModelId=3EADC12701F4
    ~ConfigurationFile();

    //##ModelId=3EADC12701F5
    virtual bool open(char** parameters) throw(PacketExceptionIO*);

    //##ModelId=3EADC12701F8
    virtual char* getLine() throw(PacketExceptionIO*);

    //##ModelId=3EADC12701FB
    virtual char* getLine(const char* s) throw(PacketExceptionIO*);

    //##ModelId=3EADC12701FE
    virtual void close() throw(PacketExceptionIO*);

private:

    //##ModelId=3EADC12701EF
    char* currentpwd;

};
+7 −12
Original line number Diff line number Diff line
/***************************************************************************
                          DataFieldHeader.h  -  description
                          DataFieldHeader.h
                             -------------------
    begin                : Thu Nov 29 2001
    copyright            : (C) 2001 by Andrea Bulgarelli
    email                : bulgarelli@bo.iasf.cnr.it
    copyright            : (C) 2001, 2013 by Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
@@ -14,8 +14,9 @@
 *   For commercial purpose see appropriate license terms                  *
 *                                                                         *
 ***************************************************************************/
#ifndef DataFieldHeader_h_h
#define DataFieldHeader_h_h

#ifndef _DATAFIELDHEADER_H
#define _DATAFIELDHEADER_H

#include "PacketLibDefinition.h"
#include "PartOfPacket.h"
@@ -23,13 +24,7 @@
namespace PacketLib
{

//##ModelId=3C0F6C1902E3
//##Documentation
//##	$Date: 2005/03/09 10:57:50 $
//##	$Header: /home/repository/cvs/gtb/PacketLib/include/DataFieldHeader.h,v 1.3 2005/03/09 10:57:50 bulgarelli Exp $
//##	$Id: DataFieldHeader.h,v 1.3 2005/03/09 10:57:50 bulgarelli Exp $
//##	$Revision: 1.3 $
//##	\brief This class represent the data field header of a packet
///	\brief This class represent the data field header of a packet
class DataFieldHeader : public PartOfPacket
{
public:
+12 −31
Original line number Diff line number Diff line
/***************************************************************************
                          Device.h  -  description
                          Device.h
                             -------------------
    begin                : Mon Mar 4 2002
    copyright            : (C) 2002 by Andrea Bulgarelli
    email                : bulgarelli@bo.iasf.cnr.it
    copyright            : (C) 2002, 2013 by Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
@@ -15,58 +15,39 @@
 *                                                                         *
 ***************************************************************************/

#ifndef DEVICE_H
#define DEVICE_H
#ifndef _DEVICE_H
#define _DEVICE_H

namespace PacketLib
{
//##ModelId=3C87743F01CC
//##Documentation
//##	$Date: 2005/03/09 10:57:50 $
//##	$Header: /home/repository/cvs/gtb/PacketLib/include/Device.h,v 1.2 2005/03/09 10:57:50 bulgarelli Exp $
//##	$Id: Device.h,v 1.2 2005/03/09 10:57:50 bulgarelli Exp $
//##	$Revision: 1.2 $
//##	\brief This class represent a Device for IO system.
///	\brief This class represent a Device for IO system.
class Device
{
public:
    //##ModelId=3C87744002A0
    Device(bool bigendian);

    //##ModelId=3C87744002A2
     virtual bool isClosed() const;

    //##ModelId=3C87744002AB
    virtual bool isEOF() const;
    //##ModelId=3ACCD75E02EE
    //##Documentation
    //## Write property of bool endsession.
    /// Write property of bool endsession.
    virtual void setEndSession( const bool& _newVal);

    //##ModelId=3ACCD75E031C
    //##Documentation
    //## Read property of bool endsession.
    /// Read property of bool endsession.
    virtual const bool& getEndSession() const;

    //##ModelId=3EADC1270262
    virtual bool isBigEndian() const;

protected:

    //##ModelId=3C8774400282
    bool eof;

    //##ModelId=3C8774400296
    bool closed;

    //##ModelId=3C8774400297
    bool bigendian;

    //##ModelId=3ACCD75E0242
    //##Documentation
    //## This variable indicates when a measurement session is terminated
    //## The device class have this attribute because this information is passed
    //## with the device.
    /// This variable indicates when a measurement session is terminated
    /// The device class have this attribute because this information is passed
    /// with the device.
    bool endsession;
};
}
+19 −18
Original line number Diff line number Diff line
/***************************************************************************
                          Field.h  -  description
                          Field.h   
                             -------------------
    begin                : Thu Nov 29 2001
    copyright            : (C) 2001 by Andrea Bulgarelli
    email                : bulgarelli@bo.iasf.cnr.it
    copyright            : (C) 2001, 2013 by Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
@@ -14,8 +14,9 @@
 *   For commercial purpose see appropriate license terms                  *
 *                                                                         *
 ***************************************************************************/
#ifndef Field_h_h
#define Field_h_h

#ifndef _FIELD_H_H
#define _FIELD_H_H

#include "PacketLibDefinition.h"

@@ -28,54 +29,54 @@ class FieldType

public:

    //Dimension of field in bit.
    /// Dimension of field in bit.
    word dimension;

    //It indicates that there's a predefined value for this field.
    /// It indicates that there's a predefined value for this field.
    bool thereIsPredefinedValue;

    //Predefined value of field (for the generation of packet).
    /// Predefined value of field (for the generation of packet).
    int predefinedValue;

    //Name of the field.
    /// Name of the field.
    char* name;
};



//A single field of a telemetry packet
/// A single field of a telemetry packet
class Field
{
public:

    //Constructor of class.
    /// Constructor of class.
    Field(char* name, char* dimension, char* predefinedValue, int progressiv);

    //Destructor of class.
    /// Destructor of class.
    ~Field();

    //Value reads from stream of byte (from packet).
    /// Value reads from stream of byte (from packet).
    word value;

    //Dimension of field in bit.
    /// Dimension of field in bit.
    inline dword getDimension()
    {
        return type->dimension;
    };

    //It indicates that there's a predefined value for this field.
    /// It indicates that there's a predefined value for this field.
    inline bool thereIsPredefinedValue()
    {
        return type->thereIsPredefinedValue;
    };

    //Predefined value of field (for the generation of packet).
    /// Predefined value of field (for the generation of packet).
    inline int getPredefinedValue()
    {
        return type->predefinedValue;
    };

    //Name of the field.
    /// Name of the field.
    inline char* getName()
    {
        return type->name;
@@ -88,7 +89,7 @@ public:

protected:

    //Index of packet in the list of packet.
    /// Index of packet in the list of packet.
    int progressiv;

    FieldType * type;
Loading