| xCore-SDK 0.7.1 xCore SDK C# API

upgrade_cli.hpp
浏览该文件的文档.
1
5#pragma once
6#ifndef XCORESDK_SRC_CLI_UPGRADE_CLI_HPP_
7#define XCORESDK_SRC_CLI_UPGRADE_CLI_HPP_
8
9#include "upgrade.h"
10#include "data_types_cli.hpp"
11
12 using namespace System;
13
14 namespace rokae::clr {
15
19 public ref class BaseUpgrade {
20 private:
21 rokae::BaseUpgrade* raw_;
22 public:
26 BaseUpgrade();
27
32 BaseUpgrade(String^ remote_ip);
33
37 ~BaseUpgrade();
38
43 void connect([System::Runtime::InteropServices::Out] ErrorCode^% ec);
44
49 void connect(String^ remote_ip);
50
56 void upgrade(String^ local_file_path, [System::Runtime::InteropServices::Out] ErrorCode^% ec);
57
64 void exportBackup(String^ local_file_path, array<BackupItem>^ items, [System::Runtime::InteropServices::Out] ErrorCode^% ec);
65 };
66}
67
68#endif
rokae::clr::BaseUpgrade
Controller upgrade and backup APIs.
Definition: upgrade_cli.hpp:19
rokae::clr::BaseUpgrade::connect
void connect(String^ remote_ip)
Connect to robot upgrade server.
rokae::clr::BaseUpgrade::connect
void connect([System::Runtime::InteropServices::Out] ErrorCode^% ec)
Connect to robot upgrade server.
rokae::clr::BaseUpgrade::upgrade
void upgrade(String^ local_file_path, [System::Runtime::InteropServices::Out] ErrorCode^% ec)
Upgrade controller package.
rokae::clr::BaseUpgrade::exportBackup
void exportBackup(String^ local_file_path, array< BackupItem >^ items, [System::Runtime::InteropServices::Out] ErrorCode^% ec)
Export controller backup.
rokae::clr::BaseUpgrade::~BaseUpgrade
~BaseUpgrade()
Destructor
rokae::clr::BaseUpgrade::BaseUpgrade
BaseUpgrade(String^ remote_ip)
Construct and connect to upgrade server.
rokae::clr::BaseUpgrade::BaseUpgrade
BaseUpgrade()
Default constructor without connection.
rokae::clr::ErrorCode
xCoreSDK错误码
Definition: data_types_cli.hpp:24
data_types_cli.hpp