fixed includes

experiment/meta_header
Martchus 7 years ago
parent ae494cc425
commit 603dbf823a
  1. 4
      application/argumentparser.cpp
  2. 12
      chrono/datetime.cpp
  3. 2
      chrono/datetime.h
  4. 2
      chrono/period.h
  5. 2
      chrono/timespan.cpp
  6. 4
      chrono/timespan.h
  7. 2
      conversion/binaryconversion.h
  8. 2
      conversion/binaryconversionprivate.h
  9. 2
      conversion/conversionexception.h
  10. 2
      conversion/stringconversion.cpp
  11. 2
      conversion/widen.h
  12. 2
      io/ansiescapecodes.cpp
  13. 2
      io/ansiescapecodes.h
  14. 4
      io/binaryreader.cpp
  15. 6
      io/binaryreader.h
  16. 2
      io/binarywriter.cpp
  17. 6
      io/binarywriter.h
  18. 4
      io/bitreader.h
  19. 2
      io/copy.h
  20. 2
      io/inifile.h
  21. 4
      io/path.cpp
  22. 5
      io/path.h
  23. 5
      math/math.h
  24. 5
      misc/random.h

@ -2,8 +2,8 @@
#include "commandlineutils.h"
#include "failure.h"
#include "../conversion/stringconversion.h"
#include "../misc/random.h"
#include "c++utilities/conversion/stringconversion.h"
#include "c++utilities/misc/random.h"
#include <algorithm>
#include <vector>

