Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::HotReloader Class Reference

#include <hot_reload.hpp>

Public Member Functions

 HotReloader (const std::filesystem::path &js_file, ReloadCallback on_reload)
 HotReloader (const std::filesystem::path &directory, const std::string &entry_file, ReloadCallback on_reload)
 ~HotReloader ()
 HotReloader (const HotReloader &)=delete
HotReloader & operator= (const HotReloader &)=delete
bool poll_reload ()
const std::filesystem::path & watched_path () const
uint32_t reload_count () const
bool has_pending_reload () const
bool should_reload_for_modified_file (const std::filesystem::path &path)

Static Public Attributes

static constexpr bool kWatchesFiles = ! 0

Constructor & Destructor Documentation

◆ HotReloader() [1/3]

pulp::view::HotReloader::HotReloader ( const std::filesystem::path & js_file,
ReloadCallback on_reload )

◆ HotReloader() [2/3]

pulp::view::HotReloader::HotReloader ( const std::filesystem::path & directory,
const std::string & entry_file,
ReloadCallback on_reload )

◆ ~HotReloader()

pulp::view::HotReloader::~HotReloader ( )

◆ HotReloader() [3/3]

pulp::view::HotReloader::HotReloader ( const HotReloader & )
delete

Member Function Documentation

◆ has_pending_reload()

bool pulp::view::HotReloader::has_pending_reload ( ) const

◆ operator=()

HotReloader & pulp::view::HotReloader::operator= ( const HotReloader & )
delete

◆ poll_reload()

bool pulp::view::HotReloader::poll_reload ( )

◆ reload_count()

uint32_t pulp::view::HotReloader::reload_count ( ) const
inline

◆ should_reload_for_modified_file()

bool pulp::view::HotReloader::should_reload_for_modified_file ( const std::filesystem::path & path)

◆ watched_path()

const std::filesystem::path & pulp::view::HotReloader::watched_path ( ) const
inline

Member Data Documentation

◆ kWatchesFiles

bool pulp::view::HotReloader::kWatchesFiles = ! 0
staticconstexpr

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/hot_reload.hpp