Fix local server for multiple applications
[anna.git] / source / core / mt / Resource.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/core/functions.hpp>
10
11 #include <anna/core/mt/Resource.hpp>
12
13 using namespace std;
14 using namespace anna;
15
16 string Resource::asString() const
17 {
18   string result("anna::Resource { Name: ");
19   result += a_name;
20   result += functions::asText(" | Enabled: ", a_isEnabled);
21   result += functions::asText(" | Available: ", isAvailable());
22   return result += " }";
23 }
24