All pastes #1069535 Raw Edit

Anonymous

public cpp v1 · immutable
#1069535 ·published 2008-07-11 22:02 UTC
rendered paste body
#include <cstdio>#include "ConnectionManager.h"#include "ClientConnection.h"#include "Project.h"#include "ProjectList.h"int main() {    ConnectionManager mgr;    ClientConnection connection(mgr);    connection.connect("127.0.0.1");    const ProjectList& projects = connection.get_projects();    for (ProjectList::const_iterator it = projects.begin(); it != projects.end(); ++it) {        Project* p = *it;        printf("Project %s (%s)\n", p->name(), p->master_url());    }    return 0;}/* vim: set ts=4 sw=4 et: */