add_executable(nni ${SOURCES})
target_link_libraries(nni nnkit_intf_action)
target_link_libraries(nni nnkit_intf_backend)
+target_link_libraries(nni nnkit_support_cmdline)
target_link_libraries(nni dl)
*/
#include <nnkit/CmdlineArguments.h>
-
-#include <string>
-#include <vector>
-
-// TODO Extract this helper class
-class VectorArguments : public nnkit::CmdlineArguments
-{
-public:
- uint32_t size(void) const { return _args.size(); }
-
-public:
- const char *at(uint32_t nth) const { return _args.at(nth).c_str(); }
-
-public:
- VectorArguments &append(const std::string &arg)
- {
- _args.emplace_back(arg);
- return (*this);
- }
-
-private:
- std::vector<std::string> _args;
-};
+#include <nnkit/VectorArguments.h>
namespace
{
void append(const std::string &arg) { _args.append(arg); }
private:
- VectorArguments _args;
+ nnkit::VectorArguments _args;
};
}