Skip to content

Commit

Permalink
Put a copyright at the top of sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed May 16, 2020
1 parent 3672bd6 commit f4d7580
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/chess-server/src/game.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use uci::Engine;

/// The piece on a square
Expand Down
4 changes: 4 additions & 0 deletions samples/chess-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use std::env;
use std::path::PathBuf;
use std::sync::{Arc, Mutex};
Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/control.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use opcua_server::{
prelude::*,
};
Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/historical.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! Implementations of HistoricalDataProvider and HistoricalEventProvider
use std::sync::{Arc, RwLock};

Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/machine.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use std::sync::{Arc, atomic::{AtomicU16, AtomicU32, Ordering}};

use chrono;
Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This is a demo server for OPC UA. It demonstrates most of the features of OPC UA for Rust.
//!
//! * Variables for each type
Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/methods.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! A sample method
use opcua_server::{
Expand Down
4 changes: 4 additions & 0 deletions samples/demo-server/src/scalar.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use rand::distributions::Alphanumeric;
use rand::Rng;

Expand Down
4 changes: 4 additions & 0 deletions samples/discovery-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This is a sample that calls find servers on a OPC UA discovery server
use std::str::FromStr;

Expand Down
4 changes: 4 additions & 0 deletions samples/modbus-server/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use std::{
fs::File,
io::Read,
Expand Down
4 changes: 4 additions & 0 deletions samples/modbus-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This is a OPC UA server that is a MODBUS master - in MODBUS parlance the master is the thing
//! requesting information from a slave device.
//!
Expand Down
4 changes: 4 additions & 0 deletions samples/modbus-server/src/master.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use std::{
sync::{Arc, RwLock},
thread,
Expand Down
4 changes: 4 additions & 0 deletions samples/modbus-server/src/opcua.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use std::{
f32, f64, i16, i32, i64, i8, path::PathBuf,
sync::{Arc, Mutex, RwLock},
Expand Down
4 changes: 4 additions & 0 deletions samples/modbus-server/src/slave.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

use futures::{
future::{self, FutureResult},
};
Expand Down
4 changes: 4 additions & 0 deletions samples/mqtt-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This is a sample OPC UA Client that connects to the specified server, fetches some
//! values before exiting.
use std::{
Expand Down
4 changes: 4 additions & 0 deletions samples/simple-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This simple OPC UA client will do the following:
//!
//! 1. Read a configuration file (either default or the one specified using --config)
Expand Down
4 changes: 4 additions & 0 deletions samples/simple-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

//! This is a simple server for OPC UA. Our sample creates a server with the default settings
//! adds some variables to the address space and the listeners for connections. It also has
//! a timer that updates those variables so anything monitoring variables sees the values changing.
Expand Down
4 changes: 4 additions & 0 deletions samples/web-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2020 Adam Lock

#[macro_use]
extern crate serde_derive;

Expand Down

0 comments on commit f4d7580

Please sign in to comment.