Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
svail-epri committed Aug 22, 2016
0 parents commit bd23417
Show file tree
Hide file tree
Showing 928 changed files with 455,487 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.metadata
RemoteSystemsTempFiles
# Compiled Object files
*.slo
*.lo
*.o
*.obj
*.os

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# scons and project specific files
*.dblite
*~
oadrcmds
*.swp
*.settings

oadrlib-path.sh
.pydevproject

.project
.cproject

*.pyc

317 changes: 317 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import glob
import os
import shutil
import sconsHelper

# save running directory
PWD = os.getcwd()

# get and parse arguments
buildmode = ARGUMENTS.get('mode', 'debug') #holds current mode

if not (buildmode in ['debug', 'release']):
print ("Error: Invalid build mode: {0}. Please specify debug or release - aborting build.".format(buildmode))

print("BUILDING IN {0} mode.".format(buildmode))

if buildmode == 'debug':
cflags = ['-pthread', '-Wall', '-O0', '-g3', '-c', '-Wl,--verbose', '-fmessage-length=0', '-D_CURL_DEBUG']

else:
cflags = ['-pthread', '-O2', '-DNDEBUG', '-c', '-Wl,--verbose', '-fmessage-length=0']

# Make the environment variables available to child sconscripts.
Export('cflags buildmode')

# build oadrsd shared object (serialize/deserialize library)
SConscript('oadrsd/SConscript')

# build oadr shared object (VEN implementation)
SConscript('oadr/SConscript')

# unit tests
SConscript('oadrtest/SConscript')

# sample VEN
SConscript('sample/SConscript')
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.0.5.3
Binary file added manual/EPRI-OADR-Library-V2.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions oadr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/Debug
/Release
/mac-Debug
13 changes: 13 additions & 0 deletions oadr/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import glob
import os
import sconsHelper

Import('cflags buildmode')

cppPath = ['#oadrsd', '../xsd-4.0.0']
libDir = ['../oadrsd/' + buildmode]
libs = ['ssl', 'crypto', 'pthread', 'curl', 'xerces-c', 'oadrsd']

sconsHelper.build('oadr', cppPath, cflags, libDir, libs, buildmode, "shared")


362 changes: 362 additions & 0 deletions oadr/oadr/helper/RandomHex.cpp

Large diffs are not rendered by default.

343 changes: 343 additions & 0 deletions oadr/oadr/helper/RandomHex.h

Large diffs are not rendered by default.

349 changes: 349 additions & 0 deletions oadr/oadr/request/CancelPartyRegistration.cpp

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions oadr/oadr/request/CancelPartyRegistration.h

Large diffs are not rendered by default.

334 changes: 334 additions & 0 deletions oadr/oadr/request/CanceledReport.cpp

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions oadr/oadr/request/CanceledReport.h

Large diffs are not rendered by default.

363 changes: 363 additions & 0 deletions oadr/oadr/request/CreatePartyRegistration.cpp

Large diffs are not rendered by default.

349 changes: 349 additions & 0 deletions oadr/oadr/request/CreatePartyRegistration.h

Large diffs are not rendered by default.

360 changes: 360 additions & 0 deletions oadr/oadr/request/CreatedEvent.cpp

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions oadr/oadr/request/CreatedEvent.h

Large diffs are not rendered by default.

332 changes: 332 additions & 0 deletions oadr/oadr/request/CreatedReport.cpp

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions oadr/oadr/request/CreatedReport.h

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions oadr/oadr/request/DurationModifier.cpp

Large diffs are not rendered by default.

346 changes: 346 additions & 0 deletions oadr/oadr/request/DurationModifier.h

Large diffs are not rendered by default.

355 changes: 355 additions & 0 deletions oadr/oadr/request/EventResponses.cpp

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions oadr/oadr/request/EventResponses.h

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions oadr/oadr/request/Oadr2bHelper.cpp

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions oadr/oadr/request/Oadr2bHelper.h

Large diffs are not rendered by default.

473 changes: 473 additions & 0 deletions oadr/oadr/request/Oadr2bRequest.cpp

Large diffs are not rendered by default.

392 changes: 392 additions & 0 deletions oadr/oadr/request/Oadr2bRequest.h

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions oadr/oadr/request/OadrException.cpp

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions oadr/oadr/request/OadrException.h

Large diffs are not rendered by default.

348 changes: 348 additions & 0 deletions oadr/oadr/request/Poll.cpp

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions oadr/oadr/request/Poll.h

Large diffs are not rendered by default.

346 changes: 346 additions & 0 deletions oadr/oadr/request/QueryRegistration.cpp

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions oadr/oadr/request/QueryRegistration.h

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions oadr/oadr/request/RequestEvent.cpp

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions oadr/oadr/request/RequestEvent.h

