GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
Gnucash::Gnucash Class Reference
Inheritance diagram for Gnucash::Gnucash:
Gnucash::CoreApp

Public Member Functions

 Gnucash (const char *app_name)
 
void parse_command_line (int argc, char **argv)
 
int start (int argc, char **argv)
 
- Public Member Functions inherited from Gnucash::CoreApp
 CoreApp (const char *app_name)
 
void parse_command_line (int argc, char **argv)
 
void start (void)
 

Additional Inherited Members

- Protected Attributes inherited from Gnucash::CoreApp
std::string m_app_name
 
std::string m_tagline
 
boost::optional< std::string > m_log_to_filename
 
boost::optional< std::string > m_file_to_load
 
bpo::options_description m_opt_desc_all
 
std::unique_ptr< bpo::options_description > m_opt_desc_display
 
bpo::variables_map m_opt_map
 
bpo::positional_options_description m_pos_opt_desc
 

Detailed Description

Definition at line 225 of file gnucash.cpp.

Constructor & Destructor Documentation

◆ Gnucash()

Gnucash::Gnucash::Gnucash ( const char *  app_name)

Definition at line 240 of file gnucash.cpp.

240 : Gnucash::CoreApp (app_name)
241{
242 configure_program_options();
243}

Member Function Documentation

◆ parse_command_line()

void Gnucash::Gnucash::parse_command_line ( int  argc,
char **  argv 
)

Definition at line 247 of file gnucash.cpp.

248{
249 Gnucash::CoreApp::parse_command_line (argc, argv);
250}

◆ start()

int Gnucash::Gnucash::start ( int  argc,
char **  argv 
)

Definition at line 267 of file gnucash.cpp.

268{
269 Gnucash::CoreApp::start();
270
271 /* Now the module files are looked up, which might cause some library
272 initialization to be run, hence gtk must be initialized beforehand. */
273 gnc_module_system_init();
274
275 gnc_gui_init();
276
277 auto user_file_spec = t_file_spec {
278 m_nofile,
279 m_file_to_load ? m_file_to_load->c_str() : ""};
280 scm_boot_guile (argc, argv, scm_run_gnucash, &user_file_spec);
281
282 return 0;
283}
GncMainWindow * gnc_gui_init(void)
Initialize the gnucash gui.

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