text
stringlengths
3
1.05M
/********************************************************************** Audacity: A Digital Audio Editor MultiFormatReader.cpp Philipp Sibler ******************************************************************//** \class MultiFormatReader \brief MultiFormatReader reads raw audio files in different formats and machine endianness representations. *//*******************************************************************/ #include <exception> #include <stdexcept> #include <cstring> #include <stdint.h> #include <cstdio> #include <wx/defs.h> #include "MultiFormatReader.h" MultiFormatReader::MultiFormatReader(const char* filename) : mpFid(NULL) { mpFid = fopen(filename, "rb"); if (mpFid == NULL) { throw std::runtime_error("Error opening file"); } } MultiFormatReader::~MultiFormatReader() { if (mpFid != NULL) { fclose(mpFid); } } void MultiFormatReader::Reset() { if (mpFid != NULL) { rewind(mpFid); } } size_t MultiFormatReader::ReadSamples(void* buffer, size_t len, MultiFormatReader::FormatT format, MachineEndianness::EndiannessT end) { return ReadSamples(buffer, len, 1, format, end); } size_t MultiFormatReader::ReadSamples(void* buffer, size_t len, size_t stride, MultiFormatReader::FormatT format, MachineEndianness::EndiannessT end) { bool swapflag = (mEnd.Which() != end); size_t actRead; switch(format) { case Int8: case Uint8: actRead = Read(buffer, 1, len, stride); break; case Int16: case Uint16: actRead = Read(buffer, 2, len, stride); if(swapflag) SwapBytes(buffer, 2, len); break; case Int32: case Uint32: case Float: actRead = Read(buffer, 4, len, stride); if(swapflag) SwapBytes(buffer, 4, len); break; case Double: actRead = Read(buffer, 8, len, stride); if(swapflag) SwapBytes(buffer, 8, len); break; default: break; } return actRead; } size_t MultiFormatReader::Read(void* buffer, size_t size, size_t len, size_t stride) { size_t actRead = 0; uint8_t* pWork = (uint8_t*) buffer; if (stride > 1) { // There are gaps between consecutive samples, // so do a scattered read for (size_t n = 0; n < len; n++) { actRead += fread(&(pWork[n*size]), size, 1, mpFid); fseek(mpFid, (stride - 1) * size, SEEK_CUR); } } else { // Just do a linear read actRead = fread(buffer, size, len, mpFid); } return actRead; } void MultiFormatReader::SwapBytes(void* buffer, size_t size, size_t len) { uint8_t* pResBuffer = (uint8_t*) buffer; uint8_t* pCurBuffer; if (size > 8) { throw std::runtime_error("SwapBytes Exception: Format width exceeding 8 bytes."); } for (size_t i = 0; i < len; i++) { pCurBuffer = &(pResBuffer[i*size]); memcpy(mSwapBuffer, &(pCurBuffer[0]), size); for (size_t n = 0; n < size; n++) { pCurBuffer[n] = mSwapBuffer[size - n - 1]; } } }
<法規> <法規性質>命令</法規性質> <英文法規名稱>Regulations of Airport service fee for International flights Passengers</英文法規名稱> <中文法規名稱>出境航空旅客機場服務費收費及作業辦法</中文法規名稱> <法規網址>https://law.moj.gov.tw/Eng/LawClass/LawAll.aspx?pcode=K0110005</法規網址> <最新英文異動日期>20190724</最新英文異動日期> <廢止註記> </廢止註記> <附件 /> <沿革內容><![CDATA[1.Full text is promulgated by Executive Yuan. Order No. 8263 on October 8, 1969. 2.Amended by Executive Yuan Order No. 12376 on December 8, 1971. 3.Amended by Executive Yuan Order No. 4643 on May 5, 1972. 4.Amended by Executive Yuan Order No. 1227 on February 16, 1976. 5.Amended article 2 by Executive Yuan Order No. 12792 on September 16, 1981. 6.Amended by Executive Yuan Order No. 053050 on September 26, 2001. 7.Amended the standard title and release 8 article by MOTC No. 092B000002 on January 10, 2003 8.Amended by MOTC Order No. 0990008358 on September 10, 2010. 9.Amended article 2 by MOTC Order No. 10450047831 on April 29, 2015. 10.Amended article 3 by MOTC Order No. 10800210331 on July 24, 2019.]]></沿革內容> <前言><![CDATA[]]></前言> <法規內容> <條文> <條號>Article 1</條號> <條文內容><![CDATA[This Regulation is enacted in accordance with the provisions in the first paragraph of Article 38, Act for the Development of Tourism.]]></條文內容> </條文> <條文> <條號>Article 2</條號> <條文內容><![CDATA[Passengers departing on international flights shall pay the airport service fee in accordance with this regulation. The following passengers are exempted from the charge: 1. Diplomatic Privileges (1) Passengers who hold diplomatic visa. (2) Passengers who are consuls or consular staff and members of their families. (3) Passengers and their accompanying families who are staff of the Foreign Missions qualified by the Ministry of Foreign Affairs (4) Passengers and their accompanying families who have been informed to CAA with the courtesy notice by the Ministry of Foreign Affairs. Above-mentioned qualifications are limited to the treaties, agreements, project approved by the Ministry of Foreign Affairs or in accordance with the conditions of reciprocity. 2. Guests who are invited by the Office of President, the National Security Council, the five Yuans and its subordinate second-level agencies, and have been informed to CAA for exemption from the?charge by aforementioned organizations. 3. Passengers who are under 2 years old. 4. Transit Passengers who enter for participating a half-day tour held by the Tourism Authority.]]></條文內容> </條文> <條文> <條號>Article 3</條號> <條文內容><![CDATA[The airport service fee for passengers departing on international flights is NT $500 per person, and the fee will be charged by the airline company along with flight ticket. Passengers who holding the exclusive service fee ticket have to pay the fee to the airline company when deal with the departure procedure. The airport service fee paid by passengers who did not depart could be applied for a full refund without any charge from the airline company.]]></條文內容> </條文> <條文> <條號>Article 4</條號> <條文內容><![CDATA[In accordance with the provisions of article 2, the person is exempt from paying airport service fee, shall hand out the documents when deal with the departure procedures. And the airline company should upload the document to the report form printed by CAA or the State-run International Airport Park Corporation Limited (hereafter referred to as Airport Corporation), and sent the document copies and list of passenger to CAA or Airport Corporation for censoring. In accordance with the provisions of article 2, and ticket price is included airport service fee, passenger shall apply for a refund from airline company when deal with the departure procedure.]]></條文內容> </條文> <條文> <條號>Article 5</條號> <條文內容><![CDATA[Airline company shall pay the collective airport service fee according to the following statements: 1. Sending the list of passengers and daily fiscal report to airport or Airport Corporation for censoring at next working day. 2. According to the monthly information of collective airport service fee from the airport, airline company shall pay the fee to the banks designated by the Tourism Bureau of Ministry of Transportation and Communication, and CAA, before the next month on 16th. 3. According to the monthly information of collective airport service fee from the Airport Corporation, the airline company shall pay the fee to the banks designated by the Tourism Bureau of Ministry of Transportation and Communication, and Airport Corporation, before the next month on 16th. The airline company should take 2.5% of the collective airport service fee aforementioned as its service fee.]]></條文內容> </條文> <條文> <條號>Article 6</條號> <條文內容><![CDATA[As long as airline company postpone paying the airport service fee, Tourism Bureau, the Civil Aviation Authority and Airport Corporation shall retrieve the fee and shall add 5? interest daily for the delay.]]></條文內容> </條文> <條文> <條號>Article 7</條號> <條文內容><![CDATA[Ministry of Transportation and Communication shall send staff for checking the situation of collecting airport service fee anytime; failure by the regulations or not in conformity matter shall notify the airport, Airport Corporation or airline company immediately for checking the improvements. Ministry of Transportation and Communication shall designate this work to CAA or Tourism Bureau.]]></條文內容> </條文> <條文> <條號>Article 8</條號> <條文內容><![CDATA[This Regulation shall become effective on the date of promulgation.]]></條文內容> </條文> </法規內容> </法規>
 #pragma once #include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h> #include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <utility> namespace Aws { namespace ElasticLoadBalancingv2 { namespace Model { /** */ class AWS_ELASTICLOADBALANCINGV2_API DescribeRulesRequest : public ElasticLoadBalancingv2Request { public: DescribeRulesRequest(); Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline const Aws::String& GetListenerArn() const{ return m_listenerArn; } /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline void SetListenerArn(const Aws::String& value) { m_listenerArnHasBeenSet = true; m_listenerArn = value; } /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline void SetListenerArn(Aws::String&& value) { m_listenerArnHasBeenSet = true; m_listenerArn = std::move(value); } /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline void SetListenerArn(const char* value) { m_listenerArnHasBeenSet = true; m_listenerArn.assign(value); } /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline DescribeRulesRequest& WithListenerArn(const Aws::String& value) { SetListenerArn(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline DescribeRulesRequest& WithListenerArn(Aws::String&& value) { SetListenerArn(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of the listener.</p> */ inline DescribeRulesRequest& WithListenerArn(const char* value) { SetListenerArn(value); return *this;} /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline const Aws::Vector<Aws::String>& GetRuleArns() const{ return m_ruleArns; } /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline void SetRuleArns(const Aws::Vector<Aws::String>& value) { m_ruleArnsHasBeenSet = true; m_ruleArns = value; } /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline void SetRuleArns(Aws::Vector<Aws::String>&& value) { m_ruleArnsHasBeenSet = true; m_ruleArns = std::move(value); } /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline DescribeRulesRequest& WithRuleArns(const Aws::Vector<Aws::String>& value) { SetRuleArns(value); return *this;} /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline DescribeRulesRequest& WithRuleArns(Aws::Vector<Aws::String>&& value) { SetRuleArns(std::move(value)); return *this;} /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline DescribeRulesRequest& AddRuleArns(const Aws::String& value) { m_ruleArnsHasBeenSet = true; m_ruleArns.push_back(value); return *this; } /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline DescribeRulesRequest& AddRuleArns(Aws::String&& value) { m_ruleArnsHasBeenSet = true; m_ruleArns.push_back(std::move(value)); return *this; } /** * <p>The Amazon Resource Names (ARN) of the rules.</p> */ inline DescribeRulesRequest& AddRuleArns(const char* value) { m_ruleArnsHasBeenSet = true; m_ruleArns.push_back(value); return *this; } /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline const Aws::String& GetMarker() const{ return m_marker; } /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline DescribeRulesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline DescribeRulesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** * <p>The marker for the next set of results. (You received this marker from a * previous call.)</p> */ inline DescribeRulesRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** * <p>The maximum number of results to return with this call.</p> */ inline int GetPageSize() const{ return m_pageSize; } /** * <p>The maximum number of results to return with this call.</p> */ inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** * <p>The maximum number of results to return with this call.</p> */ inline DescribeRulesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} private: Aws::String m_listenerArn; bool m_listenerArnHasBeenSet; Aws::Vector<Aws::String> m_ruleArns; bool m_ruleArnsHasBeenSet; Aws::String m_marker; bool m_markerHasBeenSet; int m_pageSize; bool m_pageSizeHasBeenSet; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws
