7 namespace persistency {
28 std::vector<std::tuple<std::string,std::string,std::string> >
tagListBuffer;
58 throwException(
"Global Tag \""+gtName+
"\" has not been found in the database.",
"GTEditor::load");
103 return m_data.get()?
m_data->snapshotTime : boost::posix_time::ptime();
114 insert( recordName,
"-", tagName, checkType );
122 if( rlabel.empty() ){
125 m_data->tagListBuffer.push_back( std::tie( recordName, rlabel, tagName ) );
133 if(
m_data->description.empty() )
throwException(
"A non-empty Description string is mandatory.",
"GTEditor::flush" );
134 if(
m_data->release.empty() )
throwException(
"A non-empty Release string is mandatory.",
"GTEditor::flush" );
147 if(
m_data->tagListBuffer.size() ) {
151 m_data->tagListBuffer.clear();
158 return flush( boost::posix_time::microsec_clock::universal_time() );
GTEditor(const std::shared_ptr< SessionImpl > &session)
void setDescription(const std::string &description)
std::string description() const
void insert(const std::string &recordName, const std::string &tagName, bool checkType=false)
std::shared_ptr< SessionImpl > m_session
unsigned long long Time_t
void checkTransaction(const std::string &ctx)
boost::posix_time::ptime snapshotTime
boost::posix_time::ptime snapshotTime() const
void setSnapshotTime(const boost::posix_time::ptime &snapshotTime)
GTEditor & operator=(const GTEditor &rhs)
std::string release() const
void load(const std::string >Name)
std::vector< std::tuple< std::string, std::string, std::string > > tagListBuffer
const Time_t MAX_VAL(std::numeric_limits< Time_t >::max())
void throwException(const std::string &message, const std::string &methodName)
cond::Time_t validity() const
void setRelease(const std::string &release)
std::shared_ptr< GTEditorData > m_data
void setValidity(cond::Time_t validity)