mactype/array.h
MacType 07a1eee62c Initial release. Some files may missing, please report.
Dependency not included.

Deps: EasyHook, FreeType
2016-05-30 17:12:15 +08:00

59 lines
1.0 KiB
C++

#pragma once
#ifndef _INC_SHLWAPI
#define NO_SHLWAPI_STRFCNS
#define NO_SHLWAPI_PATH
#define NO_SHLWAPI_REG
#define NO_SHLWAPI_STREAM
#define NO_SHLWAPI_GDI
#include <shlwapi.h>
#endif
#if !defined(_INC_SHLWAPI) || defined(NOSHLWAPI) || defined(NO_SHLWAPI_PATH)
BOOL WINAPI PathIsRelative(LPCTSTR pszPath);
BOOL WINAPI PathRemoveFileSpec(LPTSTR pszPath);
LPTSTR WINAPI PathFindExtension(LPCTSTR pszPath);
LPTSTR WINAPI PathAddBackslash(LPTSTR pszPath);
LPTSTR WINAPI PathCombine(LPTSTR pszDest, LPCTSTR pszDir, LPCTSTR pszFile);
#endif
#include <atlbase.h>
template <class T>
class CArray : public CSimpleArray<T>
{
public:
T* Begin() const
{
return m_aT;
}
T* End() const
{
return m_aT + m_nSize;
}
};
template <class T>
class CValArray : public CSimpleValArray<T>
{
public:
T* Begin() const
{
return m_aT;
}
T* End() const
{
return m_aT + m_nSize;
}
};
template <class T>
class CPtrArray : public CValArray<T*>
{
};
template <class TKey, class TVal>
class CMap : public CSimpleMap<TKey, TVal>
{
};