#include "dispatcher.h" #include "token_parser.h" namespace SJParser { Dispatcher::Dispatcher(TokenParser *parser) : _root_parser{parser} { _parsers.push_back(parser); parser->setDispatcher(this); } void Dispatcher::pushParser(TokenParser *parser) { _parsers.push_back(parser); } void Dispatcher::popParser() { if (_parsers.empty()) { throw std::runtime_error("Can not pop parser, parsers stack is empty"); } _parsers.pop_back(); if (!_parsers.empty()) { _parsers.back()->childParsed(); } } bool Dispatcher::emptyParsersStack() { return _parsers.empty(); } void Dispatcher::reset() { _parsers.clear(); _parsers.push_back(_root_parser); } } // namespace SJParser
{% extends "demo/module/module.html" %} {% import "./breadcrumb.html" as breadcrumb %} {% block content %} <demo aria-label="Breadcrumb with 1 active item"> {% call breadcrumb.list() %} {{ breadcrumb.activeItem('Home') }} {% endcall %} </demo> <demo aria-label="Breadcrumb with 2 items, 1 active"> {% call breadcrumb.list() %} {{ breadcrumb.item('Home', '/') }} {{ breadcrumb.activeItem('Library') }} {% endcall %} </demo> <demo aria-label="Breadcrumb with 3 items, 1 active"> {% call breadcrumb.list() %} {{ breadcrumb.item('Home', '/') }} {{ breadcrumb.item('Library', '/library/') }} {{ breadcrumb.activeItem('Data') }} {% endcall %} </demo> {% endblock %}
/* Copied from https://github.com/slatedocs/slate/blob/c4b4c0b8f83e891ca9fab6bbe9a1a88d5fe41292/stylesheets/print.css and unminified */ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100% } body { margin: 0 } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block } audio, canvas, progress, video { display: inline-block; vertical-align: baseline } audio:not([controls]) { display: none; height: 0 } [hidden], template { display: none } a { background-color: transparent } a:active, a:hover { outline: 0 } abbr[title] { border-bottom: 1px dotted } b, strong { font-weight: bold } dfn { font-style: italic } h1 { font-size: 2em; margin: 0.67em 0 } mark { background: #ff0; color: #000 } small { font-size: 80% } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline } sup { top: -0.5em } sub { bottom: -0.25em } img { border: 0 } svg:not(:root) { overflow: hidden } figure { margin: 1em 40px } hr { box-sizing: content-box; height: 0 } pre { overflow: auto } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0 } button { overflow: visible } button, select { text-transform: none } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer } button[disabled], html input[disabled] { cursor: default } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0 } input { line-height: normal } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0 } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em } legend { border: 0; padding: 0 } textarea { overflow: auto } optgroup { font-weight: bold } table { border-collapse: collapse; border-spacing: 0 } td, th { padding: 0 } .content h1, .content h2, .content h3, .content h4, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px } .content h1, .content h2, .content h3, .content h4 { font-weight: bold } .content pre, .content code { font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif; font-size: 12px; line-height: 1.5 } .content pre, .content code { word-break: break-all; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto } @font-face { font-family: 'slate'; src: url(../fonts/slate.eot?-syv14m); src: url(../fonts/slate.eot?#iefix-syv14m) format("embedded-opentype"), url(../fonts/slate.woff2?-syv14m) format("woff2"), url(../fonts/slate.woff?-syv14m) format("woff"), url(../fonts/slate.ttf?-syv14m) format("truetype"), url(../fonts/slate.svg?-syv14m#slate) format("svg"); font-weight: normal; font-style: normal } .content aside.warning:before, .content aside.notice:before, .content aside.success:before { font-family: 'slate'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1 } .content aside.warning:before { content: "\e600" } .content aside.notice:before { content: "\e602" } .content aside.success:before { content: "\e606" } .tocify, .toc-footer, .lang-selector, .search, #nav-button { display: none } .tocify-wrapper>img { margin: 0 auto; display: block } .content { font-size: 12px } .content pre, .content code { border: 1px solid #999; border-radius: 5px; font-size: 0.8em } .content pre code { border: 0 } .content pre { padding: 1.3em } .content code { padding: 0.2em } .content table { border: 1px solid #999 } .content table tr { border-bottom: 1px solid #999 } .content table td, .content table th { padding: 0.7em } .content p { line-height: 1.5 } .content a { text-decoration: none; color: #000 } .content h1 { font-size: 2.5em; padding-top: 0.5em; padding-bottom: 0.5em; margin-top: 1em; margin-bottom: 21px; border: 2px solid #ccc; border-width: 2px 0; text-align: center } .content h2 { font-size: 1.8em; margin-top: 2em; border-top: 2px solid #ccc; padding-top: 0.8em } .content h1+h2, .content h1+div+h2 { border-top: none; padding-top: 0; margin-top: 0 } .content h3, .content h4 { font-size: 0.8em; margin-top: 1.5em; margin-bottom: 0.8em; text-transform: uppercase } .content h5, .content h6 { text-transform: uppercase } .content aside { padding: 1em; border: 1px solid #ccc; border-radius: 5px; margin-top: 1.5em; margin-bottom: 1.5em; line-height: 1.6 } .content aside:before { vertical-align: middle; padding-right: 0.5em; font-size: 14px }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("UserDatabase")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("UserDatabase")] [assembly: AssemblyCopyright("Copyright © Microsoft 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("bd96d6f2-1ff2-416d-8bcc-2cf3b67e6bca")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
typedef struct Subnetwork { CString m_coolingSet; CString m_heatingSet; CString m_setpoint; CString m_roomTemper; int m_mode; CString m_outputState; CString m_nightHeating; CString m_nightCooling; int m_tstatProduct; CString m_modbusaddr; int m_Occupied; CString m_overridevalue; CString m_SerialNumber; CString m_nightHeatingDB; CString m_nightCoolingDB; }subnetwork; // CDialogCM5 form view class CDialogCM5 : public CFormView { DECLARE_DYNCREATE(CDialogCM5) protected: int m_type; public: CDialogCM5(); // protected constructor used by dynamic creation virtual ~CDialogCM5(); public: enum { IDD = IDD_DIALOG_CM5 }; #ifdef _DEBUG virtual void AssertValid() const; #ifndef _WIN32_WCE virtual void Dump(CDumpContext& dc) const; #endif #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support DECLARE_MESSAGE_MAP() public: int m_IDaddressCM5; UINT m_nSerialNumCM5; float m_firmwareVersionCM5; int m_hardware_versionCM5; CString m_strDateCM5; CString m_strTime; CString m_heating; CString m_cooling; CString m_coating; CString m_result; CComboBox m_combo_prioritymode; int m_priorityinterval; CString m_countprioritytime; CMsflexgrid m_Output_GridCM5_; CMsflexgrid m_msflexgrid_input; CMsflexgrid m_msflexgridoutput; CEdit m_edit_input; CEdit m_edit_output; CComboBox m_combobox2_input; CString m_static_datetime; CString m_combo2_cstring; CString m_tempGridString; HANDLE CM5_OutputThread; BOOL b_is_fresh; public://events afx_msg void OnBnClickedButtonSyncwithpc(); afx_msg void OnBnClickedButtonSaveConfig(); afx_msg void OnBnClickedButtonweeklyschedule(); afx_msg void OnBnClickedButtonRefreshAll(); afx_msg void OnBnClickedButtonannualschedule(); afx_msg void OnBnClickedButtonidschedule(); afx_msg void OnBnClickedButtonCheckDemo(); afx_msg void OnBnClickedButtoninputtype(); afx_msg void OnEnKillfocusEditInput(); afx_msg void OnEnKillfocusEditoutput(); afx_msg void OnClose(); afx_msg void OnEnKillfocusEditNum(); afx_msg void OnEnKillfocusEditInterval(); afx_msg void OnEnKillfocusEditDTS1(); afx_msg void OnEnKillfocusEditDTS2(); afx_msg void OnEnKillfocusEditDTS3(); afx_msg void OnEnKillfocusEditDTS4(); afx_msg void OnEnKillfocusEditDTS5(); afx_msg void OnEnKillfocusEditDTS6(); afx_msg void OnEnKillfocusEditDTS7(); afx_msg void OnEnKillfocusEditDTS8(); afx_msg void OnEnKillfocusEditDTS9(); afx_msg void OnEnKillfocusEditDTS10(); afx_msg LRESULT DealWithMessage(WPARAM wParam,LPARAM lParam); public://messages override afx_msg void OnTimer(UINT_PTR nIDEvent); virtual void OnInitialUpdate(); virtual BOOL PreTranslateMessage(MSG* pMsg); CString GetTextReg(unsigned short reg,BOOL IsRead); BOOL Get_Data_Bit(UINT Data, int n,int N);//»ñÈ¡Ò»¸öµÚ°ËλÊý¾Ý£¬s:system:½øÖÆ£¬n;num:Õâ¸öÊýÊǼ¸Î»µÄ£¬µÚNλÊÇ1»¹ÊÇ0 public: void Fresh(); void ShowDialogData(); int Get_RegID(int lRow); void Show_DisplayEdit(int num); public: vector<subnetwork>_subnetwork; subnetwork m_subetwork; private: int m_switch; int m_cellrow; int m_cellcol; int m_cellrowout; int m_cellcolout; int num; DECLARE_EVENTSINK_MAP() void ClickInputMsflexgrid(); void DblClickInputMsflexgrid(); void ClickOutputMsflexgrid(); void DblClickOutputMsflexgrid(); void DBClickInputMsflexgrid2(); void ClickSubTstatgrid(); void ClickInputMsflexgrid2(); void DblClickInputMsflexgrid2() ; void OnCbnSelchangeCombx(); void OnCbnSelchangeType(); void UpdateGrid(); public: CString m_bootloaderversion; CComboBox m_Baudrate; CComboBox m_ipModelComBox; CIPAddressCtrl m_ip_addressCtrl; CIPAddressCtrl m_subnet_addressCtrl; CIPAddressCtrl m_gateway_addressCtrl; CString m_nListenPort; CEdit m_Mac_Address; private: CButton m_checkdemo; public: CComboBox m_combox_enable; int m_Display_Num; int m_Interval; int m_dts1; int m_dts2; int m_dts3; int m_dts4; int m_dts5; int m_dts6; int m_dts7; int m_dts8; int m_dts9; int m_dts10; CProgressCtrl m_progressctrl; CMsflexgrid m_subtstatgrid; CMsflexgrid m_DIGrid; };
#ifndef SkFixed_DEFINED #define SkFixed_DEFINED #include "include/core/SkScalar.h" #include "include/core/SkTypes.h" #include "include/private/SkSafe_math.h" #include "include/private/SkTPin.h" #include "include/private/SkTo.h" /** \file SkFixed.h Types and macros for 16.16 fixed point */ /** 32 bit signed integer used to represent fractions values with 16 bits to the right of the decimal point */ typedef int32_t SkFixed; #define SK_Fixed1 (1 << 16) #define SK_FixedHalf (1 << 15) #define SK_FixedQuarter (1 << 14) #define SK_FixedMax (0x7FFFFFFF) #define SK_FixedMin (-SK_FixedMax) #define SK_FixedPI (0x3243F) #define SK_FixedSqrt2 (92682) #define SK_FixedTanPIOver8 (0x6A0A) #define SK_FixedRoot2Over2 (0xB505) // NOTE: SkFixedToFloat is exact. SkFloatToFixed seems to lack a rounding step. For all fixed-point // values, this version is as accurate as possible for (fixed -> float -> fixed). Rounding reduces // accuracy if the intermediate floats are in the range that only holds integers (adding 0.5f to an // odd integer then snaps to nearest even). Using double for the rounding math gives maximum // accuracy for (float -> fixed -> float), but that's usually overkill. #define SkFixedToFloat(x) ((x) * 1.52587890625e-5f) #define SkFloatToFixed(x) sk_float_saturate2int((x) * SK_Fixed1) #ifdef SK_DEBUG static inline SkFixed SkFloatToFixed_Check(float x) { int64_t n64 = (int64_t)(x * SK_Fixed1); SkFixed n32 = (SkFixed)n64; SkASSERT(n64 == n32); return n32; } #else #define SkFloatToFixed_Check(x) SkFloatToFixed(x) #endif #define SkFixedToDouble(x) ((x) * 1.52587890625e-5) #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) /** Converts an integer to a SkFixed, asserting that the result does not overflow a 32 bit signed integer */ #ifdef SK_DEBUG inline SkFixed SkIntToFixed(int n) { SkASSERT(n >= -32768 && n <= 32767); // Left shifting a negative value has undefined behavior in C, so we cast to unsigned before // shifting. return (SkFixed)( (unsigned)n << 16 ); } #else // Left shifting a negative value has undefined behavior in C, so we cast to unsigned before // shifting. Then we force the cast to SkFixed to ensure that the answer is signed (like the // debug version). #define SkIntToFixed(n) (SkFixed)((unsigned)(n) << 16) #endif #define SkFixedRoundToInt(x) (((x) + SK_FixedHalf) >> 16) #define SkFixedCeilToInt(x) (((x) + SK_Fixed1 - 1) >> 16) #define SkFixedFloorToInt(x) ((x) >> 16) static inline SkFixed SkFixedRoundToFixed(SkFixed x) { return (SkFixed)( (uint32_t)(x + SK_FixedHalf) & 0xFFFF0000 ); } static inline SkFixed SkFixedCeilToFixed(SkFixed x) { return (SkFixed)( (uint32_t)(x + SK_Fixed1 - 1) & 0xFFFF0000 ); } static inline SkFixed SkFixedFloorToFixed(SkFixed x) { return (SkFixed)( (uint32_t)x & 0xFFFF0000 ); } #define SkFixedAbs(x) SkAbs32(x) #define SkFixedAve(a, b) (((a) + (b)) >> 1) // The divide may exceed 32 bits. Clamp to a signed 32 bit result. #define SkFixedDiv(numer, denom) \ SkToS32(SkTPin<int64_t>((SkLeftShift((int64_t)(numer), 16) / (denom)), SK_MinS32, SK_MaxS32)) static inline SkFixed SkFixedMul(SkFixed a, SkFixed b) { return (SkFixed)((int64_t)a * b >> 16); } /////////////////////////////////////////////////////////////////////////////// // Platform-specific alternatives to our portable versions. // The VCVT float-to-fixed instruction is part of the VFPv3 instruction set. #if defined(__ARM_VFPV3__) /* This does not handle NaN or other obscurities, but is faster than than (int)(x*65536). When built on Android with -Os, needs forcing to inline or we lose the speed benefit. */ SK_ALWAYS_INLINE SkFixed SkFloatToFixed_arm(float x) { int32_t y; asm("vcvt.s32.f32 %0, %0, #16": "+w"(x)); memcpy(&y, &x, sizeof(y)); return y; } #undef SkFloatToFixed #define SkFloatToFixed(x) SkFloatToFixed_arm(x) #endif /////////////////////////////////////////////////////////////////////////////// #define SkFixedToScalar(x) SkFixedToFloat(x) #define SkScalarToFixed(x) SkFloatToFixed(x) /////////////////////////////////////////////////////////////////////////////// typedef int64_t SkFixed3232; // 32.32 #define SkFixed3232Max SK_MaxS64 #define SkFixed3232Min (-SkFixed3232Max) #define SkIntToFixed3232(x) (SkLeftShift((SkFixed3232)(x), 32)) #define SkFixed3232ToInt(x) ((int)((x) >> 32)) #define SkFixedToFixed3232(x) (SkLeftShift((SkFixed3232)(x), 16)) #define SkFixed3232ToFixed(x) ((SkFixed)((x) >> 16)) #define SkFloatToFixed3232(x) sk_float_saturate2int64((x) * (65536.0f * 65536.0f)) #define SkFixed3232ToFloat(x) (x * (1 / (65536.0f * 65536.0f))) #define SkScalarToFixed3232(x) SkFloatToFixed3232(x) #endif
/** * Package for search test task. * * @author Kseniya Shustova (mailto:shustovakv@mail.ru) * @version $Id$ * @since 0.1 */ package ru.job4j.search;
<!-- WARNING: Generated documentation. Edit docs and examples in the rule and examples file ('rules/controller-as-vm.js', 'examples/controller-as-vm.js'). --> # controller-as-vm - require and specify a capture variable for `this` in controllers You should use a capture variable for 'this' when using the controllerAs syntax. The second parameter specifies the capture variable you want to use in your application. The third parameter can be a Regexp for identifying controller functions (when using something like Browserify) - The name that should be used for the view model. **Styleguide Reference** * [y032 by johnpapa - controllerAs with vm](https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#style-y032) ## Examples The following patterns are considered problems with default config; /*eslint angular/controller-as-vm: 2*/ // invalid angular.module('test').controller('TestController', function() { this.test = 'test'; }); // error: You should not use "this" directly. Instead, assign it to a variable called "vm" The following patterns are **not** considered problems with default config; /*eslint angular/controller-as-vm: 2*/ // valid angular.module('test').controller('TestController', function() { var vm = this; vm.test = 'test'; }); The following patterns are considered problems when configured `"viewModel"`: /*eslint angular/controller-as-vm: [2,"viewModel"]*/ // invalid angular.module('test').controller('TestController', function() { var vm = this; vm.test = 'test'; }); // error: You should assign "this" to a consistent variable across your project: viewModel The following patterns are **not** considered problems when configured `"viewModel"`: /*eslint angular/controller-as-vm: [2,"viewModel"]*/ // valid angular.module('test').controller('TestController', function() { var viewModel = this; viewModel.test = 'test'; }); ## Version This rule was introduced in eslint-plugin-angular 0.1.0 ## Links * [Rule source](../rules/controller-as-vm.js) * [Example source](../examples/controller-as-vm.js)
<?php namespace GO1\Bundle\FormBuilderBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manages your bundle configuration * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} */ class GoCatalyzeFormBuilderExtension extends Extension { /** * {@inheritDoc} */ public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yml'); } }