summaryrefslogtreecommitdiff
path: root/orkbasecxx/AudioTape.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-06-06 13:43:28 +0000
committerHenri Herscher <henri@oreka.org>2007-06-06 13:43:28 +0000
commit9845d2476c05c14226ab2456dcc4636677f34897 (patch)
tree2e930cd3dc3762d2ed353a5f0e61c6b491520bcd /orkbasecxx/AudioTape.h
parent2501598d00dac0b63904efc01cbc95ac15e2e19b (diff)
Enhanced configurable tape file naming and added configurable tape path naming support.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@443 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/AudioTape.h')
-rw-r--r--orkbasecxx/AudioTape.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/orkbasecxx/AudioTape.h b/orkbasecxx/AudioTape.h
index 91ffccb..4cc6e3a 100644
--- a/orkbasecxx/AudioTape.h
+++ b/orkbasecxx/AudioTape.h
@@ -98,6 +98,7 @@ public:
private:
void GenerateCaptureFilePathAndIdentifier();
void GenerateFinalFilePathAndIdentifier();
+ void GenerateFinalFilePath();
void PreventFileIdentifierCollision(CStdString& path, CStdString& identifier, CStdString& extension);
void PopulateTapeMessage(TapeMsg* msg, CaptureEvent::EventTypeEnum eventType);
@@ -105,6 +106,13 @@ private:
CStdString m_fileIdentifier;
CStdString m_fileExtension; //Corresponds to the extension the tape will have after compression
+ CStdString m_year;
+ CStdString m_day;
+ CStdString m_month;
+ CStdString m_hour;
+ CStdString m_min;
+ CStdString m_sec;
+
std::queue<AudioChunkRef> m_chunkQueue;
std::queue<CaptureEventRef> m_eventQueue;
@@ -122,5 +130,51 @@ private:
typedef boost::shared_ptr<AudioTape> AudioTapeRef;
+//==========================================================
+
+class TapeAttributes
+{
+public:
+#define TA_NATIVECALLID "[nativecallid]"
+#define TA_TRACKINGID "[trackingid]"
+#define TA_DIRECTION "[direction]"
+#define TA_SHORTDIRECTION "[shortdirection]"
+#define TA_REMOTEPARTY "[remoteparty]"
+#define TA_LOCALPARTY "[localparty]"
+#define TA_LOCALENTRYPOINT "[localentrypoint]"
+#define TA_LOCALIP "[localip]"
+#define TA_REMOTEIP "[remoteip]"
+#define TA_HOSTNAME "[hostname]"
+#define TA_YEAR "[year]"
+#define TA_DAY "[day]"
+#define TA_MONTH "[month]"
+#define TA_HOUR "[hour]"
+#define TA_MIN "[min]"
+#define TA_SEC "[sec]"
+
+ typedef enum {
+ TaUnknown = 0,
+ TaNativeCallId = 1,
+ TaTrackingId = 2,
+ TaDirection = 3,
+ TaShortDirection = 4,
+ TaRemoteParty = 5,
+ TaLocalParty = 6,
+ TaLocalEntryPoint = 7,
+ TaLocalIp = 8,
+ TaRemoteIp = 9,
+ TaHostname = 10,
+ TaYear = 11,
+ TaDay = 12,
+ TaMonth = 13,
+ TaHour = 14,
+ TaMin = 15,
+ TaSec = 16
+ } TapeAttributeEnum;
+
+ static int TapeAttributeToEnum(CStdString& ta);
+ static CStdString TapeAttributeToString(int ta);
+};
+
#endif