TIBCO Adapter SDK C++ Reference
MFileSink::MFileSink
MFileSink
Create the MFileSink object
Parameters
Parameters Description
MApp* pMApp MApp reference
unsigned long timeInterval Time interval in seconds for any file associated with this sink. If the current time is greater than file creation time plus this interval, then SDK creates a new file.
const MString& fileEncoding Using this encoding file write will be performed.
Mboolean bAppendMode = Mtrue If Mtrue, append to this file if a file with the specified file name already exists. If Mfalse, erase the existing file and create a new one.
rsFilename Name of the file.
rsSinkName Sink name associated with this instance of the class. The sink name has no relationship with the role of the sink. The role is defined when the sink and a trace are matched.
ulFilelength Maximum number of bytes for any file associated with this sink. If the file becomes larger than this number, the SDK creates a new file and writes to that file until ulNoOfSwapFiles files have been created. A number less than 0 means no limit.
ulNoOfSwapFiles If the filesink becomes larger than ulFilelength,the system creates a new file and writes new data to that file until it has created ulNoOfSwapFiles. At that point, it starts to overwrite the first file. A number less than 2 means no swapping.
Declaration
MFileSink(MApp* pMApp, const MString& filename, const MString& sinkname, unsigned long fileLength, unsigned long noOfSwapFiles, unsigned long timeInterval, const MString& fileEncoding, Mboolean bAppendMode = Mtrue);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.