Class StaticClass

Synopsis

#include <src/easylogging++.h>

class StaticClass

Description

Internal helper class that makes all default constructors private.

@detail This prevents initializing class making it static unless an explicit constructor is declared. When using this class simply inherit it privately

Inheritance

Decsendents: LevelHelper, DateTime, OS, File, Str, VersionInfo, Loggers, Helpers, Parser, ConfigurationTypeHelper

Source

Lines 566-571 in src/easylogging++.h.

class StaticClass {
 private:
  StaticClass(void);
  StaticClass(const StaticClass&);
  StaticClass& operator=(const StaticClass&);
};





Add Discussion

Log in to comment