Feel++ 0.91.0
Public Member Functions

MyApp Class Reference

Inheritance diagram for MyApp:
Feel::Application

List of all members.

Public Member Functions

 MyApp (int argc, char **argv, AboutData const &)
 MyApp (int argc, char **argv, AboutData const &, po::options_description const &)
void run ()

Detailed Description

This is a demo class to illustrate what is done (at the very least) in subclasses of Feel::Application


Constructor & Destructor Documentation

MyApp::MyApp ( int  argc,
char **  argv,
AboutData const &  ad 
)

constructor only about data and no options description

MyApp::MyApp ( int  argc,
char **  argv,
AboutData const &  ad,
po::options_description const &  od 
)

constructor about data and options description


Member Function Documentation

void MyApp::run ( ) [virtual]

This function is responsible for the actual work done by MyApp.

print the help if --help is passed as an argument

 */
    if ( this->vm().count( "help" ) )
        {
            std::cout << this->optionsDescription() << "\n";
            return;
        }

store all subsequent data files in a HOME/feel/doc/tutorial/myapp/

 */
    //# marker8 #
    this->changeRepository( boost::format( "doc/tutorial/%1%/" )
                            % this->about().appName() );
    //# endmarker8 #

print some information that will be written in the log file in HOME/feel/doc/tutorial/myapp/myapp-1.0

 */
    Log() << "the value of dt is " << this->vm()["dt"].as<double>() << "\n";

Reimplemented from Feel::Application.

References Feel::Application::about(), Feel::Application::changeRepository(), Feel::Application::optionsDescription(), and Feel::Application::vm().

Referenced by main().