Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
dynamic-graph
Commits
e65c8676
Commit
e65c8676
authored
14 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes
* contiifstream.h: re-indent and remove trailing white spaces.
parent
21630fa8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/dynamic-graph/contiifstream.h
+30
-30
30 additions, 30 deletions
include/dynamic-graph/contiifstream.h
with
30 additions
and
30 deletions
include/dynamic-graph/contiifstream.h
+
30
−
30
View file @
e65c8676
...
...
@@ -43,44 +43,44 @@
/* --- API ------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
#if defined (WIN32)
#if defined (WIN32)
# if defined (sotContiifstream_EXPORTS)
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllexport)
# else
# else
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllimport)
# endif
# endif
#else
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT
#endif
namespace
dynamicgraph
{
/* --------------------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
/* --------------------------------------------------------------------- */
class
DYNAMICGRAPHCONTIIFSTREAM_EXPORT
Contiifstream
{
protected:
std
::
string
filename
;
unsigned
int
cursor
;
static
const
unsigned
int
BUFFER_SIZE
=
256
;
char
buffer
[
BUFFER_SIZE
];
std
::
list
<
std
::
string
>
reader
;
bool
first
;
public:
/* --- Constructor --- */
Contiifstream
(
const
std
::
string
&
n
=
""
);
~
Contiifstream
(
void
);
void
open
(
const
std
::
string
&
n
)
{
filename
=
n
;
cursor
=
0
;
}
public
:
/* --- READ FILE --- */
bool
loop
(
void
);
public
:
/* --- READ LIST --- */
inline
bool
ready
(
void
)
{
return
0
<
reader
.
size
();}
std
::
string
next
(
void
)
;
};
/* --------------------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
/* --------------------------------------------------------------------- */
class
DYNAMICGRAPHCONTIIFSTREAM_EXPORT
Contiifstream
{
protected:
std
::
string
filename
;
unsigned
int
cursor
;
static
const
unsigned
int
BUFFER_SIZE
=
256
;
char
buffer
[
BUFFER_SIZE
];
std
::
list
<
std
::
string
>
reader
;
bool
first
;
public:
/* --- Constructor --- */
Contiifstream
(
const
std
::
string
&
n
=
""
);
~
Contiifstream
(
void
);
void
open
(
const
std
::
string
&
n
)
{
filename
=
n
;
cursor
=
0
;
}
public
:
/* --- READ FILE --- */
bool
loop
(
void
);
public
:
/* --- READ LIST --- */
inline
bool
ready
(
void
)
{
return
0
<
reader
.
size
();}
std
::
string
next
(
void
)
;
};
}
// namespace dynamicgraph
#endif
/* #ifndef __CONTIIFSTREAM_HH__ */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment