Castor3D 0.16.0
Multiplatform 3D engine
Classes | Namespaces | Typedefs | Functions
ConfigModule.hpp File Reference

Classes

struct  castor::StringHash
 

Namespaces

namespace  castor
 

Typedefs

using castor::xchar = char
 
using castor::mbchar = char
 
using castor::wchar = wchar_t
 
using castor::u32char = char32_t
 
using castor::String = std::basic_string< xchar >
 
using castor::StringView = std::basic_string_view< xchar >
 
using castor::StringStream = std::basic_stringstream< xchar >
 
using castor::OutputStringStream = std::basic_ostringstream< xchar >
 
using castor::InputStringStream = std::basic_istringstream< xchar >
 
using castor::OutputStream = std::basic_ostream< xchar >
 
using castor::InputStream = std::basic_istream< xchar >
 
using castor::MbString = std::basic_string< mbchar >
 
using castor::MbStringView = std::basic_string_view< mbchar >
 
using castor::MbStringStream = std::basic_stringstream< mbchar >
 
using castor::MbOutputStringStream = std::basic_ostringstream< mbchar >
 
using castor::MbInputStringStream = std::basic_istringstream< mbchar >
 
using castor::MbOutputStream = std::basic_ostream< mbchar >
 
using castor::MbInputStream = std::basic_istream< mbchar >
 
using castor::WString = std::basic_string< wchar >
 
using castor::WStringView = std::basic_string_view< wchar >
 
using castor::WStringStream = std::basic_stringstream< wchar >
 
using castor::WOutputStringStream = std::basic_ostringstream< wchar >
 
using castor::WInputStringStream = std::basic_istringstream< wchar >
 
using castor::WOutputStream = std::basic_ostream< wchar >
 
using castor::WInputStream = std::basic_istream< wchar >
 
using castor::U32String = std::basic_string< u32char >
 
using castor::U32StringView = std::basic_string_view< u32char >
 
using castor::U32StringStream = std::basic_stringstream< u32char >
 
using castor::U32OutputStringStream = std::basic_ostringstream< u32char >
 
using castor::U32InputStringStream = std::basic_istringstream< u32char >
 
using castor::U32OutputStream = std::basic_ostream< u32char >
 
using castor::U32InputStream = std::basic_istream< u32char >
 
template<class FuncT >
using castor::Function = std::function< FuncT >
 
template<typename FirstT , typename SecondT >
using castor::Pair = std::pair< FirstT, SecondT >
 
template<typename KeyT , typename PredT = std::less<>, typename AllocT = std::allocator< KeyT >>
using castor::Set = std::set< KeyT, PredT, AllocT >
 
template<typename KeyT , typename DataT , typename PredT = std::less<>, typename AllocT = std::allocator< Pair< KeyT const, DataT > >>
using castor::Map = std::map< KeyT, DataT, PredT, AllocT >
 
template<typename KeyT , typename DataT , typename PredT = std::less<>, typename AllocT = std::allocator< Pair< KeyT const, DataT > >>
using castor::MultiMap = std::multimap< KeyT, DataT, PredT, AllocT >
 
template<typename KeyT , typename DataT , typename PredT = std::less<>, typename AllocT = std::allocator< KeyT >>
using castor::MultiSet = std::multiset< KeyT, PredT, AllocT >
 
template<typename KeyT , typename DataT , typename HashT = std::hash< KeyT >, typename KeyEqT = std::equal_to<>, typename AllocT = std::allocator< Pair< KeyT const, DataT > >>
using castor::UnorderedMap = std::unordered_map< KeyT, DataT, HashT, KeyEqT, AllocT >
 
template<typename KeyT , typename HashT = std::hash< KeyT >, typename KeyEqT = std::equal_to<>, typename AllocT = std::allocator< KeyT >>
using castor::UnorderedSet = std::unordered_set< KeyT, HashT, KeyEqT >
 