Large diffs are not rendered by default.

348 changes: 348 additions & 0 deletions oadr/oadr/request/opt/CancelOptSchedule.cpp

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions oadr/oadr/request/opt/CancelOptSchedule.h

Large diffs are not rendered by default.

354 changes: 354 additions & 0 deletions oadr/oadr/request/opt/CreateOpt.cpp

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions oadr/oadr/request/opt/CreateOpt.h

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions oadr/oadr/request/opt/CreateOptEvent.cpp

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions oadr/oadr/request/opt/CreateOptEvent.h

Large diffs are not rendered by default.

386 changes: 386 additions & 0 deletions oadr/oadr/request/opt/CreateOptSchedule.cpp

Large diffs are not rendered by default.

346 changes: 346 additions & 0 deletions oadr/oadr/request/opt/CreateOptSchedule.h

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions oadr/oadr/request/opt/OptReasonValue.cpp

Large diffs are not rendered by default.

341 changes: 341 additions & 0 deletions oadr/oadr/request/opt/OptReasonValue.h

Large diffs are not rendered by default.

443 changes: 443 additions & 0 deletions oadr/oadr/request/opt/OptSchedule.cpp

Large diffs are not rendered by default.

416 changes: 416 additions & 0 deletions oadr/oadr/request/opt/OptSchedule.h

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions oadr/oadr/request/report/DataQualityTypeValue.cpp

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions oadr/oadr/request/report/DataQualityTypeValue.h

Large diffs are not rendered by default.

338 changes: 338 additions & 0 deletions oadr/oadr/request/report/ReadingTypeEnumeratedTypeValue.cpp

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions oadr/oadr/request/report/ReadingTypeEnumeratedTypeValue.h

Large diffs are not rendered by default.

351 changes: 351 additions & 0 deletions oadr/oadr/request/report/RegisterReport.cpp

Large diffs are not rendered by default.

344 changes: 344 additions & 0 deletions oadr/oadr/request/report/RegisterReport.h

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions oadr/oadr/request/report/RegisteredReport.cpp

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions oadr/oadr/request/report/RegisteredReport.h

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions oadr/oadr/request/report/ReportEnumeratedTypeValue.cpp

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions oadr/oadr/request/report/ReportEnumeratedTypeValue.h

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions oadr/oadr/request/report/ReportHelper.cpp

Large diffs are not rendered by default.

446 changes: 446 additions & 0 deletions oadr/oadr/request/report/ReportHelper.h

Large diffs are not rendered by default.

350 changes: 350 additions & 0 deletions oadr/oadr/request/report/ReportName.cpp

Large diffs are not rendered by default.

343 changes: 343 additions & 0 deletions oadr/oadr/request/report/ReportName.h

Large diffs are not rendered by default.

648 changes: 648 additions & 0 deletions oadr/oadr/request/report/ReportWrapper.cpp

Large diffs are not rendered by default.

458 changes: 458 additions & 0 deletions oadr/oadr/request/report/ReportWrapper.h

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions oadr/oadr/request/report/ReportWrapperList.cpp

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions oadr/oadr/request/report/ReportWrapperList.h

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions oadr/oadr/request/report/UpdateReport.cpp

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions oadr/oadr/request/report/UpdateReport.h

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions oadr/oadr/ven/VEN2b.cpp

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions oadr/oadr/ven/VEN2b.h

Large diffs are not rendered by default.

357 changes: 357 additions & 0 deletions oadr/oadr/ven/http/CurlBuffer.cpp

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions oadr/oadr/ven/http/CurlBuffer.h

Large diffs are not rendered by default.

344 changes: 344 additions & 0 deletions oadr/oadr/ven/http/CurlException.cpp

Large diffs are not rendered by default.

343 changes: 343 additions & 0 deletions oadr/oadr/ven/http/CurlException.h

Large diffs are not rendered by default.

403 changes: 403 additions & 0 deletions oadr/oadr/ven/http/CurlReceiveBuffer.cpp

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions oadr/oadr/ven/http/CurlReceiveBuffer.h

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions oadr/oadr/ven/http/CurlSendBuffer.cpp

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions oadr/oadr/ven/http/CurlSendBuffer.h

Large diffs are not rendered by default.

658 changes: 658 additions & 0 deletions oadr/oadr/ven/http/HttpCurl.cpp

Large diffs are not rendered by default.

388 changes: 388 additions & 0 deletions oadr/oadr/ven/http/HttpCurl.h

Large diffs are not rendered by default.

