Lines Matching refs:mode
59 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
62 switch (mode) { in CreateDataWriter()
84 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
88 return CreateDataWriter(mode, path, offset); in CreateDataWriter()
91 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(const std::string &mode, const std::string… in CreateDataWriter() argument
94 if (auto it = constructorMap_.find(mode); it != constructorMap_.end()) { in CreateDataWriter()
97 LOG(ERROR) << "create writer failed, can not find writer mode: " << mode; in CreateDataWriter()
106 void DataWriter::RegisterDataWriter(const std::string &mode, WriterConstructor constructor) in RegisterDataWriter() argument
108 if (mode.empty() || constructor == nullptr) { in RegisterDataWriter()
112 if (!constructorMap_.emplace(mode, constructor).second) { in RegisterDataWriter()
113 LOG(ERROR) << "register writer failed, mode: " << mode; in RegisterDataWriter()