template<typename DataT , typename AllocT = std::allocator< DataT >>
using castor::Vector = std::vector< DataT, AllocT >
 
template<typename DataT , typename AllocT = std::allocator< DataT >>
using castor::List = std::list< DataT, AllocT >
 
template<typename DataT , size_t SizeT>
using castor::Array = std::array< DataT, SizeT >
 
template<class DataT , class AllocT = std::allocator< DataT >>
using castor::Deque = std::deque< DataT, AllocT >
 
template<typename DataT , class ContainerT = Deque< DataT >>
using castor::Stack = std::stack< DataT, ContainerT >
 
template<typename DataT >
using castor::StringMap = Map< String, DataT >
 
template<typename DataT >
using castor::UnorderedStringMap = std::unordered_map< String, DataT, StringHash, std::equal_to<> >
 
using castor::StringSet = std::set< String, StringHash, std::equal_to<> >
 
using castor::UnorderedStringSet = std::unordered_set< String, StringHash, std::equal_to<> >
 
using castor::Seconds = std::chrono::seconds
 
using castor::Milliseconds = std::chrono::milliseconds
 
using castor::Microseconds = std::chrono::microseconds
 
using castor::Nanoseconds = std::chrono::nanoseconds
 

Functions

 castor::CU_DeclareVector (MbString, MbString)
 
 castor::CU_DeclareVector (String, String)
 
 castor::CU_DeclareVector (StringView, StringView)
 
 castor::CU_DeclareVector (MbStringView, MbStringView)
 
 castor::CU_DeclareMap (String, uint32_t, UInt32Str)
 
 castor::CU_DeclareMap (String, uint64_t, UInt64Str)
 
 castor::CU_DeclareMap (String, bool, BoolStr)
 
 castor::CU_DeclareMap (String, String, StrStr)
 
 castor::CU_DeclareSet (String, Str)
 
 castor::CU_DeclareMap (uint32_t, String, StrUInt32)
 
template<typename CharT >
std::basic_stringstream< CharT > castor::makeStringStreamT ()
 
StringStream castor::makeStringStream ()
 
CU_API String castor::makeString (MbStringView const &in)
 
CU_API String castor::makeString (WStringView const &in)
 
CU_API String castor::makeString (U32StringView const &in)
 
CU_API MbString castor::toUtf8 (WStringView in)
 
CU_API WString castor::toSystemWide (MbStringView in)
 
CU_API U32String castor::toUtf8U32String (StringView in)
 
String castor::makeString (MbString const &in)
 
String castor::makeString (WString const &in)
 
String castor::makeString (U32String const &in)
 
String castor::makeString (mbchar const *in)
 
String castor::makeString (wchar const *in)
 
String castor::makeString (u32char const *in)
 
String castor::makeString (mbchar const *in, size_t length)
 
String castor::makeString (wchar const *in, size_t length)
 
String castor::makeString (u32char const *in, size_t length)
 
MbString castor::toUtf8 (MbStringView in)
 
MbString castor::toUtf8 (MbString const &in)
 
MbString castor::toUtf8 (mbchar const *in)
 
MbString castor::toUtf8 (mbchar const *in, size_t length)
 
MbString castor::toUtf8 (WString const &in)
 
MbString castor::toUtf8 (wchar const *in, size_t length)
 
MbString castor::toUtf8 (wchar const *in)
 
WString castor::toSystemWide (MbString const &in)
 
WString castor::toSystemWide (mbchar const *in, size_t length)
 
WString castor::toSystemWide (mbchar const *in)
 
WString castor::toSystemWide (WStringView in)
 
WString castor::toSystemWide (WString const &in)
 
WString castor::toSystemWide (wchar const *in)
 
WString castor::toSystemWide (wchar const *in, size_t length)
 
U32String castor::toUtf8U32String (String const &in)
 
U32String castor::toUtf8U32String (xchar const *in, size_t length)
 

Configuration

#define CU_UseWChar

#define cuT(x)   x
 
