Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien3d committed Feb 29, 2024
1 parent a08608d commit 64424d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion source/ed/connectors/gtfs_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ struct GtfsParser : public GenericGtfsParser {
GtfsParser(const std::string& path) : GenericGtfsParser(path) {}
};


/** Convertit une chaine de charactères du type 8:12:31 en secondes depuis minuit
*
* Retourne -1 s'il y a eu un problème
Expand Down
10 changes: 7 additions & 3 deletions source/ed/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,13 @@ struct AdminStopArea {
std::vector<const StopArea*> stop_area;
};

#define ASSOCIATE_ED_TYPE(type_name, collection_name) \
inline nt::Type_e get_associated_enum(const ed::types::type_name&) { return nt::Type_e::type_name; } \
inline nt::Type_e get_associated_enum(const ed::types::type_name*) { return nt::Type_e::type_name; }
#define ASSOCIATE_ED_TYPE(type_name, collection_name) \
inline nt::Type_e get_associated_enum(const ed::types::type_name&) { \
return nt::Type_e::type_name; \
} \
inline nt::Type_e get_associated_enum(const ed::types::type_name*) { \
return nt::Type_e::type_name; \
}

ITERATE_NAVITIA_PT_TYPES(ASSOCIATE_ED_TYPE)
inline nt::Type_e get_associated_enum(const ed::types::StopTime&) {
Expand Down

0 comments on commit 64424d6

Please sign in to comment.