@ -1,6 +1,6 @@
#include "datetime.h"
#include "../conversion/stringconversion.h"
#include "c++utilities/conversion/stringconversion.h"
#include <sstream>
#include <iomanip>
@ -49,9 +49,13 @@ inline bool inRangeExclMax(num1 val, num2 min, num3 max)
*/
DateTime DateTime::fromTimeStamp(time_t timeStamp)
{
struct tm *timeinfo = localtime(&timeStamp);
return DateTime::fromDateAndTime(timeinfo->tm_year + 1900, timeinfo->tm_mon + 1, timeinfo->tm_mday,
timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec < 60 ? timeinfo->tm_sec : 59, 0);
if(timeStamp) {
struct tm *timeinfo = localtime(&timeStamp);
return DateTime::fromDateAndTime(timeinfo->tm_year + 1900, timeinfo->tm_mon + 1, timeinfo->tm_mday,
timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec < 60 ? timeinfo->tm_sec : 59, 0);
} else {
return DateTime();
}
}
/*!

@ -3,7 +3,7 @@
#include "timespan.h"
#include "../conversion/types.h"
#include "c++utilities/conversion/types.h"
#include <string>

@ -3,7 +3,7 @@
#include "datetime.h"
#include "../application/global.h"
#include "c++utilities/application/global.h"
namespace ChronoUtilities {

@ -1,6 +1,6 @@
#include "timespan.h"
#include "../conversion/stringconversion.h"
#include "c++utilities/conversion/stringconversion.h"
#include <sstream>
#include <cmath>

@ -1,8 +1,8 @@
#ifndef TIMESPAN_H
#define TIMESPAN_H
#include "../application/global.h"
#include "../conversion/types.h"
#include "c++utilities/application/global.h"
#include "c++utilities/conversion/types.h"
#include <string>

@ -3,7 +3,7 @@
#include "types.h"
#include "../application/global.h"
#include "c++utilities/application/global.h"
#if defined(__BYTE_ORDER__) && defined(__FLOAT_WORD_ORDER__)
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__

@ -6,7 +6,7 @@
#include "types.h"
#include "../application/global.h"
#include "c++utilities/application/global.h"
/*!
* \brief Returns a 16-bit signed integer converted from two bytes at a specified position in a char array.

@ -1,7 +1,7 @@
#ifndef CONVERSIONEXCEPTION_H
#define CONVERSIONEXCEPTION_H
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <stdexcept>
#include <string>

@ -1,6 +1,6 @@
#include "stringconversion.h"
#include "../misc/memory.h"
#include "c++utilities/misc/memory.h"
#include <sstream>
#include <iomanip>

@ -1,7 +1,7 @@
#ifndef WIDEN_H
#define WIDEN_H
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <string>
#include <vector>

@ -1,3 +1 @@
#include "ansiescapecodes.h"

@ -1,7 +1,7 @@
#ifndef ANSIESCAPECODES
#define ANSIESCAPECODES
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <ostream>

@ -1,7 +1,7 @@
#include "binaryreader.h"
#include "misc/memory.h"
#include <conversion/conversionexception.h>
#include "c++utilities/misc/memory.h"
#include "c++utilities/conversion/conversionexception.h"
#include <sstream>
#include <cstring>

@ -1,9 +1,9 @@
#ifndef BINERYREADER_H
#define BINERYREADER_H
#include "../application/global.h"
#include "../conversion/types.h"
#include "../conversion/binaryconversion.h"
#include "c++utilities/application/global.h"
#include "c++utilities/conversion/types.h"
#include "c++utilities/conversion/binaryconversion.h"
#include <vector>
#include <string>

@ -1,6 +1,6 @@
#include "binarywriter.h"
#include "../conversion/conversionexception.h"
#include "c++utilities/conversion/conversionexception.h"
#include <cstring>
#include <memory>

@ -1,9 +1,9 @@
#ifndef BINARYWRITER_H
#define BINARYWRITER_H
#include "../application/global.h"
#include "../conversion/types.h"
#include "../conversion/binaryconversion.h"
#include "c++utilities/application/global.h"
#include "c++utilities/conversion/types.h"
#include "c++utilities/conversion/binaryconversion.h"
#include <vector>
#include <string>

@ -1,8 +1,8 @@
#ifndef IOUTILITIES_BITREADER_H
#define IOUTILITIES_BITREADER_H
#include "../conversion/types.h"
#include "../application/global.h"
#include "c++utilities/conversion/types.h"
#include "c++utilities/application/global.h"
#include <ios>

@ -1,7 +1,7 @@
#ifndef IOUTILITIES_COPY_H
#define IOUTILITIES_COPY_H
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <iostream>
#include <functional>

@ -1,7 +1,7 @@
#ifndef IOUTILITIES_INIFILE_H
#define IOUTILITIES_INIFILE_H
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <map>
#include <string>

@ -1,7 +1,7 @@
#include "path.h"
#include "../application/global.h"
#include "../conversion/widen.h"
#include "c++utilities/application/global.h"
#include "c++utilities/conversion/widen.h"
#include <string>
#include <sstream>

@ -4,12 +4,11 @@
#include "binarywriter.h"
#include "binaryreader.h"
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <string>
namespace IoUtilities
{
namespace IoUtilities {
LIB_EXPORT std::string fileName(const std::string &path);
LIB_EXPORT void removeInvalidChars(std::string &path);

@ -1,10 +1,9 @@
#ifndef MATHUTILITIES_H
#define MATHUTILITIES_H
#include "application/global.h"
#include "c++utilities/application/global.h"
namespace MathUtilities
{
namespace MathUtilities {
LIB_EXPORT int random(int lowerbounds, int upperbounds);

@ -1,12 +1,11 @@
#ifndef RANDOMUTILS_H
#define RANDOMUTILS_H
#include "../application/global.h"
#include "c++utilities/application/global.h"
#include <functional>
namespace RandomUtilities
{
namespace RandomUtilities {
LIB_EXPORT void generateRandomCharacterSequence(char *result, int length, bool useSmallLetters = true, bool useCapitalLetters = true, bool useNumbers = true, bool useSymbols = true, bool useAtLeastOneOfEachCategory = true);
LIB_EXPORT void generateRandomCharacterSequence(char *result, int length, std::function<int ()> randomizer, int maximalRandomNumber, bool useSmallLetters = true, bool useCapitalLetters = true, bool useNumbers = true, bool useSymbols = true, bool useAtLeastOneOfEachCategory = true);

Loading…
Cancel
Save