Forbid instanciation of static classes
This commit is contained in:
parent
2f6df42696
commit
6a14b7b428
@ -16,9 +16,10 @@ private:
|
|||||||
static void CrashWithMsg(const std::string& msg);
|
static void CrashWithMsg(const std::string& msg);
|
||||||
static void CatchVersionQueries();
|
static void CatchVersionQueries();
|
||||||
|
|
||||||
CommandlineInterface() {};
|
|
||||||
|
|
||||||
static Hazelnp::CmdArgsInterface nupp;
|
static Hazelnp::CmdArgsInterface nupp;
|
||||||
|
|
||||||
|
// No instanciation! >:(
|
||||||
|
CommandlineInterface() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,6 +46,9 @@ class Configuration {
|
|||||||
static void DecideOutputTo();
|
static void DecideOutputTo();
|
||||||
static void DecideIOBaseFormat();
|
static void DecideIOBaseFormat();
|
||||||
static void DecideModule();
|
static void DecideModule();
|
||||||
|
|
||||||
|
// No instanciation! >:(
|
||||||
|
Configuration() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,6 +49,9 @@ class DataFormatter {
|
|||||||
const std::vector<std::string>& customSet,
|
const std::vector<std::string>& customSet,
|
||||||
const std::string& seperator = ""
|
const std::string& seperator = ""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// No instanciation! >:(
|
||||||
|
DataFormatter() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,6 +44,9 @@ namespace IO {
|
|||||||
|
|
||||||
// All read blocks, that haven't been given out yet
|
// All read blocks, that haven't been given out yet
|
||||||
static std::queue<Block> blocks;
|
static std::queue<Block> blocks;
|
||||||
|
|
||||||
|
// No instanciation! >:(
|
||||||
|
DataIngestionLayer();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,11 @@ class KeyManager {
|
|||||||
//! hiding the input.
|
//! hiding the input.
|
||||||
static std::string PasswordPrompt();
|
static std::string PasswordPrompt();
|
||||||
|
|
||||||
|
//! The encryption key
|
||||||
static Key key;
|
static Key key;
|
||||||
|
|
||||||
|
// No instanciation! >:(
|
||||||
|
KeyManager() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,6 +8,10 @@ namespace Module {
|
|||||||
public:
|
public:
|
||||||
//! Will write the key to a file
|
//! Will write the key to a file
|
||||||
static void Run();
|
static void Run();
|
||||||
|
|
||||||
|
private:
|
||||||
|
// No instanciation! >:(
|
||||||
|
GenerateKey() {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user