summaryrefslogtreecommitdiff
path: root/src/include/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/session.h')
-rw-r--r--src/include/session.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/include/session.h b/src/include/session.h
index ee96613..a329183 100644
--- a/src/include/session.h
+++ b/src/include/session.h
@@ -1,11 +1,13 @@
-/** --------------------------------------------------------------------
+/**
* @file session.h
* @brief <--->
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
+ */
+
#ifndef session_h_included
#define session_h_included
+
#include "argparser.h"
#include <map>
@@ -18,7 +20,6 @@ namespace Binc {
class Depot;
- //--------------------------------------------------------------------
class Session {
public:
std::map<std::string, std::string> attrs;
@@ -37,13 +38,13 @@ namespace Binc {
CommandLineArgs args;
- int timeout() const;
+ int timeout(void) 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);
- const int getState(void) const;
+ int getState(void) const;
void setState(int n);
bool parseCommandLine(int argc, char *argv[]);
void assignCommandLineArgs(void);
@@ -61,7 +62,7 @@ namespace Binc {
const std::string &getLastError(void) const;
const std::string &getResponseCode(void) const;
const std::string &getIP(void) const;
- const std::string &getUserID() const;
+ const std::string &getUserID(void) const;
pid_t getPid(void);
const std::string &getHostname(void);
void setLastError(const std::string &error) const;
@@ -72,13 +73,11 @@ namespace Binc {
inline Depot *getDepot(void) const;
- //--
static Session &getInstance(void);
bool initialize(int argc, char *argv[]);
private:
- //--
int state;
std::string userid;
std::string ip;