aimsdata 6.0.20
Neuroimaging data handling
general.h File Reference
#include <aims/config/aimsdata_config.h>
#include <cartobase/type/types.h>
#include <aims/memmap/allocator.h>
Include dependency graph for general.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  aims
 The class for EcatSino data write operation.

Macros

#define AIMS_MAGIC_NUMBER   0x41424344

Enumerations

enum  AimsDisplayFormalism { AIMS_MATH_FORMALISM , AIMS_IMAGE_FORMALISM }
 Display formalism. More...
enum  AimsBasicType {
  AIMS_SCALAR , AIMS_VECTOR , AIMS_MATRIX , AIMS_VOLUME ,
  AIMS_SEQVOL
}
 The 5 basic types of data. More...

Functions

std::string aims::aimsVersion ()
General AIMS functions
AIMSDATA_API void AimsClear (void)
 Clear the screen.
AIMSDATA_API void AimsPrintVersion (void)
 Print A.I.M.S. version.
AIMSDATA_API std::string AimsStringTypeOf (int type)
 Send a string containing AIMS_XXXX.
AIMSDATA_API int AimsNCompOf (int type)
 Return the number of components of AIMS_XXXX.
AIMSDATA_API double AimsMinValOf (int type)
 Return the minimum value of a AIMS_XXXX data.
AIMSDATA_API double AimsMaxValOf (int type)
 Return the maximum value of a AIMS_XXXX data.
AIMSDATA_API bool AimsIsSignedType (int type)
 Return True if AIMS_XXXX is signed.
AIMSDATA_API bool AimsIsComplexType (int type)
 Return True if AIMS_XXXX is complex.
String, Error and warning messages
AIMSDATA_API void AimsScanNflush (char **str, char *strRef)
 Read the next word from *str, put it in strRef and move *str behind the word.
AIMSDATA_API void AimsError (const std::string &message) __attribute__((__noreturn__))
 Give an error message on display.
AIMSDATA_API void AimsWarning (const std::string &message)
 Give a warning message on display.
Getting data size of text files
AIMSDATA_API bool AimsIsScientificNumberChar (int c)
AIMSDATA_API int AimsSpaceLevelOf (const std::string &filename)
 Return the dimemsion of the space data (1D, 2D, 3D or 4D).
AIMSDATA_API int AimsFileDimXOf (const std::string &filename)
 Return the X dimension of a text file.
AIMSDATA_API int AimsFileDimYOf (const std::string &filename)
 Return the Y dimension of a text file.
AIMSDATA_API int AimsFileDimZOf (const std::string &filename)
 Return the Z dimension of a text file.
AIMSDATA_API int AimsFileDimTOf (const std::string &filename)
 Return the T dimension of a text file.
AIMSDATA_API bool AimsIsComplexData (const std::string &filename)
 Return true if the file contains complex data.
AIMSDATA_API bool AimsIsPoint2dData (const std::string &filename)
 Return true if the file contains 2D point data.
AIMSDATA_API bool AimsIsPoint3dData (const std::string &filename)
 Return true if the file contains 3D point data.

Macro Definition Documentation

◆ AIMS_MAGIC_NUMBER

Enumeration Type Documentation

◆ AimsBasicType

The 5 basic types of data.

Useful enum to specify the type of data.

Enumerator
AIMS_SCALAR 
AIMS_VECTOR 
AIMS_MATRIX 
AIMS_VOLUME 
AIMS_SEQVOL 

Definition at line 76 of file general.h.

◆ AimsDisplayFormalism

Display formalism.

There exists 2 formalisms to display a vector or matrix. The image one consider X to be along rows and Y along columns. The mathematical one is the contrary. An uint define the formalism taken into account.

Enumerator
AIMS_MATH_FORMALISM 

Mathematical formalism.

AIMS_IMAGE_FORMALISM 

Image formalism.

Definition at line 64 of file general.h.

Function Documentation

◆ AimsClear()

AIMSDATA_API void AimsClear ( void )

Clear the screen.

References AimsClear(), and AIMSDATA_API.

Referenced by AimsClear().

◆ AimsError()

AIMSDATA_API void AimsError ( const std::string & message)

Give an error message on display.

References AIMSDATA_API, and AimsError().

Referenced by AimsError(), and aims::AimsLinearCombination< T >::operator()().

◆ AimsFileDimTOf()

