Oma_Ot_Writer_Open_With_Options()

Abstract

Creates or reopens an OT file for writing, based on supplied options.

Syntax

Oma_Ot_Writer_Open_With_Options (ot_file_name_or_path, open_options)
Argument Type Description
ot_file_name_or_path const char * Base name (no path or extension) or full path of the OT file to open. If a base name, the directory containing the file must be included in the mod_dirs preference.
open_options int Mode for opening the OT writer (see Details).

Return Type

OmaT_Ot_Writer *

The newly opened OT writer. PRGC_NIL if ot_file_name_or_path is invalid, the file cannot be opened, or a writer cannot be allocated.

oma_ot.h

Details

open_options must be some OR’d combination of the following constants:

  • OMAC_OT_WRITER_OPEN_OPT_CREATE
  • OMAC_OT_WRITER_OPEN_OPT_APPEND
  • OMAC_OT_WRITER_OPEN_OPT_FORCE_WRITE_ONCE
  • OMAC_OT_WRITER_OPEN_OPT_FORCE_WRITE_MANY

The returned OT file writer should be closed and destroyed with Oma_Ot_Writer_Close() to free its data.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com