-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fff91e1
commit 4c9a7f1
Showing
29 changed files
with
754 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/*************************** | ||
@Author: Chunel | ||
@Contact: [email protected] | ||
@File: CDescInfo.h | ||
@Time: 2023/2/19 15:56 | ||
@Desc: 通用描述信息 | ||
***************************/ | ||
|
||
#ifndef CGRAPH_CDESCINFO_H | ||
#define CGRAPH_CDESCINFO_H | ||
|
||
#include <string> | ||
|
||
#include "CBasicDefine.h" | ||
|
||
CGRAPH_NAMESPACE_BEGIN | ||
|
||
class CDescInfo { | ||
public: | ||
/** | ||
* 获取名称信息 | ||
* @return | ||
*/ | ||
const std::string& getName() const { | ||
return name_; | ||
} | ||
|
||
/** | ||
* 获取唯一id信息 | ||
* @return | ||
*/ | ||
const std::string& getSession() const { | ||
return session_; | ||
} | ||
|
||
/** | ||
* 获取描述信息 | ||
* @return | ||
*/ | ||
const std::string& getDescription() const { | ||
return description_; | ||
} | ||
|
||
/** | ||
* 设置名称信息 | ||
* @param name | ||
* @return | ||
*/ | ||
virtual auto setName(const std::string& name) | ||
-> decltype(this) { | ||
name_ = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* 设置描述信息 | ||
* @param description | ||
* @return | ||
*/ | ||
virtual auto setDescription(const std::string& description) | ||
-> decltype(this) { | ||
description_ = description; | ||
return this; | ||
} | ||
|
||
virtual ~CDescInfo() = default; | ||
|
||
protected: | ||
std::string name_; // 名字 | ||
std::string session_; // 唯一id信息 | ||
std::string description_; // 描述信息 | ||
}; | ||
|
||
CGRAPH_NAMESPACE_END | ||
|
||
#endif //CGRAPH_CDESCINFO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*************************** | ||
@Author: Chunel | ||
@Contact: [email protected] | ||
@File: CStruct.h | ||
@Time: 2023/7/16 11:36 | ||
@Desc: | ||
***************************/ | ||
|
||
#ifndef CGRAPH_CSTRUCT_H | ||
#define CGRAPH_CSTRUCT_H | ||
|
||
#include "CBasicDefine.h" | ||
|
||
CGRAPH_NAMESPACE_BEGIN | ||
|
||
/** | ||
* 所有框架内部结构体定义的基类 | ||
* 仅针对类似 bean 数据类型的定义 | ||
*/ | ||
class CStruct { | ||
}; | ||
|
||
CGRAPH_NAMESPACE_END | ||
|
||
#endif //CGRAPH_CSTRUCT_H |
Oops, something went wrong.