All Classes Files Functions Variables Enumerations Enumerator Macros
output.hpp
Go to the documentation of this file.
1 
10 #ifndef OUTPUT_H
11 #define OUTPUT_H
12 
13 #include <iostream>
14 #include <string>
15 
16 #include "options.hpp"
17 #include "library.hpp"
18 #include "handler.hpp"
19 
20 using namespace std;
21 
27 
28 class OutPut
29 {
30 public:
31  // Constructors and destructors
32  OutPut(); // Default constructor
33  OutPut( Library *, vector<ErrorHandler> &, ConfigOpts * ); // Constructor: set options to determine output requirements
34  ~OutPut(); // Default destructor
35 
36  // User methods
37  static void outputSummary( Library *, ConfigOpts *, ostream &, int ); // Outputs summary information from objects
38  static void outputError( vector<ErrorHandler> &, ostream & ); // Outputs the error information from an object
39  static void outputTasks( Episode *, ConfigOpts *, ostream & ); // Outputs the commands needed to perform tasks
40 
41  static void outputXML( Library *, ostream & ); // Outputs summary information from objects in XML format
42  static void outputMissing( Library *, ostream & ); // Outputs missing information from objects
43 
44 private:
45  // Internal methods
46  static bool isDir( Episode * ); // Check if the objects new directory exists
47  static string xmlParse( string ); // Replaces & with xml &amp;
48 
49  // Output file streams
50  ostream *tout;
51  ofstream lout;
52  ofstream sout;
53  ofstream fout;
54 };
55 
56 #endif
ofstream lout
Output file stream object for a log file.
Definition: output.hpp:51
The Library class stores all info required to describe all shows.
ofstream fout
Output file stream object for a file (WTF?)
Definition: output.hpp:53
Stores parsed file information regarding a single episode; to be used as a vector.
Definition: episode.hpp:25
The ErrorHandler class stores an error as it occurs.
Prints summary and error information from objects.
Definition: output.hpp:28
ofstream sout
Output file stream object for a script file.
Definition: output.hpp:52
The ConfigOpts class stores all config options, settings, and flags for clerk.
ostream * tout
Temporary output stream pointer, to store output file stream object address.
Definition: output.hpp:50
Stores all config options, settings, and flags for clerk.
Definition: options.hpp:60
Stores all info required to describe all shows.
Definition: library.hpp:30