开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
开源项目 > 程序开发 > 常用工具包 &&
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
103 Star 575 Fork 242

cpp-master/cpp-tbox

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
develop
分支 (18)
标签 (32)
master
develop
opt/websocket
feat/http-client
feature/tls-crypto-https
fix/jsonrpc
feat/mqtt-reconnect
tidy/doc
wlabs-develop
fix/terminal-mem-leak
feat/use-config-enable-epoll
feature-Broker
opt-loop-wdog
feature-DBus
feature-epoll
feature-update-readme
feature-Dns
feature-TcpSSL
v1.15.5
v1.15.4
v1.14.4
v1.13.10
v1.13.2
v1.12.28
v1.12.25
v1.12.22
v1.12.20
v1.12.10
v1.12.0
v1.11.14
v1.11.12
v1.11.11
v1.11.5
v1.11.4
v1.11.2
v1.11.0
v1.10.27
v1.10.23
develop
分支 (18)
标签 (32)
master
develop
opt/websocket
feat/http-client
feature/tls-crypto-https
fix/jsonrpc
feat/mqtt-reconnect
tidy/doc
wlabs-develop
fix/terminal-mem-leak
feat/use-config-enable-epoll
feature-Broker
opt-loop-wdog
feature-DBus
feature-epoll
feature-update-readme
feature-Dns
feature-TcpSSL
v1.15.5
v1.15.4
v1.14.4
v1.13.10
v1.13.2
v1.12.28
v1.12.25
v1.12.22
v1.12.20
v1.12.10
v1.12.0
v1.11.14
v1.11.12
v1.11.11
v1.11.5
v1.11.4
v1.11.2
v1.11.0
v1.10.27
v1.10.23
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
develop
分支 (18)
标签 (32)
master
develop
opt/websocket
feat/http-client
feature/tls-crypto-https
fix/jsonrpc
feat/mqtt-reconnect
tidy/doc
wlabs-develop
fix/terminal-mem-leak
feat/use-config-enable-epoll
feature-Broker
opt-loop-wdog
feature-DBus
feature-epoll
feature-update-readme
feature-Dns
feature-TcpSSL
v1.15.5
v1.15.4
v1.14.4
v1.13.10
v1.13.2
v1.12.28
v1.12.25
v1.12.22
v1.12.20
v1.12.10
v1.12.0
v1.11.14
v1.11.12
v1.11.11
v1.11.5
v1.11.4
v1.11.2
v1.11.0
v1.10.27
v1.10.23
cpp-tbox
/
modules
/
main
/
context_imp.cpp
cpp-tbox
/
modules
/
main
/
context_imp.cpp
context_imp.cpp 17.36 KB
一键复制 编辑 原始数据 按行查看 历史
海卫哥 提交于 2025年12月04日 12:54 +08:00 . feat(main):1.13.4, 支持--args参数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
/*
* .============.
* // M A K E / \
* // C++ DEV / \
* // E A S Y / \/ \
* ++ ----------. \/\ .
* \\ \ \ /\ /
* \\ \ \ /
* \\ \ \ /
* -============'
*
* Copyright (c) 2018 Hevake and contributors, all rights reserved.
*
* This file is part of cpp-tbox (https://github.com/cpp-main/cpp-tbox)
* Use of this source code is governed by MIT license that can be found
* in the LICENSE file in the root of the source tree. All contributing
* project authors may be found in the CONTRIBUTORS.md file in the root
* of the source tree.
*/
#include "context_imp.h"
#include <sstream>
#include <iomanip>
#include <sys/time.h>
#include <tbox/base/json.hpp>
#include <tbox/base/log.h>
#include <tbox/base/assert.h>
#include <tbox/base/version.h>
#include <tbox/base/catch_throw.h>
#include <tbox/util/string.h>
#include <tbox/util/json.h>
#include <tbox/util/fs.h>
#include <tbox/terminal/session.h>
#include <tbox/terminal/helper.h>
#include "main.h"
#include "module.h"
namespace tbox {
namespace main {
namespace {
std::string ToString(const std::chrono::milliseconds msec)
{
uint64_t ms = msec.count();
constexpr auto ms_per_sec = 1000;
constexpr auto ms_per_min = 60 * ms_per_sec;
constexpr auto ms_per_hour = 60 * ms_per_min;
constexpr auto ms_per_day = 24 * ms_per_hour;
auto days = ms / ms_per_day;
auto ms_in_day = ms % ms_per_day;
auto hours = ms_in_day / ms_per_hour;
auto ms_in_hour = ms_in_day % ms_per_hour;
auto mins = ms_in_hour / ms_per_min;
auto ms_in_min = ms_in_hour % ms_per_min;
auto secs = ms_in_min / ms_per_sec;
auto msecs = ms_in_min % ms_per_sec;
using namespace std;
ostringstream oss;
oss << days << ' ';
oss << setfill('0');
oss << setw(2) << hours << ':'
<< setw(2) << mins << ':'
<< setw(2) << secs << '.'
<< setw(3) << msecs;
return oss.str();
}
}
ContextImp::ContextImp() :
sp_loop_(event::Loop::New()),
sp_thread_pool_(new eventx::ThreadPool(sp_loop_)),
sp_timer_pool_(new eventx::TimerPool(sp_loop_)),
sp_async_(new eventx::Async(sp_thread_pool_)),
sp_terminal_(new terminal::Terminal(sp_loop_)),
sp_telnetd_(new terminal::Telnetd(sp_loop_, sp_terminal_)),
sp_tcp_rpc_(new terminal::TcpRpc(sp_loop_, sp_terminal_)),
sp_coroutine_(new coroutine::Scheduler(sp_loop_)),
start_time_point_(std::chrono::steady_clock::now())
{
TBOX_ASSERT(sp_loop_ != nullptr);
TBOX_ASSERT(sp_thread_pool_ != nullptr);
TBOX_ASSERT(sp_timer_pool_ != nullptr);
TBOX_ASSERT(sp_async_ != nullptr);
TBOX_ASSERT(sp_terminal_ != nullptr);
TBOX_ASSERT(sp_telnetd_ != nullptr);
TBOX_ASSERT(sp_tcp_rpc_ != nullptr);
TBOX_ASSERT(sp_coroutine_ != nullptr);
}
ContextImp::~ContextImp()
{
delete sp_coroutine_;
delete sp_tcp_rpc_;
delete sp_telnetd_;
delete sp_terminal_;
delete sp_async_;
delete sp_timer_pool_;
delete sp_thread_pool_;
delete sp_loop_;
}
void ContextImp::fillDefaultConfig(Json &cfg) const
{
cfg["thread_pool"] = R"({"min":0, "max":1})"_json;
}
bool ContextImp::initialize(const char* proc_name, const Json &cfg, const Args &args, Module *module)
{
TBOX_ASSERT(module != nullptr);
module_ = module;
js_conf_ = &cfg;
wp_args_ = &args;
if (util::json::HasObjectField(cfg, "loop")) {
auto &js_loop = cfg["loop"];
initLoop(js_loop);
}
if (!util::json::HasObjectField(cfg, "thread_pool")) {
LogWarn("cfg.thread_pool not found");
return false;
}
auto &js_thread_pool = cfg["thread_pool"];
if (!initThreadPool(js_thread_pool))
return false;
{
std::ostringstream oss;
oss <<
"\r\n"
"Welcome to " << util::fs::Basename(proc_name) << " main terminal!\r\n"
"\r\n"
"This program is based on cpp-tbox which designed by Hevake Lee.\r\n"
"Repository: https://github.com/cpp-main/cpp-tbox\r\n"
"\r\n"
R"( .============. )""\r\n"
R"( // M A K E / \ )""\r\n"
R"( // C++ DEV / \ )""\r\n"
R"( // E A S Y / \/ \ )""\r\n"
R"( ++ ----------. \/\ . )""\r\n"
R"( \\ \ \ /\ / )""\r\n"
R"( \\ \ \ / )""\r\n"
R"( \\ \ \ / )""\r\n"
R"( -============' )""\r\n"
"\r\n";
sp_terminal_->setWelcomeText(oss.str());
}
if (util::json::HasObjectField(cfg, "telnetd")) {
auto &js_telnetd = cfg["telnetd"];
initTelnetd(js_telnetd);
}
if (util::json::HasObjectField(cfg, "tcp_rpc")) {
auto &js_tcp_rpc = cfg["tcp_rpc"];
initRpc(js_tcp_rpc);
}
initShell();
return true;
}
bool ContextImp::initLoop(const Json &js)
{
if (util::json::HasObjectField(js, "water_line")) {
auto &js_water_line = js["water_line"];
auto &water_line = sp_loop_->water_line();
int value = 0;
if (util::json::GetField(js_water_line, "run_in_loop_queue_size", value))
water_line.run_in_loop_queue_size = value;
if (util::json::GetField(js_water_line, "run_next_queue_size", value))
water_line.run_next_queue_size = value;
if (util::json::GetField(js_water_line, "run_in_loop_delay", value))
water_line.run_in_loop_delay = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "run_next_delay", value))
water_line.run_next_delay = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "loop_cost", value))
water_line.loop_cost = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "event_cb_cost", value))
water_line.event_cb_cost = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "run_cb_cost", value))
water_line.run_cb_cost = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "wake_delay", value))
water_line.wake_delay = std::chrono::microseconds(value);
if (util::json::GetField(js_water_line, "timer_delay", value))
water_line.timer_delay = std::chrono::microseconds(value);
}
return true;
}
bool ContextImp::initThreadPool(const Json &js)
{
int thread_pool_min = 0, thread_pool_max = 0;
if (!util::json::GetField(js, "min", thread_pool_min) ||
!util::json::GetField(js, "max", thread_pool_max)) {
LogWarn("in cfg.thread_pool, min or max is not number");
return false;
}
if (!sp_thread_pool_->initialize(thread_pool_min, thread_pool_max))
return false;
return true;
}
bool ContextImp::initTelnetd(const Json &js)
{
std::string telnetd_bind;
if (util::json::GetField(js, "bind", telnetd_bind)) {
if (sp_telnetd_->initialize(telnetd_bind))
telnetd_init_ok = true;
}
return true;
}
bool ContextImp::initRpc(const Json &js)
{
std::string tcp_rpc_bind;
if (util::json::GetField(js, "bind", tcp_rpc_bind)) {
if (sp_tcp_rpc_->initialize(tcp_rpc_bind))
tcp_rpc_init_ok = true;
}
return true;
}
bool ContextImp::start()
{
if (telnetd_init_ok)
sp_telnetd_->start();
if (tcp_rpc_init_ok)
sp_tcp_rpc_->start();
return true;
}
void ContextImp::stop()
{
if (tcp_rpc_init_ok)
sp_tcp_rpc_->stop();
if (telnetd_init_ok)
sp_telnetd_->stop();
}
void ContextImp::cleanup()
{
sp_coroutine_->cleanup();
sp_tcp_rpc_->cleanup();
sp_telnetd_->cleanup();
sp_timer_pool_->cleanup();
sp_thread_pool_->cleanup();
sp_loop_->cleanup();
LogInfo("running_time: %s", ToString(running_time()).c_str());
}
std::chrono::milliseconds ContextImp::running_time() const
{
auto now = std::chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time_point_);
}
std::chrono::system_clock::time_point ContextImp::start_time_point() const
{
auto steady_clock_now = std::chrono::steady_clock::now();
auto system_clock_now = std::chrono::system_clock::now();
return system_clock_now - (steady_clock_now - start_time_point_);
}
void ContextImp::initShell()
{
using namespace terminal;
TerminalNodes *wp_nodes = sp_terminal_;
auto ctx_node = wp_nodes->createDirNode("This is Context directory");
wp_nodes->mountNode(wp_nodes->rootNode(), ctx_node, "ctx");
{
auto loop_node = wp_nodes->createDirNode("This is Loop directory");
wp_nodes->mountNode(ctx_node, loop_node, "loop");
{
auto water_line_node = wp_nodes->createDirNode("This is water line directory");
wp_nodes->mountNode(loop_node, water_line_node, "wl");
#define ADD_WATERLINE_SIZE_FUNC_NODE(field) \
{\
terminal::IntegerFuncNodeProfile profile; \
profile.get_func = [this] { return sp_loop_->water_line().field; }; \
profile.set_func = [this] (int value) { sp_loop_->water_line().field = value; return true; }; \
profile.min_value = 0; \
terminal::AddFuncNode(*wp_nodes, water_line_node, #field, profile); \
}
ADD_WATERLINE_SIZE_FUNC_NODE(run_in_loop_queue_size);
ADD_WATERLINE_SIZE_FUNC_NODE(run_next_queue_size);
#define ADD_WATERLINE_TIME_FUNC_NODE(field) \
{\
terminal::IntegerFuncNodeProfile profile; \
profile.get_func = [this] { return sp_loop_->water_line().field.count()/1000; }; \
profile.set_func = [this] (int value) { sp_loop_->water_line().field= std::chrono::microseconds(value); return true; }; \
profile.min_value = 0; \
terminal::AddFuncNode(*wp_nodes, water_line_node, #field, profile); \
}
ADD_WATERLINE_TIME_FUNC_NODE(run_in_loop_delay);
ADD_WATERLINE_TIME_FUNC_NODE(run_next_delay);
ADD_WATERLINE_TIME_FUNC_NODE(loop_cost);
ADD_WATERLINE_TIME_FUNC_NODE(event_cb_cost);
ADD_WATERLINE_TIME_FUNC_NODE(run_cb_cost);
ADD_WATERLINE_TIME_FUNC_NODE(wake_delay);
ADD_WATERLINE_TIME_FUNC_NODE(timer_delay);
}
{
auto loop_stat_node = wp_nodes->createDirNode();
wp_nodes->mountNode(loop_node, loop_stat_node, "stat");
auto loop_stat_print_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &args) {
std::stringstream ss;
ss << sp_loop_->getStat();
std::string txt = ss.str();
util::string::Replace(txt, "\n", "\r\n");
s.send(txt);
(void)args;
},
"print Loop's stat data"
);
wp_nodes->mountNode(loop_stat_node, loop_stat_print_node, "print");
auto loop_stat_reset_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &args) {
std::stringstream ss;
sp_loop_->resetStat();
ss << "done\r\n";
s.send(ss.str());
(void)args;
},
"reset Loop's stat data"
);
wp_nodes->mountNode(loop_stat_node, loop_stat_reset_node, "reset");
{
auto func_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &args) {
s.send(ToString(running_time()));
s.send("\r\n");
(void)args;
},
"Print running times"
);
wp_nodes->mountNode(ctx_node, func_node, "running_time");
}
}
{
auto func_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &args) {
std::stringstream ss;
auto ts = std::chrono::duration_cast<std::chrono::milliseconds>(start_time_point().time_since_epoch()).count();
{
time_t sec = ts / 1000;
struct tm tm;
localtime_r(&sec, &tm);
char tmp[20];
strftime(tmp, sizeof(tmp), "%Y-%m-%d %H:%M:%S", &tm);
ss << tmp << '.' << ts % 1000 << "\r\n";
}
s.send(ss.str());
(void)args;
},
"Print start time point"
);
wp_nodes->mountNode(ctx_node, func_node, "start_time");
}
}
{
auto threadpool_node = wp_nodes->createDirNode("This is ThreadPool directory");
wp_nodes->mountNode(ctx_node, threadpool_node, "thread_pool");
{
//! 打印线程池快照
auto func_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &args) {
std::ostringstream oss;
auto snapshot = sp_thread_pool_->snapshot();
oss << "thread_num: " << snapshot.thread_num << "\r\n";
oss << "idle_thread_num: " << snapshot.idle_thread_num << "\r\n";
oss << "undo_task_num:";
for (size_t i = 0; i < THREAD_POOL_PRIO_SIZE; ++i)
oss << " " << snapshot.undo_task_num[i];
oss << "\r\n";
oss << "doing_task_num: " << snapshot.doing_task_num << "\r\n";
oss << "undo_task_peak_num: " << snapshot.undo_task_peak_num << "\r\n";
s.send(oss.str());
(void)args;
},
"Print thread pool's snapshot"
);
wp_nodes->mountNode(threadpool_node, func_node, "snapshot");
}
}
{
auto info_node = wp_nodes->createDirNode("Information directory");
wp_nodes->mountNode(wp_nodes->rootNode(), info_node, "info");
{
auto func_node = wp_nodes->createFuncNode(
[] (const Session &s, const Args &args) {
std::stringstream ss;
int major = 0, minor = 0, rev = 0, build = 0;
GetAppVersion(major, minor, rev, build);
ss << 'v' << major << '.' << minor << '.' << rev << '_' << build << "\r\n";
s.send(ss.str());
(void)args;
},
"Print app version"
);
wp_nodes->mountNode(info_node, func_node, "app_ver");
}
{
auto func_node = wp_nodes->createFuncNode(
[] (const Session &s, const Args &args) {
std::stringstream ss;
int major = 0, minor = 0, rev = 0;
GetTboxVersion(major, minor, rev);
ss << 'v' << major << '.' << minor << '.' << rev << "\r\n";
s.send(ss.str());
(void)args;
},
"Print tbox version"
);
wp_nodes->mountNode(info_node, func_node, "tbox_ver");
}
{
auto func_node = wp_nodes->createFuncNode(
[] (const Session &s, const Args &args) {
std::stringstream ss;
ss << GetAppBuildTime() << "\r\n";
s.send(ss.str());
(void)args;
},
"Print buildtime"
);
wp_nodes->mountNode(info_node, func_node, "build_time");
}
{
auto func_node = wp_nodes->createFuncNode(
[] (const Session &s, const Args &args) {
std::stringstream ss;
ss << GetAppDescribe() << "\r\n";
s.send(ss.str());
(void)args;
},
"Print app describe"
);
wp_nodes->mountNode(info_node, func_node, "what");
}
}
auto dump_node = wp_nodes->createDirNode("dump directory");
wp_nodes->mountNode(wp_nodes->rootNode(), dump_node, "dump");
{
auto func_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &a) {
Json js;
if (util::string::IsEndWith(a[0], "apps")) {
module_->toJson(js);
} else if (util::string::IsEndWith(a[0], "conf")){
js = *js_conf_;
}
auto json_str = js.dump(2);
util::string::Replace(json_str, "\n", "\r\n");
s.send(json_str);
s.send("\r\n");
},
"Dump as JSON"
);
wp_nodes->mountNode(dump_node, func_node, "apps");
wp_nodes->mountNode(dump_node, func_node, "conf");
}
{
auto func_node = wp_nodes->createFuncNode(
[this] (const Session &s, const Args &) {
std::ostringstream oss;
auto &args = *wp_args_;
for (size_t i = 0; i < args.size(); ++i)
oss << '[' << i << "]:" << args.at(i) << "\r\n";
oss << "\r\n";
s.send(oss.str());
},
"Dump args"
);
wp_nodes->mountNode(dump_node, func_node, "args");
}
}
}
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

