cgv
Loading...
Searching...
No Matches
cgv::base::user_feedback Struct Reference

function pointers implementing user feedback functionality of find_or_download_data_file() function More...

#include <import.h>

Public Member Functions

 user_feedback (void(*_message)(const std::string &)=0, int(*_query)(const std::string &, const std::string &, int)=0, std::string(*_ask_dir)(const std::string &, const std::string &)=0)
 default construction results in no user feedback
 

Public Attributes

void(* message )(const std::string &text)
 pointer to function that shows a text message to user
 
int(* query )(const std::string &text, const std::string &answers, int default_answer)
 pointer to function that shows a text query and asks for an answer
 
std::string(* ask_dir )(const std::string &text, const std::string &path)
 pointer to function that opens a directory save dialog
 

Detailed Description

function pointers implementing user feedback functionality of find_or_download_data_file() function

Definition at line 55 of file import.h.

Constructor & Destructor Documentation

◆ user_feedback()

cgv::base::user_feedback::user_feedback ( void(*)(const std::string &)  _message = 0,
int(*)(const std::string &, const std::string &, int _query = 0,
std::string(*)(const std::string &, const std::string &)  _ask_dir = 0 
)
inline

default construction results in no user feedback

Definition at line 64 of file import.h.

Member Data Documentation

◆ ask_dir

std::string(* cgv::base::user_feedback::ask_dir) (const std::string &text, const std::string &path)

pointer to function that opens a directory save dialog

Definition at line 62 of file import.h.

◆ message

void(* cgv::base::user_feedback::message) (const std::string &text)

pointer to function that shows a text message to user

Definition at line 58 of file import.h.

◆ query

int(* cgv::base::user_feedback::query) (const std::string &text, const std::string &answers, int default_answer)

pointer to function that shows a text query and asks for an answer

Definition at line 60 of file import.h.


The documentation for this struct was generated from the following file: