30 lines
853 B
C++
30 lines
853 B
C++
/**
|
|
* @file dbc_database.h
|
|
* @brief Parsed DBC database and attribute metadata.
|
|
*
|
|
* Created: 2026-03-13
|
|
* Author: Deeaitch (Dim. Himro)
|
|
*
|
|
* Licensed under the MIT License.
|
|
* See LICENSE file in the project root for full license text.
|
|
*/
|
|
|
|
#ifndef DBC_DATABASE_H
|
|
#define DBC_DATABASE_H
|
|
|
|
#include <vector>
|
|
|
|
#include "frame_info.h"
|
|
|
|
/**
|
|
* @brief Parsed DBC content stored in a simple internal form.
|
|
*/
|
|
struct DbcDatabase {
|
|
std::vector<FrameInfo> frames; /**< All frames found in the DBC file. */
|
|
std::map<std::string, AttributeDefinition> attributeDefinitions = {}; /**< Attribute definitions indexed by name. */
|
|
std::vector<AttributeAssignment> attributeAssignments = {}; /**< Explicit assignments in source order. */
|
|
AttributeMap attributes = {}; /**< Effective database attributes. */
|
|
};
|
|
|
|
#endif /* DBC_DATABASE_H */
|