Audacity 3.2.0
Classes | Namespaces | Macros | Typedefs | Functions | Variables
module_win32.cpp File Reference
#include "public.sdk/source/vst/utility/optional.h"
#include "public.sdk/source/vst/utility/stringconvert.h"
#include "public.sdk/source/vst/hosting/module.h"
#include <windows.h>
#include <shlobj.h>
#include <algorithm>
#include <iostream>
#include <experimental/filesystem>
Include dependency graph for module_win32.cpp:

Go to the source code of this file.

Classes

struct  VST3::Hosting::anonymous_namespace{module_win32.cpp}::Ole
 
class  VST3::Hosting::anonymous_namespace{module_win32.cpp}::Win32Module
 

Namespaces

namespace  VST3
 
namespace  VST3::Hosting
 
namespace  VST3::Hosting::anonymous_namespace{module_win32.cpp}
 

Macros

#define USE_FILESYSTEM   0
 
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
 
#define USE_OLE   !USE_FILESYSTEM
 

Typedefs

using InitModuleFunc = bool(PLUGIN_API *)()
 
using ExitModuleFunc = bool(PLUGIN_API *)()
 

Functions

template<typename T >
std::string ConvertToUTF8 (const T *str)
 
bool VST3::Hosting::anonymous_namespace{module_win32.cpp}::checkVST3Package (filesystem::path &p)
 
bool VST3::Hosting::anonymous_namespace{module_win32.cpp}::isFolderSymbolicLink (const filesystem::path &p)
 
Optional< std::string > VST3::Hosting::anonymous_namespace{module_win32.cpp}::getKnownFolder (REFKNOWNFOLDERID folderID)
 
VST3::Optional< filesystem::path > VST3::Hosting::anonymous_namespace{module_win32.cpp}::resolveShellLink (const filesystem::path &p)
 
void VST3::Hosting::anonymous_namespace{module_win32.cpp}::findFilesWithExt (const filesystem::path &path, const std::string &ext, Module::PathList &pathList, bool recursive=true)
 
void VST3::Hosting::anonymous_namespace{module_win32.cpp}::findModules (const filesystem::path &path, Module::PathList &pathList)
 
Optional< filesystem::path > VST3::Hosting::anonymous_namespace{module_win32.cpp}::getContentsDirectoryFromModuleExecutablePath (const std::string &modulePath)
 

Variables

constexpr auto VST3::Hosting::anonymous_namespace{module_win32.cpp}::architectureString = "x86-win"
 

Macro Definition Documentation

◆ _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING

#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING

Definition at line 64 of file module_win32.cpp.

◆ USE_FILESYSTEM

#define USE_FILESYSTEM   0

Definition at line 54 of file module_win32.cpp.

◆ USE_OLE

#define USE_OLE   !USE_FILESYSTEM

Definition at line 100 of file module_win32.cpp.

Typedef Documentation

◆ ExitModuleFunc

using ExitModuleFunc = bool (PLUGIN_API*) ()

Definition at line 74 of file module_win32.cpp.

◆ InitModuleFunc

using InitModuleFunc = bool (PLUGIN_API*) ()

Definition at line 73 of file module_win32.cpp.

Function Documentation

◆ ConvertToUTF8()

template<typename T >
std::string ConvertToUTF8 ( const T *  str)

Definition at line 78 of file module_win32.cpp.

79{
80 static_assert(sizeof(T) == sizeof(Steinberg::Vst::TChar));
81 return VST3::StringConvert::convert(
82 static_cast<const Steinberg::Vst::TChar*>(static_cast<const void*>(str)));
83}
#define str(a)

References str.

Referenced by VST3::Hosting::anonymous_namespace{module_win32.cpp}::getKnownFolder().

Here is the caller graph for this function: