This repository was archived by the owner on Jul 18, 2023. It is now read-only.
Merged
Conversation
Member
wsobel
commented
Feb 9, 2023
- Added API documentation to most of the classes in the agent lib.
- Still need to document MQTT and Ruby classes
- Primarily to support plugins that provide sinks, sources, and transforms.
simonyg
approved these changes
Feb 10, 2023
rajwork9
reviewed
Feb 11, 2023
Contributor
rajwork9
left a comment
There was a problem hiding this comment.
Hello Will,
found very minor spell checks... you can skip these changes as well.
Thank you,
| virtual AssetPtr getAsset(const std::string &id) const = 0; | ||
| /// @brief get a list of assets with optional filters | ||
| /// @param[out] list returned list of assets | ||
| /// @param[in] max maximum number of assets to dind |
Contributor
There was a problem hiding this comment.
it's find? may be typo issue...at line 104
| } | ||
|
|
||
| auto getIndexAt(uint64_t at) { return at - m_firstSequence; } | ||
| /// @brief get index into underlying curcular buffer at a sequence number |
Contributor
There was a problem hiding this comment.
spell check: circular buffer
|
|
||
| ///@} | ||
|
|
||
| /// @brief Get a list of observations from the curcular buffer |
| /// @brief get a pointer to the async io manager | ||
| auto &getAsyncContext() { return *m_context.get(); } | ||
|
|
||
| /// @brief sets the path for the working directory to the crrent path |
| /// @return log archive pattern | ||
| const auto &getLogArchivePattern() const { return m_logArchivePattern; } | ||
| /// @brief Get the maximum size of all the log files | ||
| /// @return the maxumum size of all log files |
| m_uuid = uuid; | ||
| setProperty("uuid", uuid); | ||
| } | ||
| /// @brief set the compoent name property, not the compoent type |
|
|
||
| /// @brief Namespace for all Device Model Related entities | ||
| namespace device_model { | ||
| /// @brief Compenent entity representing a `Device` |
| namespace mtconnect::observation { | ||
| class ChangeSignaler; | ||
|
|
||
| /// @brief A class to observe a data item and singal when data changes |
| else | ||
| { | ||
| // If this observation is after the period has expired and there | ||
| // is an existing obsrvation, then we send the last observation. |
Member
Author
|
Please correct in a branch. Tracking down a few problems around the mqtt isolation test failing on windows.
… On Feb 10, 2023, at 16:15, rajwork9 ***@***.***> wrote:
@rajwork9 commented on this pull request.
Hello Will,
found very minor spell checks... you can skip these changes as well.
Thank you,
In src/mtconnect/asset/asset_storage.hpp <#249 (comment)>:
> virtual AssetPtr getAsset(const std::string &id) const = 0;
+ /// @brief get a list of assets with optional filters
+ /// @param[out] list returned list of assets
+ /// @param[in] max maximum number of assets to dind
it's find? may be typo issue...at line 104
In src/mtconnect/buffer/circular_buffer.hpp <#249 (comment)>:
> @@ -55,14 +62,24 @@ namespace mtconnect::buffer {
return observation::ObservationPtr();
}
- auto getIndexAt(uint64_t at) { return at - m_firstSequence; }
+ /// @brief get index into underlying curcular buffer at a sequence number
spell check: circular buffer
In src/mtconnect/buffer/circular_buffer.hpp <#249 (comment)>:
> @@ -184,11 +223,21 @@ namespace mtconnect::buffer {
return check;
}
-
+ ///@}
+
+ /// @brief Get a list of observations from the curcular buffer
spell check: Circular
In src/mtconnect/configuration/agent_config.hpp <#249 (comment)>:
> auto &getAsyncContext() { return *m_context.get(); }
+ /// @brief sets the path for the working directory to the crrent path
spell check: current
In src/mtconnect/configuration/agent_config.hpp <#249 (comment)>:
> const auto &getLogArchivePattern() const { return m_logArchivePattern; }
+ /// @brief Get the maximum size of all the log files
+ /// @return the maxumum size of all log files
spell check: maximum
In src/mtconnect/device_model/component.hpp <#249 (comment)>:
> void setUuid(const std::string &uuid)
{
m_uuid = uuid;
setProperty("uuid", uuid);
}
+ /// @brief set the compoent name property, not the compoent type
spell check: component
In src/mtconnect/device_model/device.hpp <#249 (comment)>:
> namespace device_model {
+ /// @brief Compenent entity representing a `Device`
spell check: component
In src/mtconnect/observation/change_observer.hpp <#249 (comment)>:
> @@ -27,85 +27,107 @@
#include "mtconnect/config.hpp"
#include "mtconnect/utilities.hpp"
-namespace mtconnect {
- namespace observation {
- class ChangeSignaler;
- class AGENT_LIB_API ChangeObserver
+namespace mtconnect::observation {
+ class ChangeSignaler;
+
+ /// @brief A class to observe a data item and singal when data changes
spell check: signal
In src/mtconnect/pipeline/period_filter.hpp <#249 (comment)>:
>
- // The observations will be swapped, so send the last onward.
- return false;
- }
- else
+ // The observations will be swapped, so send the last onward.
+ return false;
+ }
+ else
+ {
+ // If this observation is after the period has expired and there
+ // is an existing obsrvation, then we send the last observation.
spell check: Observation
—
Reply to this email directly, view it on GitHub <#249 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJ6BCIOVXRRZFDKBHYRY4DWW3KZ3ANCNFSM6AAAAAAUW73DBM>.
You are receiving this because you modified the open/close state.
|
Member
Author
|
Will fix it in the current branch I'm working on for the config and mqtt test issues |
Member
Author
|
fixed in branch fix_debug_build_in_windows. Thanks a lot for finding the errors! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.