AIMSDATA_API int AimsFileDimTOf ( const std::string & filename)

Return the T dimension of a text file.

References AIMSDATA_API, and AimsFileDimTOf().

Referenced by AimsFileDimTOf().

◆ AimsFileDimXOf()

AIMSDATA_API int AimsFileDimXOf ( const std::string & filename)

Return the X dimension of a text file.

References AIMSDATA_API, and AimsFileDimXOf().

Referenced by AimsFileDimXOf().

◆ AimsFileDimYOf()

AIMSDATA_API int AimsFileDimYOf ( const std::string & filename)

Return the Y dimension of a text file.

References AIMSDATA_API, and AimsFileDimYOf().

Referenced by AimsFileDimYOf().

◆ AimsFileDimZOf()

AIMSDATA_API int AimsFileDimZOf ( const std::string & filename)

Return the Z dimension of a text file.

References AIMSDATA_API, and AimsFileDimZOf().

Referenced by AimsFileDimZOf().

◆ AimsIsComplexData()

AIMSDATA_API bool AimsIsComplexData ( const std::string & filename)

Return true if the file contains complex data.

References AIMSDATA_API, and AimsIsComplexData().

Referenced by AimsIsComplexData().

◆ AimsIsComplexType()

AIMSDATA_API bool AimsIsComplexType ( int type)

Return True if AIMS_XXXX is complex.

References AIMSDATA_API, and AimsIsComplexType().

Referenced by AimsIsComplexType().

◆ AimsIsPoint2dData()

AIMSDATA_API bool AimsIsPoint2dData ( const std::string & filename)

Return true if the file contains 2D point data.

References AIMSDATA_API, and AimsIsPoint2dData().

Referenced by AimsIsPoint2dData().

◆ AimsIsPoint3dData()

AIMSDATA_API bool AimsIsPoint3dData ( const std::string & filename)

Return true if the file contains 3D point data.

References AIMSDATA_API, and AimsIsPoint3dData().

Referenced by AimsIsPoint3dData().

◆ AimsIsScientificNumberChar()

AIMSDATA_API bool AimsIsScientificNumberChar ( int c)

◆ AimsIsSignedType()

AIMSDATA_API bool AimsIsSignedType ( int type)

Return True if AIMS_XXXX is signed.

References AIMSDATA_API, and AimsIsSignedType().

Referenced by AimsIsSignedType().

◆ AimsMaxValOf()

AIMSDATA_API double AimsMaxValOf ( int type)

Return the maximum value of a AIMS_XXXX data.

References AIMSDATA_API, and AimsMaxValOf().

Referenced by AimsMaxValOf().

◆ AimsMinValOf()

AIMSDATA_API double AimsMinValOf ( int type)

Return the minimum value of a AIMS_XXXX data.

References AIMSDATA_API, and AimsMinValOf().

Referenced by AimsMinValOf().

◆ AimsNCompOf()

AIMSDATA_API int AimsNCompOf ( int type)

Return the number of components of AIMS_XXXX.

References AIMSDATA_API, and AimsNCompOf().

Referenced by AimsNCompOf().

◆ AimsPrintVersion()

AIMSDATA_API void AimsPrintVersion ( void )

Print A.I.M.S. version.

References AIMSDATA_API, and AimsPrintVersion().

Referenced by AimsPrintVersion().

◆ AimsScanNflush()

AIMSDATA_API void AimsScanNflush ( char ** str,
char * strRef )

Read the next word from *str, put it in strRef and move *str behind the word.

References AIMSDATA_API, and AimsScanNflush().

Referenced by AimsScanNflush().

◆ AimsSpaceLevelOf()

AIMSDATA_API int AimsSpaceLevelOf ( const std::string & filename)

Return the dimemsion of the space data (1D, 2D, 3D or 4D).

References AIMSDATA_API, and AimsSpaceLevelOf().

Referenced by AimsSpaceLevelOf().

◆ AimsStringTypeOf()

AIMSDATA_API std::string AimsStringTypeOf ( int type)

Send a string containing AIMS_XXXX.

References AIMSDATA_API, and AimsStringTypeOf().

Referenced by AimsStringTypeOf().

◆ AimsWarning()

AIMSDATA_API void AimsWarning ( const std::string & message)

Give a warning message on display.

References AIMSDATA_API, and AimsWarning().

Referenced by AimsWarning().