9 Commits

6 changed files with 2338 additions and 16 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/doc
*.user *.user
temp temp

2312
Doxyfile Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
/* /*
Copyright 2016 Amebis Copyright 2016-2017 Amebis
This file is part of stdex. This file is part of stdex.
@@ -19,6 +19,8 @@
#pragma once #pragma once
#include <assert.h>
#include <Windows.h>
#include <vector> #include <vector>
@@ -37,7 +39,7 @@
// Product version as a single DWORD // Product version as a single DWORD
// Note: Used for version comparison within C/C++ code. // Note: Used for version comparison within C/C++ code.
// //
#define STDEX_VERSION 0x01000000 #define STDEX_VERSION 0x01000100
// //
// Product version by components // Product version by components
@@ -47,11 +49,11 @@
// //
#define STDEX_VERSION_MAJ 1 #define STDEX_VERSION_MAJ 1
#define STDEX_VERSION_MIN 0 #define STDEX_VERSION_MIN 0
#define STDEX_VERSION_REV 0 #define STDEX_VERSION_REV 1
#define STDEX_VERSION_BUILD 0 #define STDEX_VERSION_BUILD 0
// //
// Human readable product version and build year for UI // Human readable product version and build year for UI
// //
#define STDEX_VERSION_STR "1.0" #define STDEX_VERSION_STR "1.0.1"
#define STDEX_BUILD_YEAR_STR "2016" #define STDEX_BUILD_YEAR_STR "2016"

View File

@@ -1,5 +1,5 @@
/* /*
Copyright 2016 Amebis Copyright 2016-2017 Amebis
This file is part of stdex. This file is part of stdex.
@@ -36,8 +36,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit). /// \param[in] end Position limit. Default is -1 (no limit).
/// ///
/// \returns /// \returns
/// - true when succeeded /// - \c true when succeeded
/// - false otherwise /// - \c false otherwise
/// ///
template <class T_ID> template <class T_ID>
inline bool read_id(_In_ std::istream& stream, _Out_ T_ID &id, _In_opt_ std::streamoff end = (std::streamoff)-1) inline bool read_id(_In_ std::istream& stream, _Out_ T_ID &id, _In_opt_ std::streamoff end = (std::streamoff)-1)
@@ -56,8 +56,8 @@ namespace stdex {
/// \param[in] stream Input stream /// \param[in] stream Input stream
/// ///
/// \returns /// \returns
/// - true when successful /// - \c true when successful
/// - false otherwise /// - \c false otherwise
/// ///
template <class T_SIZE, unsigned int ALIGN> template <class T_SIZE, unsigned int ALIGN>
inline bool ignore(_In_ std::istream& stream) inline bool ignore(_In_ std::istream& stream)
@@ -84,8 +84,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit). /// \param[in] end Position limit. Default is -1 (no limit).
/// ///
/// \returns /// \returns
/// - true when found /// - \c true when found
/// - false otherwise /// - \c false otherwise
/// ///
template <class T_ID, class T_SIZE, unsigned int ALIGN> template <class T_ID, class T_SIZE, unsigned int ALIGN>
inline bool find(_In_ std::istream& stream, _In_ T_ID id, _In_opt_ std::streamoff end = (std::streamoff)-1) inline bool find(_In_ std::istream& stream, _In_ T_ID id, _In_opt_ std::streamoff end = (std::streamoff)-1)
@@ -178,7 +178,14 @@ namespace stdex {
/// ///
/// \param[in] d Reference to record data /// \param[in] d Reference to record data
/// ///
inline record(_In_ T &d) : data( d) {} inline record(_In_ T &d) : data(d) {}
///
/// Constructs the class
///
/// \param[in] d Reference to record data
///
inline record(_In_ const T &d) : data((T&)d) {} inline record(_In_ const T &d) : data((T&)d) {}
@@ -230,8 +237,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit). /// \param[in] end Position limit. Default is -1 (no limit).
/// ///
/// \returns /// \returns
/// - true when found /// - \c true when found
/// - false otherwise /// - \c false otherwise
/// ///
static inline bool find(_In_ std::istream& stream, _In_opt_ std::streamoff end = (std::streamoff)-1) static inline bool find(_In_ std::istream& stream, _In_opt_ std::streamoff end = (std::streamoff)-1)
{ {

View File

@@ -1,5 +1,5 @@
/* /*
Copyright 2016 Amebis Copyright 2016-2017 Amebis
This file is part of stdex. This file is part of stdex.

View File

@@ -1,5 +1,5 @@
/* /*
Copyright 2016 Amebis Copyright 2016-2017 Amebis
This file is part of stdex. This file is part of stdex.