[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin1/ptbatcher/ProjectArray.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #ifndef PROJECTARRAY_H
00028 #define PROJECTARRAY_H
00029 
00030 #include <wx/dynarray.h>
00031 #include <wx/string.h>
00032 #include "panodata/PanoramaOptions.h"
00033 #include <wx/log.h>
00034 #include "PT/Panorama.h"
00035 #include "base_wx/platform.h"
00036 
00037 using namespace HuginBase;
00038 
00039 class Project;
00040 
00041 WX_DECLARE_OBJARRAY(Project, ProjectArray);             //declare an array of projects - main data structure for the batch processor
00042 WX_DEFINE_ARRAY_INT(int,IntArray);
00043 
00044 class Project{
00045 public:
00046         enum Status{
00047                 FINISHED=0,
00048                 WAITING,
00049                 RUNNING,
00050                 FAILED,
00051                 MISSING,
00052                 PAUSED
00053         };
00054 
00055         //generator for unique ids of projects
00056         static long idGenerator;
00057         //unique id of project
00058         long id;
00059         //project status
00060         Status status;
00061         //project input path
00062         wxString path;
00063         //project output prefix path and filename
00064         wxString prefix;
00065         //last modification date and time of project
00066         wxDateTime modDate;
00067         //project options
00068         HuginBase::PanoramaOptions options;
00069         //true if project is missing or should be skipped for a different reason when executing batch
00070         bool skip;
00071 
00072         //Constructor for project files
00073         Project(wxString pth,wxString pfx);
00074         //Constructor for applications
00075         Project(wxString command);
00076         //Returns status of project in string form
00077         wxString GetStatusText();
00078         //Reads and returns options from a project file 
00079         PanoramaOptions ReadOptions(wxString projectFile);
00080         //Resets the project options of project
00081         void ResetOptions();
00082 };
00083 
00084 #endif //PROJECTARRAY_H

Generated on Mon Sep 20 01:01:26 2010 for Hugintrunk by doxygen 1.3.9.1