Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
42f4ff45
Commit
42f4ff45
authored
Mar 02, 2014
by
Christian Schulte zu Berge
Browse files
Merge branch 'campvis-core-dll' into 'development'
Campvis Core Dll
parents
0be65bc3
92a0b826
Changes
63
Hide whitespace changes
Inline
Side-by-side
core/tools/textfileparser.h
View file @
42f4ff45
...
...
@@ -29,6 +29,7 @@
#include "tgt/filesystem.h"
#include "tgt/vector.h"
#include "core/coreapi.h"
#include "core/tools/stringutils.h"
#include <map>
...
...
@@ -46,13 +47,13 @@ namespace campvis {
* \todo Better vector support (e.g. "x,y,z" format)
* Test and debug o_O
*/
class
TextFileParser
{
class
CAMPVIS_CORE_API
TextFileParser
{
public:
/**
* Item separator for letting each line in the file result in one key-value pair item.
* \note The behaviour is not implemented as functor but by template specialization!
*/
struct
ItemSeparatorLines
{
struct
CAMPVIS_CORE_API
ItemSeparatorLines
{
// no operator() to implement due to template specialization
};
...
...
@@ -265,7 +266,7 @@ namespace campvis {
/// Template specialization for avoiding redundant split-join-split of lines.
template
<
>
inline
std
::
vector
<
std
::
string
>
campvis
::
TextFileParser
::
readAndParseItems
<
TextFileParser
::
ItemSeparatorLines
>
()
const
throw
(
tgt
::
FileException
,
tgt
::
CorruptedFileException
)
{
CAMPVIS_CORE_API
std
::
vector
<
std
::
string
>
campvis
::
TextFileParser
::
readAndParseItems
<
TextFileParser
::
ItemSeparatorLines
>
()
const
throw
(
tgt
::
FileException
,
tgt
::
CorruptedFileException
)
{
tgt
::
File
*
file
=
FileSys
.
open
(
_url
);
if
(
!
file
||
!
file
->
isOpen
())
throw
tgt
::
FileException
(
"Could not open file "
+
_url
+
" for reading."
,
_url
);
...
...
core/tools/volumebricking.h
View file @
42f4ff45
...
...
@@ -27,6 +27,7 @@
#include "tgt/vector.h"
#include "core/coreapi.h"
#include "core/datastructures/imagedata.h"
#include <vector>
...
...
@@ -37,7 +38,7 @@ namespace tgt {
namespace
campvis
{
class
BinaryBrickedVolume
{
class
CAMPVIS_CORE_API
BinaryBrickedVolume
{
public:
BinaryBrickedVolume
(
const
ImageData
*
referenceImage
,
size_t
brickSize
);
...
...
core/tools/weaklytypedpointer.h
View file @
42f4ff45
...
...
@@ -36,6 +36,8 @@
#include <IL/ilu.h>
#endif
#include "core/coreapi.h"
namespace
campvis
{
/**
...
...
@@ -43,7 +45,7 @@ namespace campvis {
* Therfore it stores an enum value together with the pointer for deducing its data type.
* \note WeaklyTypedPointer takes _not_ take ownership of its pointer, hence it won't take care of deleting it!
*/
struct
WeaklyTypedPointer
{
struct
CAMPVIS_CORE_API
WeaklyTypedPointer
{
/**
* Base data type.
**/
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment