Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5298100
simple.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
818 B
Referenced Files
None
Subscribers
None
simple.cpp
View Options
/*******************************************************************************
*
* 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
Details
Attached
Mime Type
text/x-c
Expires
Sun, Apr 12, 11:29 AM (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
307048
Default Alt Text
simple.cpp (818 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment