Skip to content

Commit

Permalink
Identify more source libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jun 19, 2024
1 parent bfc6c74 commit 929725e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/Structures/StructERCSymbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ static std::string to_string(const StructERCSymbol& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}symbolBBox = {}", indent(1), aObj.symbolBBox.to_string());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}symbolBBox = {}", indent(1), aObj.symbolBBox.to_string());

return str;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Structures/StructGlobalSymbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ static std::string to_string(const StructGlobalSymbol& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));

str += fmt::format("{}symbolPins:\n", indent(1));
for(size_t i = 0u; i < aObj.symbolPins.size(); ++i)
Expand Down
6 changes: 3 additions & 3 deletions src/Structures/StructOffPageSymbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ static std::string to_string(const StructOffPageSymbol& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));

str += fmt::format("{}symbolPins:\n", indent(1));
for(size_t i = 0u; i < aObj.symbolPins.size(); ++i)
Expand Down
6 changes: 3 additions & 3 deletions src/Structures/StructPinShapeSymbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ static std::string to_string(const StructPinShapeSymbol& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));

str += fmt::format("{}symbolPins:\n", indent(1));
for(size_t i = 0u; i < aObj.symbolPins.size(); ++i)
Expand Down
4 changes: 2 additions & 2 deletions src/Structures/StructSthInPages0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ void StructSthInPages0::read_raw(FileFormatVersion /* aVersion */, FutureDataLst

mCtx.mLogger.trace("name = {}", name);

someStr0 = ds.readStringLenZeroTerm();
sourceLibrary = ds.readStringLenZeroTerm();

mCtx.mLogger.trace("someStr0 = {}", someStr0);
mCtx.mLogger.trace("sourceLibrary = {}", sourceLibrary);

aLocalFutureLst.checkpoint();

Expand Down
13 changes: 8 additions & 5 deletions src/Structures/StructSthInPages0.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class StructSthInPages0 : public Record
public:

StructSthInPages0(StreamContext& aCtx) : Record{aCtx},
name{}, someStr0{}, color{Color::Default}, primitives{}
name{}, sourceLibrary{}, color{Color::Default}, primitives{}
{ }

std::string to_string() const override;
Expand All @@ -44,7 +44,10 @@ class StructSthInPages0 : public Record
void read_raw(FileFormatVersion aVersion, FutureDataLst& aLocalFutureLst);

std::string name;
std::string someStr0;

// Absolute path
std::string sourceLibrary;

Color color;

std::vector<std::unique_ptr<PrimBase>> primitives;
Expand All @@ -57,9 +60,9 @@ static std::string to_string(const StructSthInPages0& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));

str += fmt::format("{}primitives:\n", indent(1));
for(size_t i = 0u; i < aObj.primitives.size(); ++i)
Expand Down
6 changes: 3 additions & 3 deletions src/Structures/StructTitleBlockSymbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ static std::string to_string(const StructTitleBlockSymbol& aObj)
std::string str;

str += fmt::format("{}:\n", nameof::nameof_type<decltype(aObj)>());
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}someStr0 = {}\n", indent(1), aObj.someStr0);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));
str += fmt::format("{}name = {}\n", indent(1), aObj.name);
str += fmt::format("{}sourceLibrary = {}\n", indent(1), aObj.sourceLibrary);
str += fmt::format("{}color = {}\n", indent(1), ::to_string(aObj.color));

str += fmt::format("{}symbolPins:\n", indent(1));
for(size_t i = 0u; i < aObj.symbolPins.size(); ++i)
Expand Down

0 comments on commit 929725e

Please sign in to comment.