<commit_before>/** @file
 *
 * @ingroup modularLibrary
 *
 * @brief A Container object
 *
 * @details
 *
 * @authors <NAME>
 *
 * @copyright © 2010, <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */


#include "TTContainer.h"

#define thisTTClass			TTContainer
#define thisTTClassName		"Container"
#define thisTTClassTags		"node, container"

TT_MODULAR_CONSTRUCTOR,
mPriority(0), 
mDescription(kTTSym_none),
mService(kTTSym_none),
mTag(TTValue(kTTSym_none)),
mInitialized(NO),
mAddress(kTTAdrsEmpty),
mAlias(kTTAdrsEmpty),
mActivity(kTTValNONE),
mContent(kTTValNONE),
mReturnAddressCallback(NULL),
mReturnValueCallback(NULL),
mObjectsObserversCache(NULL),
mObserver(NULL),
activityAttribute(NULL)
{
	if(arguments.size() == 2) {
		mReturnAddressCallback = TTCallbackPtr((TTObjectBasePtr)arguments[0]);
		mReturnValueCallback = TTCallbackPtr((TTObjectBasePtr)arguments[1]);
	}
	
	addAttributeWithSetter(Priority, kTypeUInt8);
	addAttribute(Description, kTypeSymbol);
    
    addAttribute(Service, kTypeSymbol);
    addAttributeProperty(Service, hidden, YES);
    
	addAttributeWithSetter(Tag, kTypeLocalValue);
	
	addAttribute(Initialized, kTypeBoolean);
	addAttributeProperty(Initialized, readOnly, YES);
	addAttributeProperty(Initialized, hidden, YES);
	
	addAttributeWithSetter(Address, kTypeSymbol);
	addAttributeProperty(Address, hidden, YES);
	
	addAttributeWithSetter(Alias, kTypeSymbol);

	addAttribute(Activity, kTypeLocalValue);             // TODO : have a way to add notification (instead of a readonly attribute)
	addAttributeProperty(Activity, readOnly, YES);
    
    addAttribute(Content, kTypeLocalValue);             // TODO : have a way to add notification (instead of a readonly attribute)
	addAttributeProperty(Content, readOnly, YES);
    <commit_msg>Showing TTContainer service attribute<commit_after>/** @file
 *
 * @ingroup modularLibrary
 *
 * @brief A Container object
 *
 * @details
 *
 * @authors <NAME>
 *
 * @copyright © 2010, <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */


#include "TTContainer.h"

#define thisTTClass			TTContainer
#define thisTTClassName		"Container"
#define thisTTClassTags		"node, container"

TT_MODULAR_CONSTRUCTOR,
mPriority(0), 
mDescription(kTTSym_none),
mService(kTTSym_none),
mTag(TTValue(kTTSym_none)),
mInitialized(NO),
mAddress(kTTAdrsEmpty),
mAlias(kTTAdrsEmpty),
mActivity(kTTValNONE),
mContent(kTTValNONE),
mReturnAddressCallback(NULL),
mReturnValueCallback(NULL),
mObjectsObserversCache(NULL),
mObserver(NULL),
activityAttribute(NULL)
{
	if(arguments.size() == 2) {
		mReturnAddressCallback = TTCallbackPtr((TTObjectBasePtr)arguments[0]);
		mReturnValueCallback = TTCallbackPtr((TTObjectBasePtr)arguments[1]);
	}
	
	addAttributeWithSetter(Priority, kTypeUInt8);
	addAttribute(Description, kTypeSymbol);
    
    addAttribute(Service, kTypeSymbol);
    
	addAttributeWithSetter(Tag, kTypeLocalValue);
	
	addAttribute(Initialized, kTypeBoolean);
	addAttributeProperty(Initialized, readOnly, YES);
	addAttributeProperty(Initialized, hidden, YES);
	
	addAttributeWithSetter(Address, kTypeSymbol);
	addAttributeProperty(Address, hidden, YES);
	
	addAttributeWithSetter(Alias, kTypeSymbol);

	addAttribute(Activity, kTypeLocalValue);             // TODO : have a way to add notification (instead of a readonly attribute)
	addAttributeProperty(Activity, readOnly, YES);
    
    addAttribute(Content, kTypeLocalValue);             // TODO : have a way to add notification (instead of a readonly attribute)
	addAttributeProperty(Content, readOnly, YES);
    
{'fraction_non_alphanumeric': 0.108056614044638, 'fraction_numerical': 0.004899292324442025, 'mean_word_length': 6.0, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3213454', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1121, 'n_words': 246}