All pastes #1034252 Raw Edit

Something

public cpp v1 · immutable
#1034252 ·published 2008-05-30 17:48 UTC
rendered paste body
#include <iostream>#include "ConnectionManager.h"#include "ClientConnection.h"#include "Project.h"#include "ProjectList.h"int main() {    ConnectionManager mgr;    ClientConnection& client = mgr.connect("localhost", "password");    const ProjectList& projects = client.get_projects();    for (ProjectList::const_iterator it = projects.begin(); it != projects.end(); ++it) {        Project* p = *it;        std::cout << p->master_url() << " " << p->name() << '\n';    }    return 0;}/* vim: set ts=4 sw=4 et: */