-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/egg_metadata' into develop
- Loading branch information
Showing
15 changed files
with
226 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* KTArbitraryMetadata.cc | ||
* | ||
* Created on: Sept 20, 2021 | ||
* Author: N.S. Oblath | ||
*/ | ||
|
||
#include "KTArbitraryMetadata.hh" | ||
|
||
namespace Katydid | ||
{ | ||
const std::string KTArbitraryMetadata::sName("arbitrary-metadata"); | ||
|
||
KTArbitraryMetadata::KTArbitraryMetadata() : | ||
KTExtensibleData< KTArbitraryMetadata >(), | ||
fMetadata(nullptr) | ||
{ | ||
} | ||
|
||
KTArbitraryMetadata::~KTArbitraryMetadata() | ||
{ | ||
delete fMetadata; | ||
} | ||
|
||
} /* namespace Katydid */ |
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,40 @@ | ||
/* | ||
* KTArbitraryMetadata.hh | ||
* | ||
* Created on: Sept 20, 2021 | ||
* Author: N.S. Oblath | ||
*/ | ||
|
||
#ifndef KTARBITRARY_METADATA_HH_ | ||
#define KTARBITRARY_METADATA_HH_ | ||
|
||
#include "KTData.hh" | ||
|
||
#include "param.hh" | ||
|
||
|
||
namespace Katydid | ||
{ | ||
class KTArbitraryMetadata : public Nymph::KTExtensibleData< KTArbitraryMetadata > | ||
{ | ||
public: | ||
KTArbitraryMetadata(); | ||
virtual ~KTArbitraryMetadata(); | ||
|
||
void SetMetadata( scarab::param* metadata ); | ||
MEMBERVARIABLE_NOSET(scarab::param*, Metadata); | ||
|
||
public: | ||
static const std::string sName; | ||
|
||
}; | ||
|
||
inline void KTArbitraryMetadata::SetMetadata( scarab::param* metadata ) | ||
{ | ||
delete fMetadata; | ||
fMetadata = metadata; | ||
return; | ||
} | ||
|
||
} /* namespace Katydid */ | ||
#endif /* KTARBITRARY_METADATA_HH_ */ |
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
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
Oops, something went wrong.