-// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return _data.c_str();
}
-void *InputXmlPort::get() const throw(YACS::Exception)
+void *InputXmlPort::get() const
{
return (void *) _data.c_str();
}
-void InputXmlPort::put(const void *data) throw (ConversionException)
+void InputXmlPort::put(const void *data)
{
DEBTRACE("put(void *)");
put((const char*)data);
}
-void InputXmlPort::put(const char *data) throw (ConversionException)
+void InputXmlPort::put(const char *data)
{
DEBTRACE(data);
_data = data;
}
+void InputXmlPort::releaseData()
+{//nothing because _data has no ref counter
+}
+
bool InputXmlPort::isEmpty()
{
return _data.empty();
{
}
-const char * OutputXmlPort::get() const throw (ConversionException)
+const char * OutputXmlPort::get() const
{
return _data.c_str();
}
-void OutputXmlPort::put(const void *data) throw (ConversionException)
+void OutputXmlPort::put(const void *data)
{
put((const char*)data);
}
-void OutputXmlPort::put(const char *data) throw (ConversionException)
+void OutputXmlPort::put(const char *data)
{
DEBTRACE(data);
InputPort *p;