constexpr castor::Seconds operator""_s (unsigned long long value)
 
constexpr castor::Milliseconds operator""_ms (unsigned long long value)
 
constexpr castor::Microseconds operator""_us (unsigned long long value)
 
constexpr castor::Nanoseconds operator""_ns (unsigned long long value)
 

Macro Definition Documentation

◆ cuT

#define cuT ( x)    x

! The macro to use with constant strings, id est : cuT( "a string" ).

Referenced by castor3d::CU_DeclareAttributeParser(), castor3d::DebugConfig::DebugConfig(), castor3d::BinaryParserBase< TParsed >::doParseHeader(), castor3d::BinaryWriterBase< TWritten >::doWriteHeader(), castor3d::getName(), castor3d::getName(), castor::ImageLayout::getName(), castor3d::StylesHolder::getStyle(), castor3d::AttenuationMapComponent::Plugin::getTextureFlagsName(), castor3d::ClearcoatMapComponent::Plugin::getTextureFlagsName(), castor3d::ClearcoatNormalMapComponent::Plugin::getTextureFlagsName(), castor3d::ClearcoatRoughnessMapComponent::Plugin::getTextureFlagsName(), castor3d::ColourMapComponent::Plugin::getTextureFlagsName(), castor3d::EmissiveMapComponent::Plugin::getTextureFlagsName(), castor3d::GlossinessMapComponent::Plugin::getTextureFlagsName(), castor3d::HeightMapComponent::Plugin::getTextureFlagsName(), castor3d::IridescenceMapComponent::Plugin::getTextureFlagsName(), castor3d::IridescenceThicknessMapComponent::Plugin::getTextureFlagsName(), castor3d::MetalnessMapComponent::Plugin::getTextureFlagsName(), castor3d::NormalMapComponent::Plugin::getTextureFlagsName(), castor3d::OcclusionMapComponent::Plugin::getTextureFlagsName(), castor3d::OpacityMapComponent::Plugin::getTextureFlagsName(), castor3d::RoughnessMapComponent::Plugin::getTextureFlagsName(), castor3d::SheenMapComponent::Plugin::getTextureFlagsName(), castor3d::SheenRoughnessMapComponent::Plugin::getTextureFlagsName(), castor3d::SpecularFactorMapComponent::Plugin::getTextureFlagsName(), castor3d::SpecularMapComponent::Plugin::getTextureFlagsName(), castor3d::TransmissionMapComponent::Plugin::getTextureFlagsName(), castor3d::TransmittanceMapComponent::Plugin::getTextureFlagsName(), castor3d::TextureUnit::hasAnimation(), castor::ResourceMergerT< CacheT >::operator()(), castor3d::MovableMergerT< CacheT >::operator()(), castor3d::SceneNodeMergerT< CacheT >::operator()(), castor3d::ParametersT< KeyT >::parse(), castor3d::BinaryParserBase< TParsed >::parse(), castor3d::BinaryParserBase< TParsed >::parse(), castor3d::DebugConfig::registerValue(), castor::ResourceCacheBaseT< ResT, KeyT, TraitsT >::reportAdded(), castor::ResourceCacheBaseT< ResT, KeyT, TraitsT >::reportCreation(), castor::ResourceCacheBaseT< ResT, KeyT, TraitsT >::reportDuplicate(), castor::ResourceCacheBaseT< ResT, KeyT, TraitsT >::reportNull(), and castor::ResourceCacheBaseT< ResT, KeyT, TraitsT >::reportUnknown().

Function Documentation

◆ operator""_ms()

constexpr castor::Milliseconds operator""_ms ( unsigned long long value)
constexpr

◆ operator""_ns()

constexpr castor::Nanoseconds operator""_ns ( unsigned long long value)
constexpr

◆ operator""_s()

constexpr castor::Seconds operator""_s ( unsigned long long value)
constexpr

◆ operator""_us()

constexpr castor::Microseconds operator""_us ( unsigned long long value)
constexpr