29 #ifndef NVXIO_APPLICATION_HPP
30 #define NVXIO_APPLICATION_HPP
32 #include <initializer_list>
126 const std::string &description,
143 virtual void addOption(
char shortName,
const std::string &longName,
144 const std::string &description,
159 std::vector<std::string> *result) = 0;
183 virtual void init(
int &argc,
char **argv) = 0;
249 virtual bool sleepToLimitFPS(
double totalProcessTimeMs,
double fpsLimit = 0) = 0;
254 #endif // NVXIO_APPLICATION_HPP
virtual void addBooleanOption(char shortName, const std::string &longName, const std::string &description, bool *result)=0
Adds Boolean command line option to the application.
virtual void setDescription(const std::string &description)=0
Sets a description of the application for the console Help message.
virtual bool getEventLogDumpFramesFlag() const =0
virtual int getScenarioLoopCount() const =0
Indicates the object cannot be created.
ApplicationExitCode
Defines status codes that your application can return.
std::unique_ptr< OptionHandler > ptr
Indicates the supplied graph failed verification.
virtual std::string findSampleFilePath(const std::string &filename) const =0
Finds the file in the sample data directory.
Indicates the parameter provided is too big or too small in dimension, or is not of even size...
Indicates the parameter provided does not match the algorithm's possible values or a validation proce...
Indicates a generic error code; this code is used when no other code describes the error...
Indicates the operation succeeded.
virtual std::string getScenarioName() const =0
Indicates the framesource exists but cannot be read.
The OptionHandler interface.
virtual void init(int &argc, char **argv)=0
Initializes the application.
Indicates the resource (file, etc.) cannot be acquired.
virtual ~Application()
Destructor.
Indicates the parameter provided is in an invalid format.
virtual std::string getPreferredRenderName() const =0
virtual bool sleepToLimitFPS(double totalProcessTimeMs, double fpsLimit=0)=0
Suspends execution of the calling thread to limit frame rate.
Indicates an internal or implicit allocation failure.
virtual bool getVerboseFlag() const =0
Indicates the render cannot be created.
virtual void addOption(char shortName, const std::string &longName, const std::string &description, OptionHandler::ptr handler)=0
Adds arbitrary command line option to the application.
virtual std::string findLibraryFilePath(const std::string &filename) const =0
Finds the file in the VisionWorks data directory.
virtual double getFPSLimit() const =0
Gets a limit for frame rate in frames per second.
virtual void allowPositionalParameters(const std::string &placeholder, std::vector< std::string > *result)=0
Enables support of positional parameters to be used with the application.
virtual std::string getEventLogName() const =0
virtual int getSourceDefaultTimeout() const =0
virtual void setSourceDefaultTimeout(int timeout)=0