Page MenuHomePhorge

simple.cpp
No OneTemporary

Size
818 B
Referenced Files
None
Subscribers
None

simple.cpp

/*******************************************************************************
*
* File: simple.cpp
*
* Contents: A very simple example to use RoSA Core library.
*
* Copyright 2017
*
* Author: David Juhasz (david.juhasz@tuwien.ac.at)
*
******************************************************************************/
#include "rosa/config/version.h"
#include "rosa/core/Unit.h"
#include "rosa/support/log.h"
#include "rosa/support/terminal_colors.h"
#include <iostream>
using namespace rosa;
using namespace rosa::terminal;
int main(void) {
LOG_INFO_STREAM << library_string() << " -- " << Color::Red
<< "simple example" << Color::Default << std::endl;
Unit Unit1, Unit2("Second"), Unit3;
LOG_TRACE_STREAM << "Dumping Unit2" << std::endl << Unit2 << std::endl;
return 0;
}

File Metadata

Mime Type
text/x-c
Expires
Sun, Apr 12, 11:29 AM (4 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
307048
Default Alt Text
simple.cpp (818 B)

Event Timeline