All pastes #1034262 Raw Edit

Untitled

public cpp v1 · immutable
#1034262 ·published 2008-05-30 18:00 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: */