MCPcopy Create free account
hub / github.com/acl-dev/acl / create_file

Method create_file

lib_acl_cpp/src/queue/queue_manager.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74queue_file* queue_manager::create_file(const char* extName)
75{
76 queue_file* fp = NEW queue_file;
77
78 if (!fp->create(m_home.c_str(), m_queueName.c_str(),
79 extName, sub_width_)) {
80
81 delete fp;
82 return NULL;
83 }
84
85 if (!cache_add(fp)) {
86 logger_fatal("%s already exist in table", fp->key());
87 }
88 return fp;
89}
90
91queue_file* queue_manager::open_file(const char* filePath, bool no_cache /* = true */)
92{

Callers 1

Calls 2

createMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected