# Deployments
docker-images/anna-adml-http/opt/
+aots-deploy/
# Component test (pytest)
example/diameter/launcher/resources/rest_api/ct/**/__pycache__
Transaction* result = (ii != a_transactions.end()) ? transaction(ii) : NULL;
if(result == NULL) {
- if(Exception::Mode::Throw) {
+ if(emode == Exception::Mode::Throw) {
std::string msg("Transaction: ");
msg += identifierAsString(tid);
msg += " | Tid not found";
throw RuntimeException(msg, ANNA_FILE_LOCATION);
- } else if(Exception::Mode::Trace && Logger::isActive(Logger::Warning)) {
+ } else if(emode == Exception::Mode::Trace && Logger::isActive(Logger::Warning)) {
std::string msg("Transaction: ");
msg += identifierAsString(tid);
msg += " | Tid not found";
throw() {
string msg("comm::ClientSocket { ");
- if (this == NULL)
- return msg += " <freed> }";
-
msg += Socket::asString();
msg += functions::asText(" | RcvBufferSize: ", a_rcvBufferSize);
msg += " bytes | Status: ";
throw(RuntimeException) {
xml::Node* clientSocket = parent->createChild("comm.ClientSocket");
- if (this == NULL) {
- clientSocket->createAttribute("Freed", "yes");
- return clientSocket;
- }
-
Socket::asXML(clientSocket);
clientSocket->createAttribute("Status", Status::asString(a_status));
clientSocket->createAttribute("RcvBufferSize", a_rcvBufferSize);
throw() {
std::string msg("comm::Socket { Domain: ");
- if(this == NULL)
- return msg += " <null> }";
-
switch(a_domain) {
case Domain::Unix: msg += "Unix"; break;
case Domain::Inet: msg += "Inet"; break;
std::string DataBlock::asString(const int characterByLine) const
throw() {
- char aux [8];
+ char aux [16];
std::string numbers;
std::string characters;
unsigned char c;
throw() {
struct tm* tt = localtime((time_t*) & second);
sprintf(
- result, "%02d/%02d/%4d %02d:%02d:%02d",
+ result, "%02u/%02u/%4u %02u:%02u:%02u",
tt->tm_mday, tt->tm_mon + 1, tt->tm_year + 1900,
tt->tm_hour, tt->tm_min, tt->tm_sec
);
trace += "\n";
trace += "\n Concept id: "; trace += anna::functions::asString((*iter).first);
- if((*iter).second.SampleFile != "") trace += "\n Sample file: "; trace += (*iter).second.SampleFile;
+ if((*iter).second.SampleFile != "") { trace += "\n Sample file: "; trace += (*iter).second.SampleFile; }
trace += "\n Description: "; trace += (*iter).second.Description;
trace += "\n Unit: "; trace += (*iter).second.Unit;