<commit_before>/*
 * Copyright (C) 2011, BMW AG
 *
 * AudioManagerDeamon
 *
 * @file dataTypes.h
 *
 * @date: 20.05.2011
 * @author: <NAME> (<EMAIL>)
 *
 */

#ifndef DATATYPES_H_
#define DATATYPES_H_

#include <qlist.h>

typedef int source_t;
typedef int sink_t;
typedef int domain_t;
typedef int gateway_t;
typedef int connection_t;
typedef int interrupt_t;
typedef int volume_t;
typedef int genHandle_t;
typedef int genInt_t;
typedef int hookprio_t;
typedef int sourceClass_t;
typedef int sinkClass_t;

/**Global defined error Type
 *
 */
typedef enum genError {
	GEN_OK, //!< GEN_OK
	GEN_UNKNOWN, //!< GEN_UNKNOWN
	GEN_OUTOFRANGE, //!< GEN_OUTOFRANGE
	GEN_NOTUSED, //!< GEN_NOTUSED
	GEN_DATABASE_ERROR
//!< GEN_DATABASE_ERROR
} genError_t;

/** the resulttype for the hooks
 *
 */
typedef enum genHookResult {
	HOOK_OK, //!< HOOK_OK
	HOOK_STOP,//!< HOOK_STOP
	HOOK_UNUSED
//!< HOOK_UNUSED
} genHookResult_t;

/** This represents one "hopp" in the route
 * TODO: change from public structs into own public classes
 */
struct genRoutingElement_t {
	source_t source;
	sink_t sink;
	domain_t Domain_ID;
};

/**This is a container for a complete route.
 * A List of "hopps" and a length.
 */
class genRoute_t {
public:
	int len;
	source_t Source_ID;
	sink_t Sink_ID;
	QList<genRoutingElement_t> route;
};

/**This class describes the interrupt Type.
 * \var ID the ID of the Interrupt (unique)
 * \var connID the Connection ID that is used
 * \var sourceI the SourceID of the Interrupt
 * \var sinkID the sinkID of the interrupt
 * \var mixed true if interrupt is mixed into current audio
 * \var listInterruptSources the list of the interrupted sources.
 */
class interruptType_t {
public:
	genInt_t ID;
	connection_t connID;
	source_t sourceID;
	sink_t SinkID;
	bool mixed;
	QList<source_t> listInterrruptedSources;
};

#endif /* DATATYPES_H_ */<commit_msg>corrected speeling of sourceID<commit_after>/*
 * Copyright (C) 2011, BMW AG
 *
 * AudioManagerDeamon
 *
 * @file dataTypes.h
 *
 * @date: 20.05.2011
 * @author: <NAME> (<EMAIL>)
 *
 */

#ifndef DATATYPES_H_
#define DATATYPES_H_

#include <qlist.h>

typedef int source_t;
typedef int sink_t;
typedef int domain_t;
typedef int gateway_t;
typedef int connection_t;
typedef int interrupt_t;
typedef int volume_t;
typedef int genHandle_t;
typedef int genInt_t;
typedef int hookprio_t;
typedef int sourceClass_t;
typedef int sinkClass_t;

/**Global defined error Type
 *
 */
typedef enum genError {
	GEN_OK, //!< GEN_OK
	GEN_UNKNOWN, //!< GEN_UNKNOWN
	GEN_OUTOFRANGE, //!< GEN_OUTOFRANGE
	GEN_NOTUSED, //!< GEN_NOTUSED
	GEN_DATABASE_ERROR
//!< GEN_DATABASE_ERROR
} genError_t;

/** the resulttype for the hooks
 *
 */
typedef enum genHookResult {
	HOOK_OK, //!< HOOK_OK
	HOOK_STOP,//!< HOOK_STOP
	HOOK_UNUSED
//!< HOOK_UNUSED
} genHookResult_t;

/** This represents one "hopp" in the route
 * TODO: change from public structs into own public classes
 */
struct genRoutingElement_t {
	source_t source;
	sink_t sink;
	domain_t Domain_ID;
};

/**This is a container for a complete route.
 * A List of "hopps" and a length.
 */
class genRoute_t {
public:
	int len;
	source_t Source_ID;
	sink_t Sink_ID;
	QList<genRoutingElement_t> route;
};

/**This class describes the interrupt Type.
 * \var ID the ID of the Interrupt (unique)
 * \var connID the Connection ID that is used
 * \var sourceID the SourceID of the Interrupt
 * \var sinkID the sinkID of the interrupt
 * \var mixed true if interrupt is mixed into current audio
 * \var listInterruptSources the list of the interrupted sources.
 */
class interruptType_t {
public:
	genInt_t ID;
	connection_t connID;
	source_t sourceID;
	sink_t SinkID;
	bool mixed;
	QList<source_t> listInterrruptedSources;
};

#endif /* DATATYPES_H_ */
{'fraction_non_alphanumeric': 0.09646302250803858, 'fraction_numerical': 0.006430868167202572, 'mean_word_length': 4.242977528089888, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3491776', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1331, 'n_words': 423}