TIBCO Adapter SDK C++ Reference
MFileSink::MFileSink
MFileSink
Parameters Description
const MString& rsFilename Name of the file to be used as the file sink.
unsigned long 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. This process is repeated, and file extensions are incremented appropriately, until noOfSwapFiles files have been created.
unsigned long ulNoOfSwapFiles If the file sink becomes larger than ulFilelength, the system creates a new file and writes new data to that file until it has created noOfSwapFiles files. At that point, it starts to overwrite the first file.
Mboolean bAppendMode = Mtrue If true, appends to this file if a file with the specified file name already exists. If false, erases an existing file and creates a new one. Default is Mtrue.
pMapp Adapter application in which this sink is being constructed.
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. Maximum size is 512 bytes.
Exceptions
This constructor will signal an exception if the file cannot be opened for writing.
Declaration
MFileSink(MApp* pMApp, const MString& rsFilename, const MString& rsSinkName, unsigned long ulFilelength, unsigned long ulNoOfSwapFiles, Mboolean bAppendMode = Mtrue);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.