cpp-tbox是一个Linux C++,MIT开源许可的,基于 Reactor 模式的开发框架与组件库。它主要针对智能硬件、机器人、网络服务等开发领域。 它提供了一套易于开发、稳定可靠的框架,有:通信库(TCP/UDP/串口)、HTTP、线程池、定时器池、协程、日志、命令终端、状态机、行为树等非常实用的开发组件,以及完备实用的主框架,能为广大开发者节省大量开发与调试时间。
取消

发行版

暂无发行版

开源评估指数源自 OSS-Compass 评估体系,评估体系围绕以下三个维度对项目展开评估:

1. 开源生态

  • 生产力:来评估开源项目输出软件制品和开源价值的能力。
  • 创新力:用于评估开源软件及其生态系统的多样化程度。
  • 稳健性:用于评估开源项目面对多变的发展环境,抵御内外干扰并自我恢复的能力。

2. 协作、人、软件

  • 协作:代表了开源开发行为中协作的程度和深度。
  • 人:观察开源项目核心人员在开源项目中的影响力,并通过第三方视角考察用户和开发者对开源项目的评价。
  • 软件:从开源项目对外输出的制品评估其价值最终落脚点。也是开源评估最"古老"的主流方向之一"开源软件" 的具体表现。

3. 评估模型

    基于"开源生态"与"协作、人、软件"的维度,找到与该目标直接或间接相关的可量化指标,对开源项目健康与生态进行量化评估,最终形成开源评估指数。

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cpp-master/cpp-tbox.git
git@gitee.com:cpp-master/cpp-tbox.git
cpp-master
cpp-tbox
cpp-tbox
develop
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /