LINT: Add cpplint, clang-format and pre-commit support
Change-Id: I3cbb787ef27d90486b212dfb1a8c77c460acc2ac
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
[ROCm/rdc commit: 434e40305d]
This commit is contained in:
@@ -25,38 +25,38 @@ THE SOFTWARE.
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "rdc_lib/rdc_common.h"
|
||||
|
||||
#include "rdc/rdc.h"
|
||||
#include "rdc_lib/rdc_common.h"
|
||||
|
||||
namespace amd {
|
||||
namespace rdc {
|
||||
|
||||
class RdciSubSystem {
|
||||
public:
|
||||
RdciSubSystem();
|
||||
virtual void parse_cmd_opts(int argc, char ** argv) = 0;
|
||||
virtual void connect();
|
||||
RdciSubSystem();
|
||||
virtual void parse_cmd_opts(int argc, char** argv) = 0;
|
||||
virtual void connect();
|
||||
|
||||
virtual void process() = 0;
|
||||
virtual ~RdciSubSystem();
|
||||
virtual void process() = 0;
|
||||
virtual ~RdciSubSystem();
|
||||
|
||||
bool is_json_output() const;
|
||||
bool is_json_output() const;
|
||||
|
||||
protected:
|
||||
void set_json_output(bool is_json);
|
||||
std::vector<std::string> split_string(const std::string& s,
|
||||
char delimiter) const;
|
||||
void show_common_usage() const;
|
||||
rdc_handle_t rdc_handle_;
|
||||
std::string ip_port_;
|
||||
void set_json_output(bool is_json);
|
||||
std::vector<std::string> split_string(const std::string& s, char delimiter) const;
|
||||
void show_common_usage() const;
|
||||
rdc_handle_t rdc_handle_;
|
||||
std::string ip_port_;
|
||||
|
||||
bool use_auth_;
|
||||
std::string root_ca_;
|
||||
std::string client_cert_;
|
||||
std::string client_key_;
|
||||
bool use_auth_;
|
||||
std::string root_ca_;
|
||||
std::string client_cert_;
|
||||
std::string client_key_;
|
||||
|
||||
private:
|
||||
bool is_json_output_;
|
||||
bool is_json_output_;
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<RdciSubSystem> RdciSubSystemPtr;
|
||||
@@ -64,5 +64,4 @@ typedef std::shared_ptr<RdciSubSystem> RdciSubSystemPtr;
|
||||
} // namespace rdc
|
||||
} // namespace amd
|
||||
|
||||
|
||||
#endif // RDCI_INCLUDE_RDCISUBSYSTEM_H_
|
||||
|
||||
Reference in New Issue
Block a user