truck-code
Public Member Functions | List of all members
J1939Interpreter Class Referenceabstract

#include <j1939_interpreters.h>

Inheritance diagram for J1939Interpreter:
Inheritance graph
[legend]

Public Member Functions

virtual int pgn ()
 
virtual void * convert (j1939_pdu_typ *pdu)=0
 
bool is_type (j1939_pdu_typ *pdu)
 
virtual void print (void *pdv, FILE *fp, bool numeric)=0
 
virtual void * import (vector< string > &tokens)=0
 
virtual ~J1939Interpreter ()=0
 

Detailed Description

Base interpreter for processing pdu variables into their message-specific format.

Constructor & Destructor Documentation

◆ ~J1939Interpreter()

J1939Interpreter::~J1939Interpreter ( )
pure virtual

destructor

Member Function Documentation

◆ convert()

virtual void* J1939Interpreter::convert ( j1939_pdu_typ pdu)
pure virtual

◆ import()

virtual void* J1939Interpreter::import ( vector< string > &  tokens)
pure virtual

Import data from a printed file into a message-specific object.

This is used primarily for processing preprinted messages from a file.

Parameters
tokenslist of string values from each data element in the message
Returns
the data-specific format of the message

Implemented in EIInterpreter, GFI2Interpreter, FDInterpreter, HRVDInterpreter, VEPInterpreter, IECInterpreter, AMBCInterpreter, PTOInterpreter, ETEMPInterpreter, ECFGInterpreter, RCFGInterpreter, VDInterpreter, TURBOInterpreter, TC1Interpreter, RFInterpreter, LFEInterpreter, CCVSInterpreter, TFInterpreter, ERC1Interpreter, ETC2Interpreter, ETC1Interpreter, EEC3Interpreter, EEC2Interpreter, EEC1Interpreter, EBC2Interpreter, EBC1Interpreter, TSC1Interpreter, and PDUInterpreter.

◆ is_type()

bool J1939Interpreter::is_type ( j1939_pdu_typ pdu)

Check whether the incoming message is of the same pdu type as the one covered by this (child) class.

Parameters
pdugeneric format of the message
Returns
True if the parameter group number (PGN) of the message matches the PGN of the child class; False otherwise

◆ pgn()

int J1939Interpreter::pgn ( )
virtual

◆ print()

virtual void J1939Interpreter::print ( void *  pdv,
FILE *  fp,
bool  numeric 
)
pure virtual

Print and log the message-specific format of a data point.

Parameters
pdvthe message to print
fplocation of the file to print to
numericIf set to true, the names of the separate data points are further revealed.

Implemented in EIInterpreter, GFI2Interpreter, FDInterpreter, HRVDInterpreter, VEPInterpreter, IECInterpreter, AMBCInterpreter, PTOInterpreter, ETEMPInterpreter, ECFGInterpreter, RCFGInterpreter, VDInterpreter, TURBOInterpreter, TC1Interpreter, RFInterpreter, LFEInterpreter, CCVSInterpreter, TFInterpreter, ERC1Interpreter, ETC2Interpreter, ETC1Interpreter, EEC3Interpreter, EEC2Interpreter, EEC1Interpreter, EBC2Interpreter, EBC1Interpreter, TSC1Interpreter, and PDUInterpreter.


The documentation for this class was generated from the following files: