8 #ifndef NTV2SUPPORTLOGGER_H
9 #define NTV2SUPPORTLOGGER_H
52 static int Version (
void);
59 virtual void PrependToSection (uint32_t section,
const std::string & sectionData);
66 virtual void AppendToSection (uint32_t section,
const std::string & sectionData);
73 virtual void AddHeader (
const std::string & sectionName,
const std::string & sectionData);
80 virtual void AddFooter (
const std::string & sectionName,
const std::string & sectionData);
82 virtual std::string ToString (
void)
const;
88 virtual void ToString (std::string & outString)
const;
90 virtual bool LoadFromLog (
const std::string & inLogFilePath,
const bool bForceLoad);
94 void FetchInfoLog (std::ostringstream& oss)
const;
95 void FetchRegisterLog (std::ostringstream& oss)
const;
96 void FetchAutoCirculateLog (std::ostringstream& oss)
const;
97 void FetchAudioLog (std::ostringstream& oss)
const;
98 void FetchRoutingLog (std::ostringstream& oss)
const;
104 std::string mHeaderStr;
105 std::string mFooterStr;
106 std::map<uint32_t, std::string> mPrependMap;
107 std::map<uint32_t, std::string> mAppendMap;
110 static std::string InventLogFilePathAndName (
CNTV2Card & inDevice,
111 std::string inPrefix =
"aja_supportlog",
112 std::string inExtension =
"log");
113 static bool DumpDeviceSDRAM (
CNTV2Card & inDevice,
114 const std::string & inFilePath,
115 std::ostream & msgStream);
127 #endif // NTV2SUPPORTLOGGER_H