Github user phrocker commented on a diff in the pull request: https://github.com/apache/nifi-minifi-cpp/pull/52#discussion_r102284269 --- Diff: libminifi/include/GetGPS.h --- @@ -0,0 +1,73 @@ +/** + * @file GetGPS.h + * GetGPS class declaration + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef __GET_GPS_H__ +#define __GET_GPS_H__ + +#include "FlowFileRecord.h" +#include "Processor.h" +#include "ProcessSession.h" + +//! GetGPS Class +class GetGPS : public Processor +{ +public: + //! Constructor + /*! + * Create a new processor + */ + GetGPS(std::string name, uuid_t uuid = NULL) + : Processor(name, uuid) + { + _logger = Logger::getLogger(); + _gpsdHost = "localhost"; + _gpsdPort = "2947"; + _gpsdWaitTime = 50000000; + } + //! Destructor + virtual ~GetGPS() + { + } + //! Processor Name + static const std::string ProcessorName; + //! Supported Properties + static Property GPSDHost; + static Property GPSDPort; + static Property GPSDWaitTime; + + //! Supported Relationships + static Relationship Success; + +public: + //! OnTrigger method, implemented by NiFi GetGPS + virtual void onTrigger(ProcessContext *context, ProcessSession *session); + //! Initialize, over write by NiFi GetGPS + virtual void initialize(void); + +protected: + +private: + //! Logger + Logger *_logger; --- End diff -- logger_ is the google cpp style guide approach. Same with all of these.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---