35 #ifndef _NEW_EAGLE_DBCBUILDER_H
36 #define _NEW_EAGLE_DBCBUILDER_H
48 struct DbcSignalValueType
91 return signalValueType;
109 std::ostringstream sstream;
111 attribute.
Value = sstream.str();
115 catch(std::exception& ex)
144 uint32_t canId = parser.
ReadUInt(
"message id");
148 uint8_t dlc = parser.
ReadUInt(
"size");
150 uint32_t
id = (uint32_t)(canId & 0x3FFFFFFFu);
161 int32_t muxSwitch = 0;
177 throw std::runtime_error(
"Synxax Error: Expected \':\' " + parser.
GetPosition());
180 int32_t startBit = parser.
ReadUInt(
"start bit");
184 uint8_t length = (uint8_t)parser.
ReadUInt(
"size");
199 throw std::runtime_error(
"Synxax Error: Byte Order - Expected 0 or 1, got " + byteOrder);
213 throw std::runtime_error(
"Synxax Error: Value Type - Expected + or -, got " + valType);
228 double minimum = parser.
ReadDouble(
"minimum");
230 double maximum = parser.
ReadDouble(
"maximum");
239 signal =
new NewEagle::DbcSignal(8, gain, offset, startBit, endianness, length, sign, name, multiplexMode, muxSwitch);
243 signal =
new NewEagle::DbcSignal(8, gain, offset, startBit, endianness, length, sign, name, multiplexMode);
251 #endif // _NEW_EAGLE_DBCBUILDER_H