-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to pure virtual classes, cody style and minor issues.
- Loading branch information
1 parent
e611ed3
commit d5fb7ea
Showing
4 changed files
with
25 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// | ||
// Created by Lucas Gracioso <[email protected]> on 6/19/23. | ||
// | ||
/* | ||
* Copyright 2023 Vinícius Ferrão <[email protected]> | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef CLOYSTERHPC_NFS_H_ | ||
#define CLOYSTERHPC_NFS_H_ | ||
|
@@ -9,7 +10,7 @@ | |
#include <boost/asio.hpp> | ||
#include <string> | ||
|
||
class NFS : IService { | ||
class NFS : public IService { | ||
private: | ||
std::string m_directoryName; | ||
std::string m_directoryPath; | ||
|
@@ -18,16 +19,15 @@ class NFS : IService { | |
boost::asio::ip::address m_address; | ||
|
||
public: | ||
NFS(const std::string& directoryName, const std::string& directoryPath, | ||
const boost::asio::ip::address& address); | ||
NFS(const std::string& directoryName, const std::string& directoryPath, | ||
const boost::asio::ip::address& address, | ||
const std::string& permissions); | ||
|
||
void configure(); | ||
void enable(); | ||
void disable(); | ||
void start(); | ||
void stop(); | ||
void enable() final; | ||
void disable() final; | ||
void start() final; | ||
void stop() final; | ||
|
||
private: | ||
void setFullPath(); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
// | ||
// Created by Lucas Gracioso <[email protected]> on 6/26/23. | ||
// | ||
/* | ||
* Copyright 2023 Vinícius Ferrão <[email protected]> | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef CLOYSTERHPC_ISERVICE_H_ | ||
#define CLOYSTERHPC_ISERVICE_H_ | ||
|
||
class IService { | ||
public: | ||
protected: | ||
virtual void enable() = 0; | ||
virtual void disable() = 0; | ||
[[maybe_unused]] virtual void disable() = 0; | ||
virtual void start() = 0; | ||
virtual void stop() = 0; | ||
[[maybe_unused]] virtual void stop() = 0; | ||
|
||
public: | ||
virtual ~IService() = default; | ||
}; | ||
|
||
#endif // CLOYSTERHPC_ISERVICE_H_ |
This file contains 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