Skip to content

Commit

Permalink
Release v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jul 21, 2019
2 parents 0a68f7c + a9393b8 commit 69a498d
Show file tree
Hide file tree
Showing 73 changed files with 1,518 additions and 492 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ endwhile ()
include(GNUInstallDirs)

if ("${CC_TAG}" STREQUAL "")
set (CC_TAG "v1.3")
set (CC_TAG "v2.0")
endif()

add_subdirectory(lib)
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ versions of the compilers:
- **Clang**: >=3.8
- **MSVC**: >= 2015

In some occasions **gcc** as early as v4.7 can be used to compile protocol
code definition.

# Branching Model
This repository will follow the
[Successful Git Branching Model](http://nvie.com/posts/a-successful-git-branching-model/).
Expand Down
1 change: 0 additions & 1 deletion app/commsdsl2comms/src/AllMessages.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class AllMessages
bool writeProtocolDefinition() const;
bool writePluginDefinition() const;

private:
Generator& m_generator;
};

Expand Down
3 changes: 2 additions & 1 deletion app/commsdsl2comms/src/BitfieldField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const std::string MembersDefTemplate =
"};\n";

const std::string MembersOptionsTemplate =
"/// @brief Extra options for all the member fields of @ref #^#SCOPE#$##^#CLASS_NAME#$# bitfield.\n"
"/// @brief Extra options for all the member fields of\n"
"/// @ref #^#SCOPE#$##^#CLASS_NAME#$# bitfield.\n"
"struct #^#CLASS_NAME#$#Members\n"
"{\n"
" #^#OPTIONS#$#\n"
Expand Down
9 changes: 5 additions & 4 deletions app/commsdsl2comms/src/BundleField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const std::string MembersDefTemplate =
"};\n";

const std::string MembersOptionsTemplate =
"/// @brief Extra options for all the member fields of @ref #^#SCOPE#$##^#CLASS_NAME#$# bitfield.\n"
"/// @brief Extra options for all the member fields of\n"
"/// @ref #^#SCOPE#$##^#CLASS_NAME#$# bitfield.\n"
"struct #^#CLASS_NAME#$#Members\n"
"{\n"
" #^#OPTIONS#$#\n"
Expand Down Expand Up @@ -325,8 +326,8 @@ std::string BundleField::getFieldOpts(const std::string& scope) const
});

if (membersHaveCustomReadRefresh) {
common::addToList("comms::option::HasCustomRead", options);
common::addToList("comms::option::HasCustomRefresh", options);
common::addToList("comms::option::def::HasCustomRead", options);
common::addToList("comms::option::def::HasCustomRefresh", options);
}

auto lengthFieldIter =
Expand All @@ -339,7 +340,7 @@ std::string BundleField::getFieldOpts(const std::string& scope) const

if (lengthFieldIter != m_members.end()) {
auto idx = static_cast<unsigned>(std::distance(m_members.begin(), lengthFieldIter));
auto optStr = "comms::option::RemLengthMemberField<" + common::numToString(idx) + '>';
auto optStr = "comms::option::def::RemLengthMemberField<" + common::numToString(idx) + '>';
common::addToList(optStr, options);
}

Expand Down
1 change: 1 addition & 0 deletions app/commsdsl2comms/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ set (
"MsgId.cpp"
"Interface.cpp"
"AllMessages.cpp"
"Dispatch.cpp"
"Frame.cpp"
"Layer.cpp"
"PayloadLayer.cpp"
Expand Down
2 changes: 1 addition & 1 deletion app/commsdsl2comms/src/ChecksumLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ std::string ChecksumLayer::getClassDefinitionImpl(

if (obj.verifyBeforeRead()) {
replacements.insert(std::make_pair("COMMA", ","));
replacements.insert(std::make_pair("EXTRA_OPT", "comms::option::ChecksumLayerVerifyBeforeRead"));
replacements.insert(std::make_pair("EXTRA_OPT", "comms::option::def::ChecksumLayerVerifyBeforeRead"));
}

prevLayer = common::nameToClassCopy(name());
Expand Down
13 changes: 7 additions & 6 deletions app/commsdsl2comms/src/DataField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ std::string DataField::getBareMetalOptionStrImpl() const
auto obj = dataFieldDslObj();
auto fixedLength = obj.fixedLength();
if (fixedLength != 0U) {
return "comms::option::SequenceFixedSizeUseFixedSizeStorage";
return "comms::option::app::SequenceFixedSizeUseFixedSizeStorage";
}

return "comms::option::FixedSizeStorage<" + common::seqDefaultSizeStr() + '>';
return "comms::option::app::FixedSizeStorage<" + common::seqDefaultSizeStr() + '>';
}

std::string DataField::getCompareToValueImpl(
Expand Down Expand Up @@ -450,7 +450,7 @@ void DataField::checkFixedLengthOpt(DataField::StringsList& list) const
}

auto str =
"comms::option::SequenceFixedSize<" +
"comms::option::def::SequenceFixedSize<" +
common::numToString(static_cast<std::uintmax_t>(fixedLen)) +
">";
list.push_back(std::move(str));
Expand Down Expand Up @@ -487,7 +487,7 @@ void DataField::checkPrefixOpt(DataField::StringsList& list) const
static_cast<void>(fieldPtr);
}

list.push_back("comms::option::SequenceSerLengthFieldPrefix<" + prefixName + '>');
list.push_back("comms::option::def::SequenceSerLengthFieldPrefix<" + prefixName + '>');
}

void DataField::checkForcingOpt(StringsList& list) const
Expand All @@ -498,7 +498,7 @@ void DataField::checkForcingOpt(StringsList& list) const
return;
}

common::addToList("comms::option::SequenceLengthForcingEnabled", list);
common::addToList("comms::option::def::SequenceLengthForcingEnabled", list);
}

std::string DataField::getExtraOptions(const std::string& scope, GetExtraOptionsFunc func) const
Expand All @@ -515,7 +515,8 @@ std::string DataField::getExtraOptions(const std::string& scope, GetExtraOptions
}

const std::string Templ =
"/// @brief Extra options for all the member fields of @ref #^#SCOPE#$##^#CLASS_NAME#$# string.\n"
"/// @brief Extra options for all the member fields of\n"
"/// @ref #^#SCOPE#$##^#CLASS_NAME#$# string.\n"
"struct #^#CLASS_NAME#$#Members\n"
"{\n"
" #^#OPTIONS#$#\n"
Expand Down
Loading

0 comments on commit 69a498d

Please sign in to comment.