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

#include <j1939_interpreters.h>

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

Public Member Functions

virtual int pgn ()
 
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
bool is_type (j1939_pdu_typ *pdu)
 
virtual ~J1939Interpreter ()=0
 

Detailed Description

PDU AMBC (Ambient Conditions) doc. in J1939 - 71, p163

Member Function Documentation

◆ convert()

void * AMBCInterpreter::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()

void * AMBCInterpreter::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.

◆ pgn()

int AMBCInterpreter::pgn ( )
virtual

J1939 PGN number for the data-type

Reimplemented from J1939Interpreter.

◆ print()

void AMBCInterpreter::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 files: