truck-code
Public Member Functions | Public Attributes | List of all members
TC1Interpreter Class Reference

#include <j1939_interpreters.h>

Inheritance diagram for TC1Interpreter:
Inheritance graph
[legend]
Collaboration diagram for TC1Interpreter:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

int pgn = 0
 

Detailed Description

PDU TC1 (Transmission Control) doc. in J1939 - 71, p149

Member Function Documentation

◆ convert()

virtual void* TC1Interpreter::convert ( j1939_pdu_typ pdu)
virtual

Convert a message from its pdu format to its data-specific format.

Parameters
pdugeneric format of the message
Returns
data-specific format of the message, depending on the child class used

Implements J1939Interpreter.

◆ import()

virtual void* TC1Interpreter::import ( vector< string > &  tokens)
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

Implements J1939Interpreter.

◆ print()

virtual void TC1Interpreter::print ( void *  pdv,
FILE *  fp,
bool  numeric 
)
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.

Implements J1939Interpreter.


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