// This C++ header file was generated by the TTCN-3 compiler // of the TTCN-3 Test Executor version 9.0.0 // for (build@df34402ede0d) on Tue Jun 25 17:59:45 2024 // Copyright (c) 2000-2023 Ericsson Telecom AB // Do not edit this file unless you know what you are doing. #ifndef StatsD__Types_HH #define StatsD__Types_HH #ifdef TITAN_RUNTIME_2 #error Generated code does not match with used runtime.\ Code was generated without -R option but -DTITAN_RUNTIME_2 was used. #endif /* Header file includes */ #include #if TTCN3_VERSION != 90000 #error Version mismatch detected.\ Please check the version of the TTCN-3 compiler and the base library.\ Run make clean and rebuild the project if the version of the compiler changed recently. #endif #ifndef LINUX #error This file should be compiled on LINUX #endif #undef StatsD__Types_HH #endif namespace StatsD__Types { /* Forward declarations of classes */ class StatsDMetric; class StatsDMetric_template; class StatsDMessage; class StatsDMessage_template; } /* end of namespace */ #ifndef StatsD__Types_HH #define StatsD__Types_HH namespace StatsD__Types { /* Type definitions */ typedef CHARSTRING MetricName; typedef CHARSTRING_template MetricName_template; typedef INTEGER MetricValue; typedef INTEGER_template MetricValue_template; typedef CHARSTRING MetricType; typedef CHARSTRING_template MetricType_template; typedef CHARSTRING MetricSampleRate; typedef CHARSTRING_template MetricSampleRate_template; /* Class definitions */ class StatsDMetric : public Base_Type { CHARSTRING field_name; INTEGER field_val; CHARSTRING field_mtype; OPTIONAL< CHARSTRING > field_srate; public: StatsDMetric(); StatsDMetric(const CHARSTRING& par_name, const INTEGER& par_val, const CHARSTRING& par_mtype, const OPTIONAL< CHARSTRING >& par_srate); StatsDMetric(const StatsDMetric& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; StatsDMetric& operator=(const StatsDMetric& other_value); boolean operator==(const StatsDMetric& other_value) const; inline boolean operator!=(const StatsDMetric& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline CHARSTRING& name() {return field_name;} inline const CHARSTRING& name() const {return field_name;} inline INTEGER& val() {return field_val;} inline const INTEGER& val() const {return field_val;} inline CHARSTRING& mtype() {return field_mtype;} inline const CHARSTRING& mtype() const {return field_mtype;} inline OPTIONAL< CHARSTRING >& srate() {return field_srate;} inline const OPTIONAL< CHARSTRING >& srate() const {return field_srate;} int size_of() const; void log() const; void set_implicit_omit(); void set_param(Module_Param& param); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...) const; void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...); int TEXT_encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&) const; int TEXT_decode(const TTCN_Typedescriptor_t&,TTCN_Buffer&, Limit_Token_List&, boolean no_err=FALSE,boolean first_call=TRUE); }; class StatsDMetric_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; StatsDMetric_template *list_value; } value_list; struct { StatsDMetric_template* precondition; StatsDMetric_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const StatsDMetric& other_value); void copy_template(const StatsDMetric_template& other_value); public: StatsDMetric_template(); StatsDMetric_template(template_sel other_value); StatsDMetric_template(const StatsDMetric& other_value); StatsDMetric_template(const OPTIONAL& other_value); StatsDMetric_template(StatsDMetric_template* p_precondition, StatsDMetric_template* p_implied_template); StatsDMetric_template(Dynamic_Match_Interface* p_dyn_match); StatsDMetric_template(const StatsDMetric_template& other_value); ~StatsDMetric_template(); StatsDMetric_template& operator=(template_sel other_value); StatsDMetric_template& operator=(const StatsDMetric& other_value); StatsDMetric_template& operator=(const OPTIONAL& other_value); StatsDMetric_template& operator=(const StatsDMetric_template& other_value); boolean match(const StatsDMetric& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); StatsDMetric valueof() const; void set_type(template_sel template_type, unsigned int list_length); StatsDMetric_template& list_item(unsigned int list_index) const; CHARSTRING_template& name(); const CHARSTRING_template& name() const; INTEGER_template& val(); const INTEGER_template& val() const; CHARSTRING_template& mtype(); const CHARSTRING_template& mtype() const; CHARSTRING_template& srate(); const CHARSTRING_template& srate() const; int size_of() const; void log() const; void log_match(const StatsDMetric& match_value, boolean legacy = FALSE) const; void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); void set_param(Module_Param& param); void check_restriction(template_res t_res, const char* t_name=NULL, boolean legacy = FALSE) const; boolean is_present(boolean legacy = FALSE) const; boolean match_omit(boolean legacy = FALSE) const; }; class StatsDMessage : public Base_Type { struct recordof_setof_struct { int ref_count; int n_elements; StatsDMetric **value_elements; } *val_ptr; static const StatsDMetric UNBOUND_ELEM; private: friend boolean operator==(null_type null_value, const StatsDMessage& other_value); public: typedef StatsDMetric of_type; StatsDMessage(); StatsDMessage(null_type other_value); StatsDMessage(const StatsDMessage& other_value); ~StatsDMessage(); void clean_up(); StatsDMessage& operator=(null_type other_value); StatsDMessage& operator=(const StatsDMessage& other_value); boolean operator==(null_type other_value) const; boolean operator==(const StatsDMessage& other_value) const; inline boolean operator!=(null_type other_value) const { return !(*this == other_value); } inline boolean operator!=(const StatsDMessage& other_value) const { return !(*this == other_value); } StatsDMetric& operator[](int index_value); StatsDMetric& operator[](const INTEGER& index_value); const StatsDMetric& operator[](int index_value) const; const StatsDMetric& operator[](const INTEGER& index_value) const; StatsDMessage operator<<=(int rotate_count) const; StatsDMessage operator<<=(const INTEGER& rotate_count) const; StatsDMessage operator>>=(int rotate_count) const; StatsDMessage operator>>=(const INTEGER& rotate_count) const; StatsDMessage operator+(const StatsDMessage& other_value) const; StatsDMessage substr(int index, int returncount) const; StatsDMessage replace(int index, int len, const StatsDMessage& repl) const; StatsDMessage replace(int index, int len, const StatsDMessage_template& repl) const; void set_size(int new_size); inline boolean is_bound() const {return val_ptr != NULL; } inline boolean is_present() const { return is_bound(); } boolean is_value() const; int size_of() const; int n_elem() const { return size_of(); } int lengthof() const; void log() const; void set_implicit_omit(); void set_param(Module_Param& param); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...) const; void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...); int TEXT_encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&) const; int TEXT_decode(const TTCN_Typedescriptor_t&,TTCN_Buffer&, Limit_Token_List&, boolean no_err=FALSE,boolean first_call=TRUE); }; class StatsDMessage_template : public Base_Record_Of_Template { union { struct { int n_elements; StatsDMetric_template **value_elements; } single_value; struct { unsigned int n_values; StatsDMessage_template *list_value; } value_list; struct { StatsDMessage_template* precondition; StatsDMessage_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void copy_value(const StatsDMessage& other_value); void copy_template(const StatsDMessage_template& other_value); static boolean match_function_specific(const Base_Type *value_ptr, int value_index, const Restricted_Length_Template *template_ptr, int template_index, boolean legacy); public: StatsDMessage_template(); StatsDMessage_template(template_sel other_value); StatsDMessage_template(null_type other_value); StatsDMessage_template(const StatsDMessage& other_value); StatsDMessage_template(const OPTIONAL& other_value); StatsDMessage_template(StatsDMessage_template* p_precondition, StatsDMessage_template* p_implied_template); StatsDMessage_template(Dynamic_Match_Interface* p_dyn_match); StatsDMessage_template(const StatsDMessage_template& other_value); ~StatsDMessage_template(); void clean_up(); StatsDMessage_template& operator=(template_sel other_value); StatsDMessage_template& operator=(null_type other_value); StatsDMessage_template& operator=(const StatsDMessage& other_value); StatsDMessage_template& operator=(const OPTIONAL& other_value); StatsDMessage_template& operator=(const StatsDMessage_template& other_value); StatsDMetric_template& operator[](int index_value); StatsDMetric_template& operator[](const INTEGER& index_value); const StatsDMetric_template& operator[](int index_value) const; const StatsDMetric_template& operator[](const INTEGER& index_value) const; void set_size(int new_size); int n_elem() const; int size_of(boolean is_size) const; inline int size_of() const { return size_of(TRUE); } inline int lengthof() const { return size_of(FALSE); } boolean match(const StatsDMessage& other_value, boolean legacy = FALSE) const; inline boolean is_bound() const {return template_selection != UNINITIALIZED_TEMPLATE; } boolean is_value() const; StatsDMessage valueof() const; StatsDMessage substr(int index, int returncount) const; StatsDMessage replace(int index, int len, const StatsDMessage_template& repl) const; StatsDMessage replace(int index, int len, const StatsDMessage& repl) const; void set_type(template_sel template_type, unsigned int list_length); StatsDMessage_template& list_item(unsigned int list_index); void log() const; void log_match(const StatsDMessage& match_value, boolean legacy = FALSE) const; void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); boolean is_present(boolean legacy = FALSE) const; boolean match_omit(boolean legacy = FALSE) const; void set_param(Module_Param& param); void check_restriction(template_res t_res, const char* t_name=NULL, boolean legacy = FALSE) const; boolean get_istemplate_kind(const char* type) const; }; /* Function prototypes */ extern void MetricName_encoder(const CHARSTRING& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER MetricName_decoder(OCTETSTRING& input_stream, CHARSTRING& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern void MetricValue_encoder(const INTEGER& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER MetricValue_decoder(OCTETSTRING& input_stream, INTEGER& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern void MetricType_encoder(const CHARSTRING& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER MetricType_decoder(OCTETSTRING& input_stream, CHARSTRING& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern void MetricSampleRate_encoder(const CHARSTRING& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER MetricSampleRate_decoder(OCTETSTRING& input_stream, CHARSTRING& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern void StatsDMetric_encoder(const StatsDMetric& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER StatsDMetric_decoder(OCTETSTRING& input_stream, StatsDMetric& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern boolean operator==(null_type null_value, const StatsDMessage& other_value); inline boolean operator!=(null_type null_value, const StatsDMessage& other_value) { return !(null_value == other_value); } extern void StatsDMessage_encoder(const StatsDMessage& input_value, OCTETSTRING& output_stream, const UNIVERSAL_CHARSTRING& coding_name); extern INTEGER StatsDMessage_decoder(OCTETSTRING& input_stream, StatsDMessage& output_value, const UNIVERSAL_CHARSTRING& coding_name); extern CHARSTRING enc__StatsDMessage(const StatsDMessage& id); extern StatsDMessage dec__StatsDMessage(const CHARSTRING& id); extern StatsDMessage_template tr__StatsDMsg1(const StatsDMetric_template& metric); extern StatsDMetric_template tr__StatsDMetric(const CHARSTRING_template& name, const INTEGER_template& val, const CHARSTRING_template& mtype); extern StatsDMetric_template tr__StatsDMetricCounter(const CHARSTRING_template& name, const INTEGER_template& val); extern StatsDMetric_template tr__StatsDMetricGauge(const CHARSTRING_template& name, const INTEGER_template& val); extern void pre_init_module(); extern void post_init_module(); /* Global variable declarations */ extern const TTCN_TEXTdescriptor_t MetricName_text_; extern const XERdescriptor_t MetricName_xer_; extern const TTCN_Typedescriptor_t MetricName_descr_; extern UNIVERSAL_CHARSTRING MetricName_default_coding; extern const TTCN_TEXTdescriptor_t MetricValue_text_; extern const XERdescriptor_t MetricValue_xer_; extern const TTCN_OERdescriptor_t MetricValue_oer_; extern const TTCN_Typedescriptor_t MetricValue_descr_; extern UNIVERSAL_CHARSTRING MetricValue_default_coding; extern const XERdescriptor_t MetricType_xer_; extern const TTCN_Typedescriptor_t MetricType_descr_; extern UNIVERSAL_CHARSTRING MetricType_default_coding; extern const TTCN_TEXTdescriptor_t MetricSampleRate_text_; extern const XERdescriptor_t MetricSampleRate_xer_; extern const TTCN_Typedescriptor_t MetricSampleRate_descr_; extern UNIVERSAL_CHARSTRING MetricSampleRate_default_coding; extern const XERdescriptor_t StatsDMetric_name_xer_; extern const TTCN_Typedescriptor_t StatsDMetric_name_descr_; extern UNIVERSAL_CHARSTRING StatsDMetric_name_default_coding; extern const XERdescriptor_t StatsDMetric_val_xer_; extern const TTCN_OERdescriptor_t StatsDMetric_val_oer_; extern const TTCN_Typedescriptor_t StatsDMetric_val_descr_; extern UNIVERSAL_CHARSTRING StatsDMetric_val_default_coding; extern const XERdescriptor_t StatsDMetric_mtype_xer_; extern const TTCN_Typedescriptor_t StatsDMetric_mtype_descr_; extern UNIVERSAL_CHARSTRING StatsDMetric_mtype_default_coding; extern const TTCN_TEXTdescriptor_t StatsDMetric_text_; extern const TTCN_Typedescriptor_t StatsDMetric_descr_; extern const XERdescriptor_t StatsDMetric_srate_xer_; extern const TTCN_Typedescriptor_t StatsDMetric_srate_descr_; extern UNIVERSAL_CHARSTRING StatsDMetric_srate_default_coding; extern UNIVERSAL_CHARSTRING StatsDMetric_default_coding; extern const TTCN_TEXTdescriptor_param_values StatsDMessage_par_; extern const TTCN_TEXTdescriptor_t StatsDMessage_text_; extern const TTCN_Typedescriptor_t StatsDMessage_descr_; extern UNIVERSAL_CHARSTRING StatsDMessage_0_default_coding; extern UNIVERSAL_CHARSTRING StatsDMessage_default_coding; extern const INTEGER_template& tr__StatsDMetric_val_defval; extern INTEGER_template template_tr__StatsDMetric_val_defval; extern const INTEGER_template& tr__StatsDMetricCounter_val_defval; extern INTEGER_template template_tr__StatsDMetricCounter_val_defval; extern const INTEGER_template& tr__StatsDMetricGauge_val_defval; extern INTEGER_template template_tr__StatsDMetricGauge_val_defval; extern const CHARSTRING cs_3, cs_0, cs_4, cs_5, cs_1, cs_2; extern const unsigned char module_checksum[]; extern TTCN_Module module_object; extern const RuntimeVersionChecker ver_checker; } /* end of namespace */ #endif