Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ChannelsReports.cpp File Reference
Include dependency graph for ChannelsReports.cpp:

Classes

class  CPrvDrawMimic
 
struct  DrawTrendCurves::SPrvDataPanelTimeLogger
 
class  DrawTrendCurves::CPrvDrawAllCurves
 
class  DrawTrendCurves::CPrvDrawLegend
 

Namespaces

namespace  DrawTrendCurves
 

Functions

static std::string prvGetProjectFolder ()
 
static void prvAddInfoProjectDiamar (CEntTable *tableInfoProject)
 
static void prvAddInfoProjectShipInfo (CEntTable *tableInfoProject)
 
static void prvProjectInfo (const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode)
 
static void prvAcronymsListHeaders (CEntTable *table, const std::string &textDescription)
 
static void prvUnitTableHeadersForByUnitReport (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const bool isAnalog)
 
static void prvUnitTableHeadersForByMimicReport (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const bool isAnalog)
 
static void prvAddCellChannel (CEntTable *table, CCell *cell, const uint64_t indRow, uint64_t *indColumn, const iv::eFontAlignment fontAlignment)
 
static void prvBasicChannelInfo (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAreaParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAlarmParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAlarmGroupParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvModbusParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAnalogLimitsAlarmParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAnalogSensorRangeParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAnalogMeasurementUnit (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvDigitalAlarmLimitParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAnalogChannel (CEntTable *tableAnalog, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, uint64_t *indRow)
 
static void prvDigitalChannel (CEntTable *tableDigital, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, uint64_t *indRow)
 
static void prvMimicBasicParameters (CEntTable *table, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const std::string &controlTypeName, const uint64_t indRow, uint64_t &indColumn)
 
static void prvAnalogChannelByMimic (CEntTable *tableAnalog, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const std::string &controlTypeName, uint64_t *indRow)
 
static void prvDigitalChannelByMimic (CEntTable *tableDigital, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const std::string &controlTypeName, uint64_t *indRow)
 
static void prvUnitChannelsTable (CEntTable *tableAnalog, CEntTable *tableDigital, const std::shared_ptr< iv::units::Unit > &unit, const iv::AttributesForReportsChannels attributesForReportsChannels)
 
static void prvMimicsChannelsTable (CEntTable *tableAnalog, CEntTable *tableDigital, const std::vector< std::pair< std::string, std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > > > &mimicElementsNamesChannels, const iv::AttributesForReportsChannels attributesForReportsChannels)
 
static CEntTableprvAcronymsListAnalog (const iv::AttributesForReportsChannels &attributesForReportsChannels)
 
static CEntTableprvAcronymsListDigital (const iv::AttributesForReportsChannels &attributesForReportsChannels)
 
static CEntTableprvAcronymsListArea ()
 
static CEntTableprvAcronymsListChannelsType ()
 
static CEntTableprvAcronymsListAnalogChannelsType ()
 
static CEntTableprvAcronymsListSerialLineCodification ()
 
static void prvAcronymsList (const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode, const iv::AttributesForReportsChannels &attributesForReportsChannels)
 
static void prvChannelsListByUnit (const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode, const iv::AttributesForReportsChannels attributesForReportsChannels)
 
static void prvGetSizeMimicPrint (const uint8_t size, const iv::model::diamar::eMimicAspectRatio typeScreenResolution, double *sizeX, double *sizeY)
 
static std::vector< std::shared_ptr< CTendencyCurve > > DrawTrendCurves::getAllCurves (const std::shared_ptr< SPrvDataPanelTimeLogger > &dataPanelTimeLogger)
 
static void prvDrawChannelsTrendCurvesInReport (const std::set< iv::types::channelId > &channelsIds, const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *fatherLevel1, const iv::time::Timestamp &timestampReference, const iv::types::timestamp incrTime)
 
static void prvDrawMimicInReport (const std::shared_ptr< iv::diamar::Mimic > &mimic, const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *fatherLevel1, const uint8_t size)
 
static void prvProcessChannelsMimics (const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode, const std::vector< std::pair< std::string, std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > > > &mimicElementsNamesChannels, const iv::AttributesForReportsChannels attributesForReportsChannels, const std::shared_ptr< iv::diamar::Mimic > &mimic, const eMimicReportType type)
 
static void prvChannelsListByMimic (const CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode, const iv::AttributesForReportsChannels attributesForReportsChannels, eMimicReportType type)
 
static void prvDrawingPerUnit (CDocumentPrinter *documentPrinterRef, CTreeObjectsNode< IEntPrinter * > *documentNode)
 
static std::string prvGenerateDrawingsPerUnitName ()
 
void prvTableHeadersForHistoryReport (CEntTable *table)
 
void prvTableForHistoryReport (CEntTable *table, const std::vector< iv::alarms::Event > &history)
 
void prvFilterHistoryReport (CDocumentPrinter *documentPrinter, CTreeObjectsNode< IEntPrinter * > *bodyDocumentRoot, iv::alarms::FilterHistory &filterHistory)
 
void prvEventListForHistory (CDocumentPrinter *documentPrinter, CTreeObjectsNode< IEntPrinter * > *bodyDocumentRoot, const std::vector< iv::alarms::Event > &history, iv::alarms::FilterHistory &filterHistory)
 

Variables

static constexpr uint32_t PRV_COLOR_BACKGROUND_TABLE = 0xE2E7FF
 
static constexpr double DrawTrendCurves::PRV_X_MIN_VIEW_TENDENCY_CURVE = 0.
 
static constexpr double DrawTrendCurves::PRV_Y_MIN_VIEW_TENDENCY_CURVE = 0.
 
static constexpr double DrawTrendCurves::PRV_X_MAX_VIEW_TENDENCY_CURVE = 20'000.
 
static constexpr double DrawTrendCurves::PRV_Y_MAX_VIEW_TENDENCY_CURVE = 10'000.
 
static constexpr uint64_t DrawTrendCurves::PRV_CURVE_RESOLUTION {500 * iv::constants::time::MillisecondsInSeconds}
 

Function Documentation

◆ prvAcronymsList()

static void prvAcronymsList ( const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode,
const iv::AttributesForReportsChannels & attributesForReportsChannels )
static

◆ prvAcronymsListAnalog()

static CEntTable * prvAcronymsListAnalog ( const iv::AttributesForReportsChannels & attributesForReportsChannels)
static

◆ prvAcronymsListAnalogChannelsType()

static CEntTable * prvAcronymsListAnalogChannelsType ( )
static

◆ prvAcronymsListArea()

static CEntTable * prvAcronymsListArea ( )
static

◆ prvAcronymsListChannelsType()

static CEntTable * prvAcronymsListChannelsType ( )
static

◆ prvAcronymsListDigital()

static CEntTable * prvAcronymsListDigital ( const iv::AttributesForReportsChannels & attributesForReportsChannels)
static

◆ prvAcronymsListHeaders()

static void prvAcronymsListHeaders ( CEntTable * table,
const std::string & textDescription )
static

◆ prvAcronymsListSerialLineCodification()

static CEntTable * prvAcronymsListSerialLineCodification ( )
static

◆ prvAddCellChannel()

static void prvAddCellChannel ( CEntTable * table,
CCell * cell,
const uint64_t indRow,
uint64_t * indColumn,
const iv::eFontAlignment fontAlignment )
static

◆ prvAddInfoProjectDiamar()

static void prvAddInfoProjectDiamar ( CEntTable * tableInfoProject)
static

◆ prvAddInfoProjectShipInfo()

static void prvAddInfoProjectShipInfo ( CEntTable * tableInfoProject)
static

◆ prvAlarmGroupParameters()

static void prvAlarmGroupParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvAlarmParameters()

static void prvAlarmParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvAnalogChannel()

static void prvAnalogChannel ( CEntTable * tableAnalog,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
uint64_t * indRow )
static

◆ prvAnalogChannelByMimic()

static void prvAnalogChannelByMimic ( CEntTable * tableAnalog,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const std::string & controlTypeName,
uint64_t * indRow )
static

◆ prvAnalogLimitsAlarmParameters()

static void prvAnalogLimitsAlarmParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvAnalogMeasurementUnit()

static void prvAnalogMeasurementUnit ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvAnalogSensorRangeParameters()

static void prvAnalogSensorRangeParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvAreaParameters()

static void prvAreaParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvBasicChannelInfo()

static void prvBasicChannelInfo ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvChannelsListByMimic()

static void prvChannelsListByMimic ( const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode,
const iv::AttributesForReportsChannels attributesForReportsChannels,
eMimicReportType type )
static

◆ prvChannelsListByUnit()

static void prvChannelsListByUnit ( const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode,
const iv::AttributesForReportsChannels attributesForReportsChannels )
static

◆ prvDigitalAlarmLimitParameters()

static void prvDigitalAlarmLimitParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvDigitalChannel()

static void prvDigitalChannel ( CEntTable * tableDigital,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
uint64_t * indRow )
static

◆ prvDigitalChannelByMimic()

static void prvDigitalChannelByMimic ( CEntTable * tableDigital,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const std::string & controlTypeName,
uint64_t * indRow )
static

◆ prvDrawChannelsTrendCurvesInReport()

static void prvDrawChannelsTrendCurvesInReport ( const std::set< iv::types::channelId > & channelsIds,
const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * fatherLevel1,
const iv::time::Timestamp & timestampReference,
const iv::types::timestamp incrTime )
static

◆ prvDrawingPerUnit()

static void prvDrawingPerUnit ( CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode )
static

◆ prvDrawMimicInReport()

static void prvDrawMimicInReport ( const std::shared_ptr< iv::diamar::Mimic > & mimic,
const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * fatherLevel1,
const uint8_t size )
static

◆ prvEventListForHistory()

void prvEventListForHistory ( CDocumentPrinter * documentPrinter,
CTreeObjectsNode< IEntPrinter * > * bodyDocumentRoot,
const std::vector< iv::alarms::Event > & history,
iv::alarms::FilterHistory & filterHistory )

◆ prvFilterHistoryReport()

void prvFilterHistoryReport ( CDocumentPrinter * documentPrinter,
CTreeObjectsNode< IEntPrinter * > * bodyDocumentRoot,
iv::alarms::FilterHistory & filterHistory )

◆ prvGenerateDrawingsPerUnitName()

static std::string prvGenerateDrawingsPerUnitName ( )
static

◆ prvGetProjectFolder()

static std::string prvGetProjectFolder ( )
static

◆ prvGetSizeMimicPrint()

static void prvGetSizeMimicPrint ( const uint8_t size,
const iv::model::diamar::eMimicAspectRatio typeScreenResolution,
double * sizeX,
double * sizeY )
static

◆ prvMimicBasicParameters()

static void prvMimicBasicParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const std::string & controlTypeName,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvMimicsChannelsTable()

static void prvMimicsChannelsTable ( CEntTable * tableAnalog,
CEntTable * tableDigital,
const std::vector< std::pair< std::string, std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > > > & mimicElementsNamesChannels,
const iv::AttributesForReportsChannels attributesForReportsChannels )
static

◆ prvModbusParameters()

static void prvModbusParameters ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const uint64_t indRow,
uint64_t & indColumn )
static

◆ prvProcessChannelsMimics()

static void prvProcessChannelsMimics ( const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode,
const std::vector< std::pair< std::string, std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > > > & mimicElementsNamesChannels,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const std::shared_ptr< iv::diamar::Mimic > & mimic,
const eMimicReportType type )
static

◆ prvProjectInfo()

static void prvProjectInfo ( const CDocumentPrinter * documentPrinterRef,
CTreeObjectsNode< IEntPrinter * > * documentNode )
static

◆ prvTableForHistoryReport()

void prvTableForHistoryReport ( CEntTable * table,
const std::vector< iv::alarms::Event > & history )

◆ prvTableHeadersForHistoryReport()

void prvTableHeadersForHistoryReport ( CEntTable * table)

◆ prvUnitChannelsTable()

static void prvUnitChannelsTable ( CEntTable * tableAnalog,
CEntTable * tableDigital,
const std::shared_ptr< iv::units::Unit > & unit,
const iv::AttributesForReportsChannels attributesForReportsChannels )
static

◆ prvUnitTableHeadersForByMimicReport()

static void prvUnitTableHeadersForByMimicReport ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const bool isAnalog )
static

◆ prvUnitTableHeadersForByUnitReport()

static void prvUnitTableHeadersForByUnitReport ( CEntTable * table,
const iv::AttributesForReportsChannels attributesForReportsChannels,
const bool isAnalog )
static

Variable Documentation

◆ PRV_COLOR_BACKGROUND_TABLE

uint32_t PRV_COLOR_BACKGROUND_TABLE = 0xE2E7FF
staticconstexpr