trick/include/trick/TrickView.hh
Alex Lin 19025d77ad Standardize directory names
Reorganized.  Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory.  Created a libexec directory that holds all of the executables that users don't need to execute directly.  Changed all of the executables remaining in bin to start with "trick-".  In the sim_services directories changed all source files to find the Trick headers in their new location.  Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level.  Moved the makefiles, docs, man, and other architecture independent files into a top level share directory.  Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on.

refs #63
2015-06-09 08:44:42 -05:00

112 lines
3.0 KiB
C++

/*
PURPOSE: (Class for starting Trick View.)
*/
#ifndef TRICKVIEW_HH
#define TRICKVIEW_HH
#include <string>
#include "trick/ExternalApplication.hh"
namespace Trick {
/**
* Provides for automatic launching of Trick View.
*
* @author Derek Bankieris
*/
class TrickView : public ExternalApplication {
public:
/** Constructor. */
TrickView();
/**
* @copydoc ExternalApplication::set_arguments
*/
void set_arguments(std::string args);
/**
* Sets whether or not only strip charts should be displayed.
*
* @param strip_charts_only whether or not only strip charts should be displayed
*/
void set_strip_charts_only(bool strip_charts_only);
/**
* Gets whether or not only strip charts should be displayed.
*
* @return whether or not only strip charts should be displayed
*/
bool get_strip_charts_only();
/**
* Sets the file to be automatically loaded when this application launches.
*
* @param file the file to be automatically loaded when this application launches
*/
void set_auto_open_file(std::string file);
/**
* Gets the file to be automatically loaded when this application launches.
*
* @return the file to be automatically loaded when this application launches
*/
std::string get_auto_open_file();
/**
* Sets the file to be automatically loaded and set when this application launches.
*
* @param file the file to be automatically loaded and set when this application launches
*/
void set_auto_open_and_set_file(std::string file);
/**
* Gets the file to be automatically loaded and set when this application launches.
*
* @return the file to be automatically loaded and set when this application launches
*/
std::string get_auto_open_and_set_file();
/**
* Sets the file to be automatically set when this application launches.
*
* @param file the file to be automatically set when this application launches
*/
void set_auto_set_file(std::string file);
/**
* Gets the file to be automatically set when this application launches.
*
* @return the file to be automatically set when this application launches
*/
std::string get_auto_set_file();
private:
bool strip_charts_only;
bool strip_charts_only_set;
std::string open_file;
bool open_file_set;
std::string open_set_file;
bool open_set_file_set;
std::string set_file;
bool set_file_set;
/**
* @copydoc ExternalApplication::create_arguments_string
*/
std::string create_arguments_string();
/** Prevent SWIG from trying to invoke operator= on ostringstream. */
TrickView &operator=(const TrickView &);
};
}
#endif