![]() |
Ember
|
A named parser configuration profile with metadata. More...
#include <ParserProfile.h>
Public Member Functions | |
| ParserProfile () | |
| ParserProfile (const String &name, const String &description="") | |
| ~ParserProfile ()=default | |
| String | GetName () const |
| void | SetName (const String &name) |
| String | GetDescription () const |
| void | SetDescription (const String &description) |
| String | GetVersion () const |
| void | SetVersion (const String &version) |
| String | GetAuthor () const |
| void | SetAuthor (const String &author) |
| int64_t | GetCreatedTimestamp () const |
| int64_t | GetModifiedTimestamp () const |
| void | UpdateModifiedTimestamp () |
| ParserConfig & | GetConfig () |
| const ParserConfig & | GetConfig () const |
| void | SetConfig (const ParserConfig &config) |
| bool | Validate (std::vector< String > &errors) const |
| nlohmann::json | ToJson () const |
| void | FromJson (const nlohmann::json &json) |
| bool | SaveToFile (const String &filepath) const |
| bool | LoadFromFile (const String &filepath) |
| std::shared_ptr< ParserProfile > | Clone (const String &new_name="") const |
Static Public Member Functions | |
| static std::shared_ptr< ParserProfile > | CreateDefaultProfile () |
| static std::shared_ptr< ParserProfile > | CreateGenericProfile () |
Static Private Member Functions | |
| static int64_t | GetCurrentTimestamp () |
Private Attributes | |
| String | name_ |
| String | description_ |
| String | version_ |
| String | author_ |
| int64_t | created_timestamp_ |
| int64_t | modified_timestamp_ |
| ParserConfig | config_ |
A named parser configuration profile with metadata.
This class wraps a ParserConfig with additional metadata like name, description, version, and timestamps for profile management.
Definition at line 16 of file ParserProfile.h.
| EmberCore::ParserProfile::ParserProfile | ( | ) |
Definition at line 9 of file ParserProfile.cpp.
|
explicit |
Definition at line 13 of file ParserProfile.cpp.
|
default |
| std::shared_ptr< ParserProfile > EmberCore::ParserProfile::Clone | ( | const String & | new_name = "" | ) | const |
Definition at line 152 of file ParserProfile.cpp.
|
static |
Definition at line 166 of file ParserProfile.cpp.
|
static |
Definition at line 178 of file ParserProfile.cpp.
| void EmberCore::ParserProfile::FromJson | ( | const nlohmann::json & | json | ) |
Definition at line 59 of file ParserProfile.cpp.
|
inline |
Definition at line 32 of file ParserProfile.h.
|
inline |
Definition at line 40 of file ParserProfile.h.
|
inline |
Definition at line 41 of file ParserProfile.h.
|
inline |
Definition at line 35 of file ParserProfile.h.
|
staticprivate |
Definition at line 190 of file ParserProfile.cpp.
|
inline |
Definition at line 26 of file ParserProfile.h.
|
inline |
Definition at line 36 of file ParserProfile.h.
|
inline |
Definition at line 23 of file ParserProfile.h.
|
inline |
Definition at line 29 of file ParserProfile.h.
| bool EmberCore::ParserProfile::LoadFromFile | ( | const String & | filepath | ) |
Definition at line 129 of file ParserProfile.cpp.
| bool EmberCore::ParserProfile::SaveToFile | ( | const String & | filepath | ) | const |
Definition at line 107 of file ParserProfile.cpp.
|
inline |
Definition at line 33 of file ParserProfile.h.
| void EmberCore::ParserProfile::SetConfig | ( | const ParserConfig & | config | ) |
Definition at line 19 of file ParserProfile.cpp.
|
inline |
Definition at line 27 of file ParserProfile.h.
|
inline |
Definition at line 24 of file ParserProfile.h.
|
inline |
Definition at line 30 of file ParserProfile.h.
| nlohmann::json EmberCore::ParserProfile::ToJson | ( | ) | const |
Definition at line 45 of file ParserProfile.cpp.
| void EmberCore::ParserProfile::UpdateModifiedTimestamp | ( | ) |
Definition at line 17 of file ParserProfile.cpp.
| bool EmberCore::ParserProfile::Validate | ( | std::vector< String > & | errors | ) | const |
Definition at line 24 of file ParserProfile.cpp.
|
private |
Definition at line 66 of file ParserProfile.h.
|
private |
Definition at line 69 of file ParserProfile.h.
|
private |
Definition at line 67 of file ParserProfile.h.
|
private |
Definition at line 64 of file ParserProfile.h.
|
private |
Definition at line 68 of file ParserProfile.h.
|
private |
Definition at line 63 of file ParserProfile.h.
|
private |
Definition at line 65 of file ParserProfile.h.