7 namespace persistency {
28 std::vector<std::tuple<std::string,std::string,std::string> >
tagListBuffer;
65 throwException(
"Global Tag \""+gtName+
"\" has not been found in the database.",
"GTEditor::load");
110 return m_data.get()?
m_data->snapshotTime : boost::posix_time::ptime();
121 insert( recordName,
"-", tagName, checkType );
129 if( rlabel.empty() ){
132 m_data->tagListBuffer.push_back( std::tie( recordName, rlabel, tagName ) );
140 if(
m_data->description.empty() )
throwException(
"A non-empty Description string is mandatory.",
"GTEditor::flush" );
141 if(
m_data->release.empty() )
throwException(
"A non-empty Release string is mandatory.",
"GTEditor::flush" );
154 if(
m_data->tagListBuffer.size() ) {
158 m_data->tagListBuffer.clear();
165 return flush( boost::posix_time::microsec_clock::universal_time() );
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)