Commit 0b5f94df27d999a829a65dcb97c0a67c38b3205d
1 parent
9ed177b8
Add GVOApp::print() method
Showing
2 changed files
with
27 additions
and
1 deletions
src/vo/GVOApp.cpp
| ... | ... | @@ -158,6 +158,31 @@ GVOApp* GVOApp::clone(void) const |
| 158 | 158 | return new GVOApp(*this); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | + | |
| 162 | +/***********************************************************************//** | |
| 163 | + * @brief Print VO hub information | |
| 164 | + * | |
| 165 | + * @param[in] chatter Chattiness (defaults to NORMAL). | |
| 166 | + * @return String containing VO hub information | |
| 167 | + ***************************************************************************/ | |
| 168 | +std::string GVOApp::print(const GChatter& chatter) const | |
| 169 | +{ | |
| 170 | + // Initialise result string | |
| 171 | + std::string result; | |
| 172 | + | |
| 173 | + // Continue only if chatter is not silent | |
| 174 | + if (chatter != SILENT) { | |
| 175 | + | |
| 176 | + // Append header | |
| 177 | + result.append("=== GVOApp ==="); | |
| 178 | + | |
| 179 | + } // endif: chatter was not silent | |
| 180 | + | |
| 181 | + // Return result | |
| 182 | + return result; | |
| 183 | +} | |
| 184 | + | |
| 185 | + | |
| 161 | 186 | /*========================================================================== |
| 162 | 187 | = = |
| 163 | 188 | = Private methods = |
| ... | ... | @@ -211,4 +236,3 @@ void GVOApp::start_app(void) |
| 211 | 236 | // Return |
| 212 | 237 | return; |
| 213 | 238 | } |
| 214 | - | ... | ... |
src/vo/GVOHub.cpp
| ... | ... | @@ -349,6 +349,8 @@ void GVOHub::declare_subscriptions(const GXml& xml,const socklen_t& sock) |
| 349 | 349 | //Return |
| 350 | 350 | return; |
| 351 | 351 | } |
| 352 | + | |
| 353 | + | |
| 352 | 354 | /***********************************************************************//** |
| 353 | 355 | * @brief Print VO hub information |
| 354 | 356 | * | ... | ... |