Main Page   Modules   Data Structures   File List   Data Fields   Globals  

libdar::user_interaction_callback_c Class Reference

Callback-based implementation of the user interaction class compatible with C type structs. More...

#include <user_interaction_specific.hpp>


Public Methods

 user_interaction_callback_c (dar_user_interaction_struct &callbacks)
 Builds user interaction callback class with C type struct.

void pause (const std::string &message)
 Overrides method from parent class.

void warning (const std::string &message)
 Overrides method from parent class.

std::string get_string (const std::string &message, bool echo)
 Overrides method from parent class.

void listing (const std::string &flag, const std::string &perm, const std::string &uid, const std::string &gid, const std::string &size, const std::string &date, const std::string &filename, bool is_dir, bool has_children)
 Overrides method from parent class.

virtual user_interaction * clone () const
 Overrides method from parent class.


Detailed Description

Callback-based implementation of the user interaction class compatible with C type structs.

Used to interface Libdar C++ with C binding.

Definition at line 64 of file user_interaction_specific.hpp.


Constructor & Destructor Documentation

libdar::user_interaction_callback_c::user_interaction_callback_c dar_user_interaction_struct   callbacks
 

Builds user interaction callback class with C type struct.

Parameters:
callbacks  Contains funtion pointers with C calling convention to callbacks. Three mandatory callbacks must be defined. Listing callback may be NULL, but listing mode will be enabled if the callback is set.


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