3ds Max C++ API Reference
maxvariant.h File Reference
#include "maxstring.h"
#include <PropIdl.h>
#include <vector>

Namespaces

 MaxSDK
 
 MaxSDK::Util
 

Functions

UtilExport MaxString VariantToString (const PROPVARIANT *, UINT encoding=CP_ACP, USHORT flags=0)
 Convert a variant into a string. More...
 
UtilExport bool VariantIsString (const PROPVARIANT *)
 Determine if a variant is already a string. More...
 
UtilExport bool VariantIsStringVector (const PROPVARIANT *)
 Determine if a variant is a vector of string. More...
 
template<typename T >
size_t VariantToStringVector (const PROPVARIANT *, std::vector< T > &, UINT encoding=CP_ACP)
 Convert a variant into a std::vector. More...
 
template UtilExport size_t VariantToStringVector< MaxString > (const PROPVARIANT *, std::vector< MaxString > &, UINT encoding)
 
template UtilExport size_t VariantToStringVector< CStr > (const PROPVARIANT *, std::vector< CStr > &, UINT encoding)
 
template UtilExport size_t VariantToStringVector< WStr > (const PROPVARIANT *, std::vector< WStr > &, UINT encoding)
 
UtilExport bool SetStringToVariant (PROPVARIANT *, const char *str, bool clear=true)
 Sets a string inside a variant. More...
 
UtilExport bool SetStringToVariant (PROPVARIANT *, const wchar_t *str, bool clear=true)
 Sets a string inside a variant. More...
 
UtilExport bool VariantAddToVector (PROPVARIANT *v, const char *, UINT encoding=CP_ACP)
 Add a string entry at the end of a variant vector. More...
 
UtilExport bool VariantAddToVector (PROPVARIANT *v, const wchar_t *, UINT encoding=CP_ACP)
 Add a string entry at the end of a variant vector. More...
 
UtilExport bool VariantAddToVector (PROPVARIANT *v, const PROPVARIANT *, bool give=false, UINT encoding=CP_ACP)
 Add an entry at the end of a variant vector. More...
 
UtilExport bool DoesVariantContainWideChars (const PROPVARIANT *variant)
 Determine if a variant contains wide-chars. More...
 
UtilExport bool VariantConvertToUTF16 (PROPVARIANT *destVar, const PROPVARIANT *sourceVar, UINT codePage=CP_ACP)
 Convert a variant to UTF16. More...
 
UtilExport bool VariantConvertToMBCS (PROPVARIANT *destVar, const PROPVARIANT *sourceVar, UINT codePage=CP_ACP)
 Convert a variant to MBCS. More...
 
MaxString VariantToString (const VARIANT *v, UINT encoding=CP_ACP, USHORT flags=0)
 
MaxString VariantToString (const PROPVARIANT &v, UINT encoding=CP_ACP, USHORT flags=0)
 
MaxString VariantToString (const VARIANT &v, UINT encoding=CP_ACP, USHORT flags=0)
 
bool VariantIsStringVector (const VARIANT *v)
 
bool VariantIsStringVector (const PROPVARIANT &v)
 
bool VariantIsStringVector (const VARIANT &v)
 
size_t VariantToStringVector (const VARIANT *v, std::vector< MaxString > &ov, UINT encoding=CP_ACP)
 
size_t VariantToStringVector (const PROPVARIANT &v, std::vector< MaxString > &ov, UINT encoding=CP_ACP)
 
size_t VariantToStringVector (const VARIANT &v, std::vector< MaxString > &ov, UINT encoding=CP_ACP)