diff options
Diffstat (limited to 'src/include/session.h')
-rw-r--r-- | src/include/session.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/include/session.h b/src/include/session.h index b02abaa..6d9ffc1 100644 --- a/src/include/session.h +++ b/src/include/session.h @@ -43,42 +43,42 @@ namespace Binc { CommandLineArgs args; - int timeout(void) const; + int timeout() const; bool hasEnv(const std::string &key) const; std::string getEnv(const std::string &key); void setEnv(const std::string &key, const std::string &value); - int getState(void) const; + int getState() const; void setState(int n); bool parseCommandLine(int argc, char *argv[]); - void assignCommandLineArgs(void); - int getWriteBytes(void) const; - int getReadBytes(void) const; + void assignCommandLineArgs(); + int getWriteBytes() const; + int getReadBytes() const; void addWriteBytes(int); void addReadBytes(int); - int getBodies(void) const; - int getStatements(void) const; - void addBody(void); - void addStatement(void); + int getBodies() const; + int getStatements() const; + void addBody(); + void addStatement(); void setLogFacility(int facility); - int getLogFacility(void) const; - - const std::string &getLastError(void) const; - const std::string &getResponseCode(void) const; - const std::string &getIP(void) const; - const std::string &getUserID(void) const; - pid_t getPid(void); - const std::string &getHostname(void); + int getLogFacility() const; + + const std::string &getLastError() const; + const std::string &getResponseCode() const; + const std::string &getIP() const; + const std::string &getUserID() const; + pid_t getPid(); + const std::string &getHostname(); void setLastError(const std::string &error) const; void setResponseCode(const std::string &error) const; - void clearResponseCode(void) const; + void clearResponseCode() const; void setIP(const std::string &ip); void setUserID(const std::string &s); - inline Depot *getDepot(void) const; + inline Depot *getDepot() const; - static Session &getInstance(void); + static Session &getInstance(); bool initialize(int argc, char *argv[]); @@ -104,10 +104,10 @@ namespace Binc { pid_t pid; std::string hostname; - Session(void); + Session(); }; - inline Depot *Session::getDepot(void) const + inline Depot *Session::getDepot() const { return depot; } |