Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Api documentation#249

Merged
wsobel merged 19 commits intomasterfrom
api_documentation
Feb 10, 2023
Merged

Api documentation#249
wsobel merged 19 commits intomasterfrom
api_documentation

Conversation

@wsobel
Copy link
Copy Markdown
Member

@wsobel 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.

@wsobel wsobel requested review from rajwork9 and simonyg February 9, 2023 20:22
@wsobel wsobel merged commit 47fabfd into master Feb 10, 2023
@wsobel wsobel deleted the api_documentation branch February 10, 2023 04:03
Copy link
Copy Markdown
Contributor

@rajwork9 rajwork9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's find? may be typo issue...at line 104

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}

auto getIndexAt(uint64_t at) { return at - m_firstSequence; }
/// @brief get index into underlying curcular buffer at a sequence number
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: circular buffer

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


///@}

/// @brief Get a list of observations from the curcular buffer
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: Circular

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

/// @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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: current

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

/// @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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: maximum

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

m_uuid = uuid;
setProperty("uuid", uuid);
}
/// @brief set the compoent name property, not the compoent type
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: component

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


/// @brief Namespace for all Device Model Related entities
namespace device_model {
/// @brief Compenent entity representing a `Device`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: component

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

namespace mtconnect::observation {
class ChangeSignaler;

/// @brief A class to observe a data item and singal when data changes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: signal

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

else
{
// If this observation is after the period has expired and there
// is an existing obsrvation, then we send the last observation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spell check: Observation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@wsobel
Copy link
Copy Markdown
Member Author

wsobel commented Feb 11, 2023 via email

@wsobel
Copy link
Copy Markdown
Member Author

wsobel commented Feb 11, 2023

Will fix it in the current branch I'm working on for the config and mqtt test issues

@wsobel
Copy link
Copy Markdown
Member Author

wsobel commented Feb 11, 2023

fixed in branch fix_debug_build_in_windows.

Thanks a lot for finding the errors!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants