testcase/ 0000775 0470652 0000012 00000000000 11542370734 011562 5 ustar vv159170 uucp testcase/quote_9_1/ 0000775 0470652 0000012 00000000000 11542364533 013367 5 ustar vv159170 uucp testcase/quote_9_1/nbproject/ 0000775 0470652 0000012 00000000000 11542370676 015362 5 ustar vv159170 uucp testcase/quote_9_1/nbproject/project.xml 0000664 0470652 0000012 00000001515 11542370676 017554 0 ustar vv159170 uucp
org.netbeans.modules.cnd.makeproject
quote_9_1
c
cc,cpp
h
UTF-8
../Quote_9
Default
0
testcase/quote_9_1/nbproject/private/ 0000775 0470652 0000012 00000000000 11542370676 017034 5 ustar vv159170 uucp testcase/quote_9_1/nbproject/private/private.properties 0000664 0470652 0000012 00000000000 11542364533 022605 0 ustar vv159170 uucp testcase/quote_9_1/nbproject/private/configurations.xml 0000664 0470652 0000012 00000002571 11542370676 022615 0 ustar vv159170 uucp
localhost
2
gdb
"${OUTPUT_PATH}"
"${OUTPUT_PATH}"
../Quote_9/dist/Debug/GNU-Solaris-x86
false
0
0
testcase/quote_9_1/nbproject/private/private.xml 0000664 0470652 0000012 00000000741 11542370676 021232 0 ustar vv159170 uucp
true
0
0
testcase/quote_9_1/nbproject/project.properties 0000664 0470652 0000012 00000000000 11542364533 021127 0 ustar vv159170 uucp testcase/quote_9_1/nbproject/configurations.xml 0000664 0470652 0000012 00000004734 11542370676 021146 0 ustar vv159170 uucp
cpu.cc
cpu.h
customer.cc
customer.h
disk.cc
disk.h
file.c
file12.cc
file2.cc
file3.cpp
file4.cpp
file5.cpp
file51.cpp
memory.cc
memory.h
module.cc
module.h
quote.cc
system.cc
system.h
/home/vv159170/NetBeansProjects/Quote_9/Makefile
/home/vv159170/NetBeansProjects/Quote_9/dist/Debug/GNU-Solaris-x86/quote_9
^(nbproject)$
../Quote_9
LOCAL_SOURCES
default
/home/vv159170/NetBeansProjects/Quote_9
${MAKE} -f Makefile
${MAKE} -f Makefile clean
../Quote_9/dist/Debug/GNU-Solaris-x86/quote_9
../Quote_9
-
testcase/quote_9_1/nbproject/Package-Default.bash 0000664 0470652 0000012 00000002620 11542370676 021136 0 ustar vv159170 uucp #!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Default
CND_DISTDIR=dist
CND_BUILDDIR=build
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=../Quote_9/dist/Debug/GNU-Solaris-x86/quote_9
OUTPUT_BASENAME=quote_9
PACKAGE_TOP_DIR=quote91/
# Functions
function checkReturnCode
{
rc=$?
if [ $rc != 0 ]
then
exit $rc
fi
}
function makeDirectory
# $1 directory path
# $2 permission (optional)
{
mkdir -p "$1"
checkReturnCode
if [ "$2" != "" ]
then
chmod $2 "$1"
checkReturnCode
fi
}
function copyFileToTmpDir
# $1 from-file path
# $2 to-file path
# $3 permission
{
cp "$1" "$2"
checkReturnCode
if [ "$3" != "" ]
then
chmod $3 "$2"
checkReturnCode
fi
}
# Setup
cd "${TOP}"
mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package
rm -rf ${NBTMPDIR}
mkdir -p ${NBTMPDIR}
# Copy files and create directories and links
cd "${TOP}"
makeDirectory "${NBTMPDIR}/quote91/bin"
copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755
# Generate tar file
cd "${TOP}"
rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/quote91.tar
cd ${NBTMPDIR}
tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/quote91.tar *
checkReturnCode
# Cleanup
cd "${TOP}"
rm -rf ${NBTMPDIR}
testcase/Quote_9/ 0000775 0470652 0000012 00000000000 11542370757 013114 5 ustar vv159170 uucp testcase/Quote_9/Makefile 0000664 0470652 0000012 00000011141 11515264516 014545 0 ustar vv159170 uucp #
# Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Oracle nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
#
# There exist several targets which are by default empty and which can be
# used for execution of your targets. These targets are usually executed
# before and after some main targets. They are:
#
# .build-pre: called before 'build' target
# .build-post: called after 'build' target
# .clean-pre: called before 'clean' target
# .clean-post: called after 'clean' target
# .clobber-pre: called before 'clobber' target
# .clobber-post: called after 'clobber' target
# .all-pre: called before 'all' target
# .all-post: called after 'all' target
# .help-pre: called before 'help' target
# .help-post: called after 'help' target
#
# Targets beginning with '.' are not intended to be called on their own.
#
# Main targets can be executed directly, and they are:
#
# build build a specific configuration
# clean remove built files from a configuration
# clobber remove all built files
# all build all configurations
# help print help mesage
#
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
# .help-impl are implemented in nbproject/makefile-impl.mk.
#
# Available make variables:
#
# CND_BASEDIR base directory for relative paths
# CND_DISTDIR default top distribution directory (build artifacts)
# CND_BUILDDIR default top build directory (object files, ...)
# CONF name of current configuration
# CND_PLATFORM_${CONF} platform name (current configuration)
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
#
# NOCDDL
# Environment
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
RANLIB=ranlib
# build
build: .build-post
.build-pre:
# Add your pre 'build' code here...
.build-post: .build-impl
# Add your post 'build' code here...
# clean
clean: .clean-post
.clean-pre:
# Add your pre 'clean' code here...
.clean-post: .clean-impl
# Add your post 'clean' code here...
# clobber
clobber: .clobber-post
.clobber-pre:
# Add your pre 'clobber' code here...
.clobber-post: .clobber-impl
# Add your post 'clobber' code here...
# all
all: .all-post
.all-pre:
# Add your pre 'all' code here...
.all-post: .all-impl
# Add your post 'all' code here...
# help
help: .help-post
.help-pre:
# Add your pre 'help' code here...
.help-post: .help-impl
# Add your post 'help' code here...
# include project implementation makefile
include nbproject/Makefile-impl.mk
# include project make variables
include nbproject/Makefile-variables.mk
testcase/Quote_9/cpu.cc 0000664 0470652 0000012 00000005400 11517311760 014200 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
// Implementation of CPU module class
#include "cpu.h"
Cpu::Cpu(int type /*= MEDIUM */, int architecture /*= OPTERON */, int units /*= 1*/) :
Module("CPU", "generic", type, architecture, units) {
ComputeSupportMetric();
}
/*
* Heuristic for CPU module complexity is based on number of CPUs and
* target use ("category"). CPU architecture ("type") is not considered in
* heuristic
*/
void Cpu::ComputeSupportMetric() {
int metric = 100 * GetUnits();
switch (GetTypeID()) {
case MEDIUM:
metric += 100;
break;
case HIGH:
metric += 400;
break;
}
SetSupportMetric(metric);
}
const char* Cpu::GetType() const {
switch (GetTypeID()) {
case MEDIUM:
return "Middle Class CPU";
case HIGH:
return "High Class CPU";
default:
return "Undefined";
}
}
const char* Cpu::GetCategory() const {
switch (GetCategoryID()) {
case OPTERON:
return "AMD Opteron Processor";
case INTEL:
return "Intel Processor";
case SPARC:
return "SUN Sparc Processor";
default: return "Undefined";
}
}
// end cpu.cc
testcase/Quote_9/cpu.h 0000664 0470652 0000012 00000004003 11515264516 014044 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#if !defined CPU_H
#define CPU_H
#include "module.h"
class Cpu : public Module {
public:
enum CpuType { MEDIUM, HIGH };
enum CpuArch { OPTERON, INTEL, SPARC}; // CPU architecture
Cpu(int type = MEDIUM, int architecture = OPTERON, int units = 1);
virtual const char* GetType() const;
virtual const char* GetCategory() const;
protected:
void ComputeSupportMetric();
};
#endif // CPU_H
testcase/Quote_9/customer.cc 0000664 0470652 0000012 00000003716 11515264516 015266 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "customer.h"
Customer::Customer(const string initName, int initDiscount) :
name(initName),
discount(initDiscount) {
}
int Customer::GetDiscount() const {
return discount;
}
string Customer::GetName() const {
return name;
}
ostream& operator <<(ostream& output, const Customer& customer) {
output << customer.name << " has discount " << customer.discount << '%';
return output;
}
testcase/Quote_9/customer.h 0000664 0470652 0000012 00000003672 11515264516 015131 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _customer_H
#define _customer_H
#include
using namespace std;
class Customer {
public:
Customer(const string initName, int initDiscount);
string GetName() const;
int GetDiscount() const;
private:
string name;
int discount;
friend ostream& operator<< (ostream&, const Customer&);
};
#endif /* _customer_H */
testcase/Quote_9/disk.cc 0000664 0470652 0000012 00000005306 11515264516 014354 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
//Implementation of disk module class
#include "disk.h"
Disk::Disk(int type /*= SINGLE */, int size /*= T100 */, int units /*= 1 */) :
Module("Disk storage", "generic", type, size, units) {
ComputeSupportMetric();
}
/*
* Heuristic for disk module complexity is based on number of disk sub-modules
* and architecture. Size of individual disks is not considered in heuristic
*/
void Disk::ComputeSupportMetric() {
int metric = 200 * GetUnits();
if (GetTypeID() == RAID) {
metric += 500;
}
SetSupportMetric(metric);
}
const char* Disk::GetType() const {
switch (GetTypeID()) {
case SINGLE:
return "Single disk";
case RAID:
return "Raid";
default:
return "Undefined";
}
}
const char* Disk::GetCategory() const {
switch (GetCategoryID()) {
case T100:
return "100 Gb disk";
case T200:
return "200 Gb disk";
case T500:
return "500 Gb or more";
default:
return "Undefined";
}
}
// end disk.cc
testcase/Quote_9/disk.h 0000664 0470652 0000012 00000003756 11515264516 014225 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef DISK_H
#define DISK_H
#include "module.h"
class Disk : public Module {
public:
enum DiskType { SINGLE, RAID };
enum DiskCapacity { T100, T200, T500 }; // category represents disk sub-module size in GB
Disk(int type = SINGLE, int size = T100, int units =1);
virtual const char* GetType() const;
virtual const char* GetCategory() const;
protected:
void ComputeSupportMetric();
};
#endif // DISK_H
testcase/Quote_9/memory.cc 0000664 0470652 0000012 00000005617 11515264516 014737 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "memory.h"
Memory::Memory(int type /*= STANDARD */, int size /*= MEDIUM */, int units /*= 1 */) :
Module("Memory", "generic", type, size, units) {
ComputeSupportMetric();
}
/*
* Heuristic for memory module complexity is based on number of memory
* sub-modules and memory speed.
*
* Size of sub-module is not considered in heuristic.
*/
void Memory::ComputeSupportMetric() {
int metric = 200 * GetUnits();
switch (GetTypeID()) {
case FAST:
metric += 100;
break;
case ULTRA:
metric += 200;
break;
}
SetSupportMetric(metric);
}
const char* Memory::GetType() const {
switch (GetTypeID()) {
case STANDARD:
return "Standard Memory";
case FAST:
return "Fast Memory";
case ULTRA:
return "UltraFast Memory";
default:
return "Undefined";
}
}
const char* Memory::GetCategory() const {
switch (GetCategoryID()) {
case SMALL:
return "<= 1 Gb RAM";
case MEDIUM:
return "1 - 2 Gb RAM";
case BIG: return "4+ Gb RAM";
default:
return "Undefined";
}
}
// end memory.cc
testcase/Quote_9/memory.h 0000664 0470652 0000012 00000003732 11515264516 014575 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MEMORY_H
#define MEMORY_H
#include "module.h"
class Memory : public Module {
public:
enum MemoryType { STANDARD, FAST, ULTRA };
enum MemoryCategory { SMALL, MEDIUM, BIG };
Memory(int type = STANDARD, int size = MEDIUM , int units = 1);
virtual const char* GetType() const;
virtual const char* GetCategory() const;
protected:
void ComputeSupportMetric();
};
#endif // MEMORY_H
testcase/Quote_9/module.cc 0000664 0470652 0000012 00000007321 11515264516 014706 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
//Implementation of base module class
#include
#include
#include "module.h"
Module::Module() {
SetDescription("undefined");
SetVendor("undefined");
}
Module::Module(const char* _description, const char* _vendor, int _type, int _category, int _units) {
SetDescription(_description);
SetVendor(_vendor);
SetType(_type);
SetCategory(_category);
SetUnits(_units);
}
//copy constructor
Module::Module(const Module& obj) {
SetDescription(obj.GetDescription());
SetVendor(obj.GetVendor());
SetType(obj.type);
SetUnits(obj.units);
SetSupportMetric(obj.GetSupportMetric());
}
Module& Module::operator= (const Module& obj) {
SetDescription(obj.GetDescription());
SetVendor(obj.GetVendor());
SetType(obj.type);
SetUnits(obj.units);
SetSupportMetric(obj.GetSupportMetric());
return *this;
}
Module::~Module() {
}
void Module::SetDescription(const char* new_description) {
description = new_description;
}
const char* Module::GetDescription() const {
return description.c_str();
}
void Module::SetVendor(const char* new_vendor) {
vendor = new_vendor;
}
const char* Module::GetVendor() const {
return vendor.c_str();
}
void Module::SetType(int new_type) {
type = new_type;
}
int Module::GetTypeID() const {
return type;
}
void Module::SetCategory(int new_category) {
category = new_category;
}
int Module::GetCategoryID() const {
return category;
}
void Module::SetUnits(int new_units) {
units = new_units;
}
int Module::GetUnits() const {
return units;
}
void Module::SetSupportMetric(int new_metric) {
supportMetric = new_metric;
}
int Module::GetSupportMetric() const {
return supportMetric;
}
ostream& operator <<(ostream& output, const Module& module) {
output << "** " << module.GetDescription() << " module data **" << endl;
output << "Module type: " << module.GetType() << endl;
output << "Module category: " << module.GetCategory() << endl;
output << "Number of sub-modules: " << module.GetUnits() << endl;
output << "Module support metric: " << module.GetSupportMetric() << endl;
return output;
}
// end module.cc
testcase/Quote_9/module.h 0000664 0470652 0000012 00000005544 11515264516 014555 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#if !defined MODULE_H
#define MODULE_H
#include
using namespace std;
// Base class
class Module {
public:
Module();
Module(const char* description, const char* vendor, int type, int category, int units);
virtual ~Module(); //destructor is virtual since derived classes may have distinct destructor
Module(const Module& obj); //copy constructor
Module& operator= (const Module& obj); //overload of assignment operator "="
void SetDescription(const char* description);
const char* GetDescription() const;
void SetVendor(const char* v);
const char* GetVendor() const;
void SetType(int type);
int GetTypeID() const;
virtual const char* GetType() const = 0;
void SetCategory(int category);
int GetCategoryID() const;
virtual const char* GetCategory() const = 0;
void SetUnits(int u);
int GetUnits() const;
void SetSupportMetric(int m);
int GetSupportMetric() const;
protected:
virtual void ComputeSupportMetric() = 0; //metric is defined in derived classes
private:
string description;
string vendor; //this anticipates future functionality
int type;
int category;
int units;
int supportMetric; //default value
friend ostream& operator<< (ostream&, const Module&);
};
#endif // MODULE_H
testcase/Quote_9/quote.cc 0000664 0470652 0000012 00000016032 11515264516 014555 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#include
#include
#include
#include "customer.h"
#include "system.h"
#include "disk.h"
#include "cpu.h"
#include "memory.h"
namespace {
list customers;
void outCustomersList() {
cout << "Customer list (" << customers.size() << " customer(s)):" << endl;
cout << "--------------------------------------" << endl;
for(list::iterator it = customers.begin(); it != customers.end(); ++it) {
cout << (*it) << endl;
}
cout << endl;
}
void fetchCustomersList() {
// Just do some static initialization...
// But could be fetching this info from database, for instance
customers.push_back(Customer("John", 10));
customers.push_back(Customer("Mike", 0));
customers.push_back(Customer("Peter", 13));
customers.push_back(Customer("Ann", 11));
customers.push_back(Customer("Tom", 9));
}
int getDiscountFor(string name) {
for(list::iterator it = customers.begin(); it != customers.end(); ++it) {
if ((*it).GetName() == name) {
return (*it).GetDiscount();
}
}
return -1;
}
int readNumberOf(const char* item, int min, int max) {
cout << "Enter number of " << item << " (" << min << " <= N <= " << max << "): ";
string s;
getline(cin, s);
int amount = strtol(s.c_str(), 0, 10);
cout << endl;
if (amount < min) {
cout << "number of " << item << " cannot be less than " << min << '.' << endl;
cout << min << " item is taken" << endl << endl;
amount = min;
} else if (amount > max) {
cout << "number of " << item << " cannot be more than " << max << '.' << endl;
cout << max << " items is taken" << endl << endl;
amount = max;
}
return amount;
}
char readChar(const char* prompt, char defaultAnswer) {
cout << prompt << ": [" << (char)toupper(defaultAnswer) << "] ";
string s;
getline(cin, s);
cout << endl;
return toupper(s[0]);
}
} // End of local namespace
int main(int argc, char** argv) {
cout << "Support metric quote program" << endl << endl;
fetchCustomersList();
int discount = -1;
string customerName;
do {
outCustomersList();
cout << "Enter customer name: ";
getline(cin, customerName);
discount = getDiscountFor(customerName);
if (discount == -1) {
cout << "Cannot get discount value for customer " << customerName << '.' << endl;
cout << "Please choose customer from list." << endl;
}
}
while (discount == -1);
//Define system collection .. this is the list of modules
System MySystem;
cout << "Customer " << customerName << " has discount " << discount << '%' << endl;
cout << "Now, let's configure system for " << customerName << endl;
char response = readChar("Enter CPU module type (M for middle, E for high; Q - exit)", 'M');
int type = 0;
switch (response) {
case 'Q':
return 2; //default user requested termination
case 'E':
type = Cpu::HIGH;
break;
case 'M':
default :
type = Cpu::MEDIUM;
break;
}
int amount = readNumberOf("CPUs", 1, 10);
Cpu MyCpu(type, 0, amount); // Create CPU module object
MySystem.AddModule(&MyCpu); // Add CPU Module to system specification
response = readChar("Enter disk module type: (S for single disks, R for RAID; Q - exit)", 'S');
switch (response) {
case 'Q':
return 2; //premature user requested termination
case 'R':
type = Disk::RAID;
break;
case 'S':
default :
type = Disk::SINGLE;
break;
}
amount = readNumberOf("disks", 1, 10);
Disk MyDisk(type, 0, amount); //Create disk module object
MySystem.AddModule(&MyDisk); //Add Disk Module to system specification
response = readChar("Enter memory module type: (S for standard, F for fast, U for ultra; Q - exit)", 'S');
switch (response) {
case 'Q':
return 2; //premature user requested termination
case 'F':
type = Memory::FAST;
break;
case 'U':
type = Memory::ULTRA;
break;
case 'S':
default :
type = Memory::STANDARD;
break;
}
amount = readNumberOf("sub-modules", 1, 10);
Memory MyMemory(type, 0, amount); //Create memory module object
MySystem.AddModule(&MyMemory); //Add Memory Module to system specification
// end of system specification
// summarize system specification
int metric = MySystem.GetSupportMetric();
cout << MySystem << endl;
// end of system specification
cout << "Overall Quote Support Metric for configured system for customer " << customerName << ':' << endl;
cout << "-----------------------------------------------------------------------" << endl << endl;
cout << "Quote Discount: " << discount << '%' << endl;
cout << "Quote Support Metric: " << metric << endl << endl;
return (EXIT_SUCCESS);
}
testcase/Quote_9/readme.txt 0000664 0470652 0000012 00000006155 11515264516 015114 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
// This sample program is named quote. It models a simple hardware support service. The program
// runs in a console window. It is written in standard C++. For the user interface the
// program uses C++ standard stream IO and is portable across Windows XP, Linux
// and Solaris.
//
// The user is prompted to identify the customer and the system for which a support quote
// is required. The system can consist of CPU, Disk and Memory modules. The individual
// modules types can have multiple physical units. For example, the Disk module can
// consist of 1 to 10 standard or raid disks. The quote program computes an ad-hoc
// complexity metric for each module, and from these the program computes an ad-hoc
// support metric for the system. The quote is tailored for the customer through an ad-hoc
// discount code.
//
// The program is structured in three parts: (1) system, (2) customer, and
// (3) user interface.
// The system consists of 5 classes:
// Module: Base class
// CPU: derived from Module
// Disk: derived from Module
// Memory: derived from Module
// System: collection of Modules (implememted using vector from the STL)
//The customer consists of 2 classes
// NameList: collection of known customers (implemented as a singleton class)
// Customer
//The user interface consists of a sequence of cout and cin statements, that serve to
// prompt the user for the customer name and the system description. The user interface
// is in the main function. The user may choose to identify the customer at the time the
// quote program is launched, through a command line parameter.
testcase/Quote_9/system.cc 0000664 0470652 0000012 00000004643 11515264516 014751 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
//Implementation of System class: collection of modules
#include "system.h"
#include
#include
System::System() :
supportMetric(0) {
}
void System::AddModule(Module* module) {
moduleList.push_back(module);
supportMetric += module->GetSupportMetric();
}
Module& System::GetModule(int i) const {
assert(i >= 0 && (unsigned)i < moduleList.size());
return (*moduleList[i]);
}
int System::GetModuleCount() const {
return moduleList.size();
}
int System::GetSupportMetric() const {
return supportMetric;
};
ostream& operator <<(ostream& output, const System& system) {
int size = system.GetModuleCount();
output << "System consists of " << size << " module(s):" << endl << endl;
for (int i = 0; i < size; i++) {
output << system.GetModule(i) << endl;
}
return output;
}
// end system.cc
testcase/Quote_9/system.h 0000664 0470652 0000012 00000004076 11515264516 014613 0 ustar vv159170 uucp /*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#if !defined SYSTEM_H
#define SYSTEM_H
#include "module.h"
#include
using namespace std;
// System is a collection of modules
class System {
public:
System();
System(const System& obj); //copy constructor
Module& GetModule(int index) const;
void AddModule(Module* module);
int GetModuleCount() const;
int GetSupportMetric() const;
private:
vector moduleList;
int supportMetric;
friend ostream& operator<< (ostream&, const System&);
};
#endif //SYSTEM_H
testcase/Quote_9/.dep.inc 0000664 0470652 0000012 00000000220 11542364233 014417 0 ustar vv159170 uucp # This code depends on make tool being used
DEPFILES=$(wildcard $(addsuffix .d, ${OBJECTFILES}))
ifneq (${DEPFILES},)
include ${DEPFILES}
endif
testcase/Quote_9/.make.state.Debug 0000644 0470652 0000012 00000075201 11536420740 016170 0 ustar vv159170 uucp .MAKE_VERSION: VERSION-1.0
.BUILT_LAST_MAKE_RUN:
.build-conf:
"/opt/SUNWspro/bin/dmake" -f nbproject/Makefile-Debug.mk dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9
.clean-conf:
rm -f -r build/Debug
rm -f dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9
CCadmin -clean
.BUILT_LAST_MAKE_RUN:
.depcheck-impl:
echo "# This code depends on make tool being used" >.dep.inc
if [ -n "" ]; then \
echo "DEPFILES=\$(wildcard \$(addsuffix .d, \${OBJECTFILES}))" >>.dep.inc; \
echo "ifneq (\${DEPFILES},)" >>.dep.inc; \
echo "include \${DEPFILES}" >>.dep.inc; \
echo "endif" >>.dep.inc; \
else \
echo ".KEEP_STATE:" >>.dep.inc; \
echo ".KEEP_STATE_FILE:.make.state.\${CONF}" >>.dep.inc; \
fi
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: cpu.h module.h /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o cpu.cc
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: customer.h /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/customer.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/customer.o customer.cc
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: disk.h module.h /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/disk.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/disk.o disk.cc
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: memory.h module.h /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/memory.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/memory.o memory.cc
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h module.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/module.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/std/cstdlib
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/module.o module.cc
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h customer.h system.h module.h disk.h cpu.h memory.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/list /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/algorithm
build/Debug/OracleSolarisStudio-Solaris-x86/quote.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwdispatch.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/std/cstdlib /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/vector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/list.cc
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/quote.o quote.cc
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: system.h module.h /usr/include/stddef.h /usr/include/sys/isa_defs.h /usr/include/iso/stddef_iso.h /usr/include/stdarg.h /usr/include/iso/stdarg_iso.h /usr/include/sys/va_impl.h /usr/include/sys/va_list.h /usr/include/iso/stdarg_c99.h /usr/include/sys/feature_tests.h /usr/include/sys/ccompile.h /usr/include/string.h /usr/include/iso/string_iso.h /usr/include/ctype.h /usr/include/iso/ctype_iso.h /usr/include/iso/ctype_c99.h /usr/include/wchar.h /usr/include/iso/wchar_iso.h
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /usr/include/stdio_tag.h /usr/include/wchar_impl.h /usr/include/iso/time_iso.h /usr/include/iso/wchar_c99.h /usr/include/wctype.h /usr/include/iso/wctype_iso.h /usr/include/iso/wctype_c99.h /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h /usr/include/iso/stdlib_c99.h /usr/include/limits.h /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h /usr/include/pthread.h /usr/include/sys/types.h /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /usr/include/sys/int_types.h /usr/include/sys/select.h /usr/include/sys/time_impl.h /usr/include/sys/time.h /usr/include/time.h /usr/include/sched.h /usr/include/stdio.h /usr/include/iso/stdio_iso.h /usr/include/stdio_impl.h /usr/include/iso/stdio_c99.h /usr/include/math.h /usr/include/iso/math_iso.h /usr/include/iso/math_c99.h /usr/include/float.h /usr/include/assert.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdcomp.h
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/compnent.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/istream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ios /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwstderr_macros.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwlocale
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/string /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/string_ref /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/memory /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/new /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/exception /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/utility
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/stdmutex.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/traits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iotraits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iosfwd /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/stdexcept /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/typeinfo /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locimpl
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/locvector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/vendor /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/ctype /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/numeral /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/iosbase /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/limits /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/math.h
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/codecvt /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/usefacet /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/ostream /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/streambuf /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/vector /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/rw/rwdispatch.h /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/algorithm
build/Debug/OracleSolarisStudio-Solaris-x86/system.o: /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/iterator /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/vector.cc /export/opt/sunstudio/12ml/SUNWspro/prod/include/CC/Cstd/algorithm.cc
mkdir -p build/Debug/OracleSolarisStudio-Solaris-x86
CC -c -g +w -o build/Debug/OracleSolarisStudio-Solaris-x86/system.o system.cc
dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9: /lib/libc.so /lib/libm.so /export/opt/sunstudio/12ml/SUNWspro/lib/libCrun.so /export/opt/sunstudio/12ml/SUNWspro/lib/libCstd.so
mkdir -p dist/Debug/OracleSolarisStudio-Solaris-x86
CC -o dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9 build/Debug/OracleSolarisStudio-Solaris-x86/disk.o build/Debug/OracleSolarisStudio-Solaris-x86/cpu.o build/Debug/OracleSolarisStudio-Solaris-x86/memory.o build/Debug/OracleSolarisStudio-Solaris-x86/system.o build/Debug/OracleSolarisStudio-Solaris-x86/quote.o build/Debug/OracleSolarisStudio-Solaris-x86/module.o build/Debug/OracleSolarisStudio-Solaris-x86/customer.o
testcase/Quote_9/dist/ 0000775 0470652 0000012 00000000000 11515605460 014047 5 ustar vv159170 uucp testcase/Quote_9/dist/Debug/ 0000775 0470652 0000012 00000000000 11542370771 015101 5 ustar vv159170 uucp testcase/Quote_9/dist/Debug/GNU-Solaris-x86/ 0000755 0470652 0000012 00000000000 11542364237 017565 5 ustar vv159170 uucp testcase/Quote_9/dist/Debug/GNU-Solaris-x86/quote_9 0000775 0470652 0000012 00000745035 11542364237 021120 0 ustar vv159170 uucp ELF > `@ @ H @ 8 @ ( % @ @ @ @ @ 8 8@ 8@ @ @ v v } }` }` ~ ~` ~` T T@ T@ D D Ptd V V@ V@ Qtd Rtd } }` }` P P /lib64/ld-linux-x86-64.so.2 GNU GNU CtF5vo% / $ &