328 changes: 328 additions & 0 deletions oadr/oadr/ven/http/IHttp.cpp

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions oadr/oadr/ven/http/IHttp.h

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions oadrsd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/Debug
/Release
/mac-Debug
12 changes: 12 additions & 0 deletions oadrsd/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import glob
import os
import sconsHelper

Import('cflags buildmode')

cppPath = ['../xsd-4.0.0']
libDir = []
libs = ['xerces-c']

sconsHelper.build('oadrsd', cppPath, cflags, libDir, libs, buildmode, "shared")

179 changes: 179 additions & 0 deletions oadrsd/oadrsd/2b/AccumulationKind.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
// Copyright (c) 2005-2011 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// In addition, as a special exception, Code Synthesis Tools CC gives
// permission to link this program with the Xerces-C++ library (or with
// modified versions of Xerces-C++ that use the same license as Xerces-C++),
// and distribute linked combinations including the two. You must obey
// the GNU General Public License version 2 in all respects for all of
// the code used other than Xerces-C++. If you modify this copy of the
// program, you may extend this exception to your version of the program,
// but you are not obligated to do so. If you do not wish to do so, delete
// this exception statement from your version.
//
// Furthermore, Code Synthesis Tools CC makes a special exception for
// the Free/Libre and Open Source Software (FLOSS) which is described
// in the accompanying FLOSSE file.
//

#include <xsd/cxx/pre.hxx>

// Begin prologue.
//
//
// End prologue.

#include "AccumulationKind.hxx"

namespace espi
{
// AccumulationKind
//

AccumulationKind::
AccumulationKind (const char* s)
: ::xml_schema::string (s)
{
}

AccumulationKind::
AccumulationKind (const ::std::string& s)
: ::xml_schema::string (s)
{
}

AccumulationKind::
AccumulationKind (const AccumulationKind& o,
::xml_schema::flags f,
::xml_schema::container* c)
: ::xml_schema::string (o, f, c)
{
}
}

#include <xsd/cxx/xml/dom/parsing-source.hxx>

#include <xsd/cxx/tree/type-factory-map.hxx>

namespace _xsd
{
static
const ::xsd::cxx::tree::type_factory_plate< 0, char >
type_factory_plate_init;
}

namespace espi
{
// AccumulationKind
//

AccumulationKind::
AccumulationKind (const ::xercesc::DOMElement& e,
::xml_schema::flags f,
::xml_schema::container* c)
: ::xml_schema::string (e, f, c)
{
}

AccumulationKind::
AccumulationKind (const ::xercesc::DOMAttr& a,
::xml_schema::flags f,
::xml_schema::container* c)
: ::xml_schema::string (a, f, c)
{
}

AccumulationKind::
AccumulationKind (const ::std::string& s,
const ::xercesc::DOMElement* e,
::xml_schema::flags f,
::xml_schema::container* c)
: ::xml_schema::string (s, e, f, c)
{
}

AccumulationKind* AccumulationKind::
_clone (::xml_schema::flags f,
::xml_schema::container* c) const
{
return new class AccumulationKind (*this, f, c);
}

static
const ::xsd::cxx::tree::type_factory_initializer< 0, char, AccumulationKind >
_xsd_AccumulationKind_type_factory_init (
"AccumulationKind",
"http://naesb.org/espi");
}

#include <istream>
#include <xsd/cxx/xml/sax/std-input-source.hxx>
#include <xsd/cxx/tree/error-handler.hxx>

namespace espi
{
}

#include <ostream>
#include <xsd/cxx/tree/error-handler.hxx>
#include <xsd/cxx/xml/dom/serialization-source.hxx>

#include <xsd/cxx/tree/type-serializer-map.hxx>

namespace _xsd
{
static
const ::xsd::cxx::tree::type_serializer_plate< 0, char >
type_serializer_plate_init;
}

namespace espi
{
void
operator<< (::xercesc::DOMElement& e, const AccumulationKind& i)
{
e << static_cast< const ::xml_schema::string& > (i);
}

void
operator<< (::xercesc::DOMAttr& a, const AccumulationKind& i)
{
a << static_cast< const ::xml_schema::string& > (i);
}

void
operator<< (::xml_schema::list_stream& l,
const AccumulationKind& i)
{
l << static_cast< const ::xml_schema::string& > (i);
}

static
const ::xsd::cxx::tree::type_serializer_initializer< 0, char, AccumulationKind >
_xsd_AccumulationKind_type_serializer_init (
"AccumulationKind",
"http://naesb.org/espi");
}

// Begin epilogue.
//
//
// End epilogue.

#include <xsd/cxx/post.hxx>

Loading

0 comments on commit bd23417

Please sign in to comment.