CARMA C++
SDPUtil.h
Go to the documentation of this file.
1 
11 #ifndef CARMA_SDP_SDPUTIL_H
12 #define CARMA_SDP_SDPUTIL_H
13 
14 // Carma includes
15 
16 // Carma tools includes
17 
18 // C++ standard library includes
19 #include <string>
20 #include <vector>
21 
22 // Namespace using directives
23 
24 // Class definitions
25 namespace carma {
26  namespace sdp {
33  class SDPUtil
34  {
35  public:
38  static std::string astroHdrFileName(const std::string& dir,
39  const std::string& obsBlockId);
40 
43  static std::string sdpFileName(const std::string& dir,
44  const std::string& astroHdrFile);
45 
48  static void deleteSDPFile(const std::string& outputSDPFile);
49 
54  static std::string extractObsBlockId(const std::string& fileName);
55 
58  static std::vector<std::string> parseObsBlockId(const std::string&
59  obsBlockId);
60  static void mailRTS(const std::string& message);
61  };
62  }; // namespace sdp
63 }; // namespace carma
64 
65 
66 #endif //CARMA_SDP_SDPUTIL_H
static std::vector< std::string > parseObsBlockId(const std::string &obsBlockId)
Parse an obs.
static std::string astroHdrFileName(const std::string &dir, const std::string &obsBlockId)
Compose the astro header file name for a given observing block id.
static std::string extractObsBlockId(const std::string &fileName)
Extract the observing block id.
static std::string sdpFileName(const std::string &dir, const std::string &astroHdrFile)
Compose output SDP file name associated with an astro header file.
static void deleteSDPFile(const std::string &outputSDPFile)
Delete an existing sdp output file.
Utility class for the science data products subsystem.
Definition: SDPUtil.h:33