All pastes #1034279 Raw Edit

Stuff

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