7 #ifndef _INDEXEDFILE_WRITER_CLASS_HEADER_
8 #define _INDEXEDFILE_WRITER_CLASS_HEADER_
14 class cIndexedFileWriter;
77 tBool m_bCatchFirstTime;
80 tInt m_nCacheMinStoreAtOnce;
81 volatile tInt m_nCacheFlushPtr;
82 volatile tInt m_nCacheInsertPtr;
83 std::atomic<tSize> m_nCacheUsageCount;
86 std::mutex m_mutexFreedEvent;
87 std::mutex m_mutexCacheUsed;
88 std::condition_variable m_CondFreedEvent;
89 std::condition_variable m_CondCacheUsed;
90 std::atomic<tBool> m_bCondCacheUsedProcessed;
98 volatile tInt32 m_nLastWriteResult;
100 typedef struct tagStreamInfoAdd
120 tBool m_bUsePrefixTempFileExtension;
186 "adtf_file library instead.")
256 tBool& bIndexEntryAppended);
269 const
tVoid* pInfoData,
281 const
tChar* strStreamName);
375 tBool bUseSegmentSize);
uint8_t tUInt8
type definition for unsigned integer values (8bit) (platform and compiler independent type).
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
tInt64 tFileSize
type definition for a file or stream size value (platform and compiler independent type).
int64_t tInt64
type definition for signed integer values (64bit) (platform and compiler independent type).
int32_t tInt32
type definition for signed integer values (32bit) (platform and compiler independent type).
tInt64 tTimeStamp
type definition for a time value.
tInt64 tFilePos
type definition for a file or stream position value (platform and compiler independent type).
void tVoid
The tVoid is always the definition for the void (non-type).
uint16_t tUInt16
type definition for unsigned integer values (16bit) (platform and compiler independent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
uint64_t tUInt64
type definition for unsigned integer values (64bit) (platform and compiler independent type).
Class for storing an index table of an indexed file.
asynchrounous file writing
cIndexedFileWriter * m_pInstance
The file writer instance.
tResult Create(cIndexedFileWriter *pInstance)
Initializes the asynchronous writer.
Base class for all indexed file classes.
Callback interface that informs about dropped chunks in history mode.
virtual tResult OnChunkDropped(tUInt64 nIndex, tUInt16 nStreamId, tUInt16 nFlags, tTimeStamp tmTime)=0
Called whenever a chunk is dropped from the history.
Class for writing indexed files.
cFilename GetTempSaveFileName()
Get the Temp Save File Name (Filename during the Save Mode)
cString GetPrefix()
Returns the prefix.
tVoid SetPrefixTempFileExtension(tBool useMode)
Set the mode, if a prefix is set by a temp Save File Name or not.
tResult RenameTempSaveToFileName()
Rename the TempFile Name '~$FileName.dat' back to 'FileName.dat' Filename.
tBool GetPrefixTempFileExtensionMode()
Get the mode, if a prefix is set by a temp Save File Name or not.
A_UTILS_DEPRECATED_MESSAGE("The class 'cIndexedFileWriter' is deprecated. Please use the aquivalent from the " "adtf_file library instead.") cIndexedFileWriter()
Default constructor.
tResult CreateAFileWithPrefixdAndAFileWithoutPrefix(cFilename strFilename, cFilename &strSaveFilename)
Return the Name of the file during creation mode.
cString GetNewFileNameWithPrefix(cString strFilename)
Set a Prefix to the incoming Filename and return the new name.
A common result class usable as return value throughout.
#define tFalse
Value for tBool.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
#define MAX_INDEXED_STREAMS
Maximum of indexed streams.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.