Last change
on this file since 5734 was
5675,
checked in by ldelgass, 9 years ago
|
merge r5673 from trunk (eol-style)
|
-
Property svn:eol-style set to
native
|
File size:
943 bytes
|
Line | |
---|
1 | /* |
---|
2 | * ====================================================================== |
---|
3 | * Rappture::Utils |
---|
4 | * |
---|
5 | * AUTHOR: Derrick Kearney, Purdue University |
---|
6 | * |
---|
7 | * Copyright (c) 2004-2012 HUBzero Foundation, LLC |
---|
8 | * ---------------------------------------------------------------------- |
---|
9 | * See the file "license.terms" for information on usage and |
---|
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
11 | * ====================================================================== |
---|
12 | */ |
---|
13 | |
---|
14 | #include <iostream> |
---|
15 | #include "RpUtils.h" |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif // ifdef __cplusplus |
---|
20 | |
---|
21 | using namespace Rappture::Utils; |
---|
22 | |
---|
23 | int |
---|
24 | progress(int percent, const char* text) |
---|
25 | { |
---|
26 | if (text != NULL) { |
---|
27 | std::cout << "=RAPPTURE-PROGRESS=>" << percent << " " << text << std::endl; |
---|
28 | } else { |
---|
29 | std::cout << "=RAPPTURE-PROGRESS=>" << percent << std::endl; |
---|
30 | } |
---|
31 | return 0; |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | #ifdef __cplusplus |
---|
36 | } |
---|
37 | #endif // ifdef __cplusplus |
---|
Note: See
TracBrowser
for help on using the repository browser.