LibNebular, Test for. More...
#include <libnebular.hpp>
#include <iostream>
#include <stdexcept>
#include <string>
#include <cstdlib>
#include <boost/shared_array.hpp>
#include <SDL/SDL.h>
#include "sdl-utils.hpp"
#include "config.h"
#include "utils.hpp"
#include <sstream>
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include <libnebular-plugin.hpp>
Go to the source code of this file.
Functions | |
void | display (Picture &pic, const string &caption="Some picture") |
With help of LibSDL, shows window with Picture pic with and caption caption and then waits for user input. | |
void | listProperties (Picture &pic) |
Lists all String -valued properties of Picture (and hashes for Blob -s). | |
void | warning (const std::string &message) |
Warning callback. | |
void | info (const std::string &message) |
Info message callback. | |
int | main (int argc, char **argv) |
LibNebular, Test for.
Copyright (C) 2011 Leonid Sadikov ⟨ leonius@inbox.ru ⟩
This file is part of LibNebular.
LibNebular is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation.
See "COPYING.LESSER" and "COPYING" in distribution or ⟨http://www.gnu.org/licenses/⟩ for full license text.
Test from SRS that are performed by this application:
Definition in file test-view.cpp.
void display | ( | Picture & | pic, | |
const string & | caption = "Some picture" | |||
) |
With help of LibSDL, shows window with Picture
pic
with and caption caption
and then waits for user input.
Definition at line 46 of file test-view.cpp.
void info | ( | const std::string & | message | ) |
Info message callback.
Definition at line 106 of file test-view.cpp.
void listProperties | ( | Picture & | pic | ) |
Lists all String
-valued properties of Picture
(and hashes for Blob
-s).
Definition at line 82 of file test-view.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
void warning | ( | const std::string & | message | ) |
Warning callback.
Definition at line 101 of file test-view.cpp.