9 Commits

6 changed files with 2338 additions and 16 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/doc
*.user
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.
@@ -19,6 +19,8 @@
#pragma once
#include <assert.h>
#include <Windows.h>
#include <vector>
@@ -37,7 +39,7 @@
// Product version as a single DWORD
// Note: Used for version comparison within C/C++ code.
//
#define STDEX_VERSION 0x01000000
#define STDEX_VERSION 0x01000100
//
// Product version by components
@@ -47,11 +49,11 @@
//
#define STDEX_VERSION_MAJ 1
#define STDEX_VERSION_MIN 0
#define STDEX_VERSION_REV 0
#define STDEX_VERSION_REV 1
#define STDEX_VERSION_BUILD 0
//
// 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"

View File

@@ -1,5 +1,5 @@
/*
Copyright 2016 Amebis
Copyright 2016-2017 Amebis
This file is part of stdex.
@@ -36,8 +36,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit).
///
/// \returns
/// - true when succeeded
/// - false otherwise
/// - \c true when succeeded
/// - \c false otherwise
///
template <class T_ID>
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
///
/// \returns
/// - true when successful
/// - false otherwise
/// - \c true when successful
/// - \c false otherwise
///
template <class T_SIZE, unsigned int ALIGN>
inline bool ignore(_In_ std::istream& stream)
@@ -84,8 +84,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit).
///
/// \returns
/// - true when found
/// - false otherwise
/// - \c true when found
/// - \c false otherwise
///
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)
@@ -178,7 +178,14 @@ namespace stdex {
///
/// \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) {}
@@ -230,8 +237,8 @@ namespace stdex {
/// \param[in] end Position limit. Default is -1 (no limit).
///
/// \returns
/// - true when found
/// - false otherwise
/// - \c true when found
/// - \c false otherwise
///
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.

View File

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