File: main.cpp

package info (click to toggle)
k3d 0.8.0.2-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 40,948 kB
  • sloc: cpp: 171,303; ansic: 24,129; xml: 6,995; python: 5,796; makefile: 671; sh: 22
file content (20 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <k3d-version-config.h>

#include <k3dsdk/log.h>
#include <k3dsdk/uuid.h>

#include <iomanip>
#include <iostream>

int main(int argc, char* argv[])
{
	k3d::log() << "k3d-uuidgen version " << K3D_VERSION << std::endl;
	k3d::log() << "You can paste the following unique ID into your new K-3D plugin:" << std::endl;

	const k3d::uuid result = k3d::uuid::random();

	std::cout << std::hex << std::setfill('0') << "0x" << std::setw(8) << result.data1 << ", 0x" << std::setw(8) << result.data2 << ", 0x" << std::setw(8) << result.data3 << ", 0x" << std::setw(8) << result.data4 << std::endl;

	return 0;
}